diff --git a/pom.xml b/pom.xml index 1602759..aaf252a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.openvidu classroom-demo - 2.22.0 + 2.23.0 war classroom-demo diff --git a/src/angular/frontend/package-lock.json b/src/angular/frontend/package-lock.json index ebc7ac9..89bdeb6 100644 --- a/src/angular/frontend/package-lock.json +++ b/src/angular/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "openvidu-classroom-demo", - "version": "2.22.0", + "version": "2.23.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openvidu-classroom-demo", - "version": "2.22.0", + "version": "2.23.0", "license": "Apache-2.0", "dependencies": { "@angular/animations": "13.2.5", @@ -20,7 +20,7 @@ "@angular/platform-browser": "13.2.5", "@angular/platform-browser-dynamic": "13.2.5", "@angular/router": "13.2.5", - "openvidu-browser": "2.22.0", + "openvidu-browser": "2.23.0", "rxjs": "7.5.4", "zone.js": "0.11.5" }, @@ -7771,9 +7771,9 @@ } }, "node_modules/openvidu-browser": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.22.0.tgz", - "integrity": "sha512-fug7V5WZPwEXCF4im6RzhWSbv9nYB4QWMXrEQBEsh7RI1VPQ5Jl2VcindiUeMtN+quLqeTjXSRUh4lfkrTlQSQ==", + "version": "2.23.0", + "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.23.0.tgz", + "integrity": "sha512-qiErP48E09ly7wVgbDvOFTTFz2yF6IB3bYqoPcq+FYbkTMpkq1pLeLdXgQx+tg4O9uPtuMjWVwbKaWpa4TUHLA==", "dependencies": { "events": "3.3.0", "freeice": "2.2.2", @@ -7782,7 +7782,7 @@ "jsnlog": "2.30.0", "mime": "3.0.0", "platform": "1.3.6", - "semver": "7.3.5", + "semver": "7.3.7", "uuid": "8.3.2", "wolfy87-eventemitter": "5.2.9" } @@ -7798,6 +7798,20 @@ "node": ">=10.0.0" } }, + "node_modules/openvidu-browser/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -9400,6 +9414,7 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -16576,9 +16591,9 @@ } }, "openvidu-browser": { - "version": "2.22.0", - "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.22.0.tgz", - "integrity": "sha512-fug7V5WZPwEXCF4im6RzhWSbv9nYB4QWMXrEQBEsh7RI1VPQ5Jl2VcindiUeMtN+quLqeTjXSRUh4lfkrTlQSQ==", + "version": "2.23.0", + "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.23.0.tgz", + "integrity": "sha512-qiErP48E09ly7wVgbDvOFTTFz2yF6IB3bYqoPcq+FYbkTMpkq1pLeLdXgQx+tg4O9uPtuMjWVwbKaWpa4TUHLA==", "requires": { "events": "3.3.0", "freeice": "2.2.2", @@ -16587,7 +16602,7 @@ "jsnlog": "2.30.0", "mime": "3.0.0", "platform": "1.3.6", - "semver": "7.3.5", + "semver": "7.3.7", "uuid": "8.3.2", "wolfy87-eventemitter": "5.2.9" }, @@ -16596,6 +16611,14 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==" + }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "requires": { + "lru-cache": "^6.0.0" + } } } }, @@ -17754,6 +17777,7 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, "requires": { "lru-cache": "^6.0.0" } diff --git a/src/angular/frontend/package.json b/src/angular/frontend/package.json index 4a4e042..ac9f168 100644 --- a/src/angular/frontend/package.json +++ b/src/angular/frontend/package.json @@ -36,5 +36,5 @@ "start": "ng serve", "test": "ng test" }, - "version": "2.22.0" + "version": "2.23.0" } \ No newline at end of file diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 04682ff..a52f480 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -4,8 +4,8 @@ - - + + @@ -14,7 +14,7 @@
- + \ No newline at end of file diff --git a/src/main/resources/static/main.92a0cb6264559731.js b/src/main/resources/static/main.be2a5d3c34223516.js similarity index 59% rename from src/main/resources/static/main.92a0cb6264559731.js rename to src/main/resources/static/main.be2a5d3c34223516.js index 813983b..146ea83 100644 --- a/src/main/resources/static/main.92a0cb6264559731.js +++ b/src/main/resources/static/main.be2a5d3c34223516.js @@ -1 +1 @@ -(self.webpackChunkopenvidu_sample_app=self.webpackChunkopenvidu_sample_app||[]).push([[179],{5247:function(_e,$,G){"use strict";function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function q(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=E(e)););return e}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,t,n){var i=q(r,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},O.apply(this,arguments)}function F(e,r){for(var t=0;te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},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 s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function M(e){if(Array.isArray(e))return e}function W(){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 T(e,r){return M(e)||function b(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(u){a=!0,s=u}finally{try{!i&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,r)||ne(e,r)||W()}function w(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){return function X(e){if(Array.isArray(e))return N(e)}(e)||_(e)||ne(e)||function H(){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 K(e,r,t){return(K=D()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var l=new(Function.bind.apply(i,s));return o&&j(l,o.prototype),l}).apply(null,arguments)}function V(e){var r="function"==typeof Map?new Map:void 0;return V=function(n){if(null===n||!function m(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return K(n,arguments,E(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),j(i,n)},V(e)}function L(e){return"function"==typeof e}function B(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var S=B(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(n,i){return"".concat(i+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function C(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var e,P=function(){function e(r){d(this,e),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return f(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var a,i=z(n);try{for(i.s();!(a=i.n()).done;)a.value.remove(this)}catch(v){i.e(v)}finally{i.f()}}else n.remove(this);var s=this.initialTeardown;if(L(s))try{s()}catch(v){t=v instanceof S?v.errors:[v]}var u=this._teardowns;if(u){this._teardowns=null;var c,l=z(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;try{ge(h)}catch(v){t=null!=t?t:[],v instanceof S?t=[].concat(R(t),R(v.errors)):t.push(v)}}}catch(v){l.e(v)}finally{l.f()}}if(t)throw new S(t)}}},{key:"add",value:function(t){var n;if(t&&t!==this)if(this.closed)ge(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}},{key:"_hasParent",value:function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)}},{key:"_addParent",value:function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}},{key:"_removeParent",value:function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&C(n,t)}},{key:"remove",value:function(t){var n=this._teardowns;n&&C(n,t),t instanceof e&&t._removeParent(this)}}]),e}();P.EMPTY=((e=new P).closed=!0,e);var Y=P.EMPTY;function le(e){return e instanceof P||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function ge(e){L(e)?e():e.unsubscribe()}var Ie={setTimeout:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Ie.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Ie.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function je(e){Ie.setTimeout(function(){throw e})}function Ue(){}var Ke=de("C",void 0,void 0);function de(e,r,t){return{kind:e,value:r,error:t}}function qe(e){e()}var ae=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this)).isStopped=!1,n?(i.destination=n,le(n)&&n.add(Q(i))):i.destination=At,i}return f(t,[{key:"next",value:function(i){this.isStopped?De(function ut(e){return de("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?De(function Je(e){return de("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?De(Ke,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,O(E(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,a,o){return new ie(i,a,o)}}]),t}(P);var ce=function(){function e(r){d(this,e),this.partialObserver=r}return f(e,[{key:"next",value:function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){he(i)}}},{key:"error",value:function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){he(i)}else he(t)}},{key:"complete",value:function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){he(n)}}}]),e}(),ie=function(e){p(t,e);var r=g(t);function t(n,i,a){var o,s;return d(this,t),o=r.call(this),L(n)||!n?s={next:null!=n?n:void 0,error:null!=i?i:void 0,complete:null!=a?a:void 0}:(Q(o),s=n),o.destination=new ce(s),o}return f(t)}(ae);function he(e){je(e)}function De(e,r){var t=null;t&&Ie.setTimeout(function(){return t(e,r)})}var At={closed:!0,next:Ue,error:function be(e){throw e},complete:Ue},gn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(e){return e}function Rn(e){return 0===e.length?en:1===e.length?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var lt=function(){var e=function(){function r(t){d(this,r),t&&(this._subscribe=t)}return f(r,[{key:"lift",value:function(n){var i=new r;return i.source=this,i.operator=n,i}},{key:"subscribe",value:function(n,i,a){var o=this,s=function un(e){return e&&e instanceof ae||function sn(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}(e)&&le(e)}(n)?n:new ie(n,i,a);return qe(function(){var u=o.operator,l=o.source;s.add(u?u.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(i){n.error(i)}}},{key:"forEach",value:function(n,i){var a=this;return new(i=Cr(i))(function(o,s){var u=new ie({next:function(c){try{n(c)}catch(h){s(h),u.unsubscribe()}},error:s,complete:o});a.subscribe(u)})}},{key:"_subscribe",value:function(n){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(n)}},{key:gn,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,i=new Array(n),a=0;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),O(E(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var u=this.observers;return this.hasError||this.isStopped?Y:(u.push(a),new P(function(){return C(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var u=this.isStopped;this.hasError?a.error(this.thrownError):u&&a.complete()}},{key:"asObservable",value:function(){var a=new lt;return a.source=this,a}}]),n}(lt);return e.create=function(r,t){return new On(r,t)},e}(),On=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).destination=n,a.source=i,a}return f(t,[{key:"next",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,i)}},{key:"error",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,i)}},{key:"complete",value:function(){var i,a;null===(a=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===a||a.call(i)}},{key:"_subscribe",value:function(i){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(i))&&void 0!==o?o:Y}}]),t}(Oe);function fa(e){return L(null==e?void 0:e.lift)}function Yt(e){return function(r){if(fa(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gt(e,r,t,n,i){return new ux(e,r,t,n,i)}var ux=function(e){p(t,e);var r=g(t);function t(n,i,a,o,s,u){var l,c,h,v;return d(this,t),(v=r.call(this,n)).onFinalize=s,v.shouldUnsubscribe=u,v._next=i?function(y){try{i(y)}catch(I){n.error(I)}}:O((l=Q(v),E(t.prototype)),"_next",l),v._error=o?function(y){try{o(y)}catch(I){n.error(I)}finally{this.unsubscribe()}}:O((c=Q(v),E(t.prototype)),"_error",c),v._complete=a?function(){try{a()}catch(y){n.error(y)}finally{this.unsubscribe()}}:O((h=Q(v),E(t.prototype)),"_complete",h),v}return f(t,[{key:"unsubscribe",value:function(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;O(E(t.prototype),"unsubscribe",this).call(this),!a&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}]),t}(ae);function Ye(e,r){return Yt(function(t,n){var i=0;t.subscribe(Gt(n,function(a){n.next(e.call(r,a,i++))}))})}var lx=G(7757),Ju=G.n(lx);function ha(e){return this instanceof ha?(this.v=e,this):new ha(e)}function fx(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=t.apply(e,r||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(y){return new Promise(function(I,J){a.push([v,y,I,J])>1||s(v,y)})})}function s(v,y){try{!function u(v){v.value instanceof ha?Promise.resolve(v.value.v).then(l,c):h(a[0][2],v)}(n[v](y))}catch(I){h(a[0][3],I)}}function l(v){s("next",v)}function c(v){s("throw",v)}function h(v,y){v(y),a.shift(),a.length&&s(a[0][0],a[0][1])}}function hx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function tm(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,u){!function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}(s,u,(o=e[a](o)).done,o.value)})}}}var Ld=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function nm(e){return L(null==e?void 0:e.then)}function rm(e){return L(e[gn])}function im(e){return Symbol.asyncIterator&&L(null==e?void 0:e[Symbol.asyncIterator])}function am(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var om=function px(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sm(e){return L(null==e?void 0:e[om])}function um(e){return fx(this,arguments,Ju().mark(function r(){var t,n,i;return Ju().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=e.getReader(),s.prev=1;case 2:return s.next=5,ha(t.read());case 5:if(i=(n=s.sent).value,!n.done){s.next=12;break}return s.next=11,ha(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,ha(i);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function lm(e){return L(null==e?void 0:e.getReader)}function or(e){if(e instanceof lt)return e;if(null!=e){if(rm(e))return function gx(e){return new lt(function(r){var t=e[gn]();if(L(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ld(e))return function mx(e){return new lt(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function wx(e,r,t,n,i,a,o,s){var u=[],l=0,c=0,h=!1,v=function(){h&&!u.length&&!l&&r.complete()},y=function(re){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return L(r)?Sn(function(n,i){return Ye(function(a,o){return r(n,a,i,o)})(or(e(n,i)))},t):("number"==typeof r&&(t=r),Yt(function(n,i){return wx(n,i,e,t)}))}function hs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Sn(en,e)}var ri=new lt(function(e){return e.complete()});function dm(e){return e&&L(e.schedule)}function Nd(e){return e[e.length-1]}function fm(e){return L(Nd(e))?e.pop():void 0}function vs(e){return dm(Nd(e))?e.pop():void 0}function kx(e,r){return"number"==typeof Nd(e)?e.pop():r}function hm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){t.subscribe(Gt(n,function(i){return Ci(n,e,function(){return n.next(i)},r)},function(){return Ci(n,e,function(){return n.complete()},r)},function(i){return Ci(n,e,function(){return n.error(i)},r)}))})}function vm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},r))})}function pm(e,r){if(!e)throw new Error("Iterable cannot be null");return new lt(function(t){Ci(t,r,function(){var n=e[Symbol.asyncIterator]();Ci(t,r,function(){n.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function In(e,r){return r?function Tx(e,r){if(null!=e){if(rm(e))return function Sx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(Ld(e))return function Ax(e,r){return new lt(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}(e,r);if(nm(e))return function Dx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(im(e))return pm(e,r);if(sm(e))return function xx(e,r){return new lt(function(t){var n;return Ci(t,r,function(){n=e[om](),Ci(t,r,function(){var i,a;try{var o=n.next();i=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(i)},0,!0)}),function(){return L(null==n?void 0:n.return)&&n.return()}})}(e,r);if(lm(e))return function Mx(e,r){return pm(um(e),r)}(e,r)}throw am(e)}(e,r):or(e)}function Qa(){for(var e=arguments.length,r=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=e.connector,t=void 0===r?function(){return new Oe}:r,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,u=void 0===s||s;return function(l){var c=null,h=null,v=null,y=0,I=!1,J=!1,re=function(){null==h||h.unsubscribe(),h=null},se=function(){re(),c=v=null,I=J=!1},te=function(){var ye=c;se(),null==ye||ye.unsubscribe()};return Yt(function(me,ye){y++,!J&&!I&&re();var xe=v=null!=v?v:t();ye.add(function(){0==--y&&!J&&!I&&(h=Vd(te,u))}),xe.subscribe(ye),c||(c=new ie({next:function(Ge){return xe.next(Ge)},error:function(Ge){J=!0,re(),h=Vd(se,i,Ge),xe.error(Ge)},complete:function(){I=!0,re(),h=Vd(se,o),xe.complete()}}),In(me).subscribe(c))})(l)}}function Vd(e,r){if(!0===r)return e(),null;if(!1===r)return null;for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(n," ").concat(r," <=Actual]")))}(r,e,null,"!=")}function Ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ud(e){return ym(e,tl)||ym(e,bm)}function ym(e,r){return e.hasOwnProperty(r)?e[r]:null}function _m(e){return e&&(e.hasOwnProperty(Gd)||e.hasOwnProperty(Vx))?e[Gd]:null}var zd,tl=Nt({"\u0275prov":Nt}),Gd=Nt({"\u0275inj":Nt}),bm=Nt({ngInjectableDef:Nt}),Vx=Nt({ngInjectorDef:Nt}),et=function(){return(et=et||{})[et.Default=0]="Default",et[et.Host=1]="Host",et[et.Self=2]="Self",et[et.SkipSelf=4]="SkipSelf",et[et.Optional=8]="Optional",et}();function Bx(){return zd}function zi(e){var r=zd;return zd=e,r}function Cm(e,r,t){var n=Ud(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&et.Optional?null:void 0!==r?r:void el(Tt(e),"Injector")}function Wi(e){return{toString:e}.toString()}var Vr=function(){return(Vr=Vr||{})[Vr.OnPush=0]="OnPush",Vr[Vr.Default=1]="Default",Vr}(),Br=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Br||(Br={})),Br}(),Hx="undefined"!=typeof globalThis&&globalThis,jx="undefined"!=typeof window&&window,Ux="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gx="undefined"!=typeof global&&global,Pt=Hx||Gx||jx||Ux,Ya={},Vt=[],nl=Nt({"\u0275cmp":Nt}),Wd=Nt({"\u0275dir":Nt}),qd=Nt({"\u0275pipe":Nt}),wm=Nt({"\u0275mod":Nt}),Ei=Nt({"\u0275fac":Nt}),ps=Nt({__NG_ELEMENT_ID__:Nt}),zx=0;function Bt(e){return Wi(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===Vr.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Vt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Br.Emulated,id:"c",styles:e.styles||Vt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,a=e.features,o=e.pipes;return n.id+=zx++,n.inputs=Dm(e.inputs,t),n.outputs=Dm(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Em)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(km)}:null,n})}function Em(e){return Gn(e)||function qi(e){return e[Wd]||null}(e)}function km(e){return function va(e){return e[qd]||null}(e)}var Sm={};function vt(e){return Wi(function(){var r={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&&(Sm[e.id]=e.type),r})}function Dm(e,r){if(null==e)return Ya;var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),t[i]=n,r&&(r[i]=a)}return t}var Ce=Bt;function Gn(e){return e[nl]||null}function wr(e,r){var t=e[wm]||null;if(!t&&!0===r)throw new Error("Type ".concat(Tt(e)," does not have '\u0275mod' property."));return t}function ii(e){return Array.isArray(e)&&"object"==typeof e[1]}function jr(e){return Array.isArray(e)&&!0===e[1]}function Yd(e){return 0!=(8&e.flags)}function ol(e){return 2==(2&e.flags)}function sl(e){return 1==(1&e.flags)}function Ur(e){return null!==e.template}function $x(e){return 0!=(512&e[2])}function ya(e,r){return e.hasOwnProperty(Ei)?e[Ei]:null}var Jx=function(){function e(r,t,n){d(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}return f(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Wn(){return xm}function xm(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){var e=Tm(this),r=null==e?void 0:e.current;if(r){var t=e.previous;if(t===Ya)e.previous=r;else for(var n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function tM(e,r,t,n){var i=Tm(e)||function nM(e,r){return e[Mm]=r}(e,{previous:Ya,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[t],u=o[s];a[s]=new Jx(u&&u.currentValue,r,o===Ya),e[n]=r}Wn.ngInherit=!0;var Mm="__ngSimpleChanges__";function Tm(e){return e[Mm]||null}var ef=void 0;function tf(){return void 0!==ef?ef:"undefined"!=typeof document?document:void 0}function ln(e){return!!e.listen}var Rm={createRenderer:function(r,t){return tf()}};function _n(e){for(;Array.isArray(e);)e=e[0];return e}function ul(e,r){return _n(r[e])}function Sr(e,r){return _n(r[e.index])}function nf(e,r){return e.data[r]}function cr(e,r){var t=r[e];return ii(t)?t:t[0]}function Om(e){return 4==(4&e[2])}function rf(e){return 128==(128&e[2])}function Ki(e,r){return null==r?null:e[r]}function Im(e){e[18]=0}function af(e,r){e[5]+=r;for(var t=e,n=e[3];null!==n&&(1===r&&1===t[5]||-1===r&&0===t[5]);)n[5]+=r,t=n,n=n[3]}var tt={lFrame:jm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fm(){return tt.bindingsEnabled}function Se(){return tt.lFrame.lView}function Et(){return tt.lFrame.tView}function gt(e){return tt.lFrame.contextLView=e,e[8]}function Dn(){for(var e=Pm();null!==e&&64===e.type;)e=e.parent;return e}function Pm(){return tt.lFrame.currentTNode}function ai(e,r){var t=tt.lFrame;t.currentTNode=e,t.isParent=r}function sf(){return tt.lFrame.isParent}function uf(){tt.lFrame.isParent=!1}function ll(){return tt.isInCheckNoChangesMode}function cl(e){tt.isInCheckNoChangesMode=e}function Xn(){var e=tt.lFrame,r=e.bindingRootIndex;return-1===r&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function to(){return tt.lFrame.bindingIndex++}function _M(e,r){var t=tt.lFrame;t.bindingIndex=t.bindingRootIndex=e,lf(r)}function lf(e){tt.lFrame.currentDirectiveIndex=e}function cf(e){var r=tt.lFrame.currentDirectiveIndex;return-1===r?null:e[r]}function Vm(){return tt.lFrame.currentQueryIndex}function df(e){tt.lFrame.currentQueryIndex=e}function CM(e){var r=e[1];return 2===r.type?r.declTNode:1===r.type?e[6]:null}function Bm(e,r,t){if(t&et.SkipSelf){for(var n=r,i=e;!(null!==(n=n.parent)||t&et.Host||null===(n=CM(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,e=i}var a=tt.lFrame=Hm();return a.currentTNode=r,a.lView=e,!0}function dl(e){var r=Hm(),t=e[1];tt.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Hm(){var e=tt.lFrame,r=null===e?null:e.child;return null===r?jm(e):r}function jm(e){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=r),r}function Um(){var e=tt.lFrame;return tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Gm=Um;function fl(){var e=Um();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function wM(e){var r=tt.lFrame.contextLView=function EM(e,r){for(;e>0;)r=r[15],e--;return r}(e,tt.lFrame.contextLView);return r[8]}function Zn(){return tt.lFrame.selectedIndex}function Qi(e){tt.lFrame.selectedIndex=e}function cn(){var e=tt.lFrame;return nf(e.tView,e.selectedIndex)}function hl(e,r){for(var t=r.directiveStart,n=r.directiveEnd;t=n)break}else r[u]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===r){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var bs=f(function e(r,t,n){d(this,e),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function gl(e,r,t){for(var n=ln(e),i=0;ir){o=a-1;break}}}for(;a>16}(e),n=r;t>0;)n=n[15],t--;return n}var pf=!0;function yl(e){var r=pf;return pf=e,r}var PM=0;function ws(e,r){var t=mf(e,r);if(-1!==t)return t;var n=r[1];n.firstCreatePass&&(e.injectorIndex=r.length,gf(n.data,e),gf(r,null),gf(n.blueprint,null));var i=_l(e,r),a=e.injectorIndex;if(Ym(i))for(var o=no(i),s=ro(i,r),u=s[1].data,l=0;l<8;l++)r[a+l]=s[o+l]|u[o+l];return r[a+8]=i,a}function gf(e,r){e.push(0,0,0,0,0,0,0,0,r)}function mf(e,r){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===r[e.injectorIndex+8]?-1:e.injectorIndex}function _l(e,r){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function bl(e,r,t){!function LM(e,r,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ps)&&(n=t[ps]),null==n&&(n=t[ps]=PM++);var i=255&n;r.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:et.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=HM(t);if("function"==typeof a){if(!Bm(r,e,n))return n&et.Host?Zm(i,t,n):Jm(r,t,n,i);try{var o=a(n);if(null!=o||n&et.Optional)return o;el(t)}finally{Gm()}}else if("number"==typeof a){var s=null,u=mf(e,r),l=-1,c=n&et.Host?r[16][6]:null;for((-1===u||n&et.SkipSelf)&&(-1!==(l=-1===u?_l(e,r):r[u+8])&&ry(n,!1)?(s=r[1],u=no(l),r=ro(l,r)):u=-1);-1!==u;){var h=r[1];if(ny(a,u,h.data)){var v=BM(u,r,t,s,n,c);if(v!==ty)return v}-1!==(l=r[u+8])&&ry(n,r[1].data[u+8]===c)&&ny(a,u,r)?(s=h,u=no(l),r=ro(l,r)):u=-1}}}return Jm(r,t,n,i)}var ty={};function VM(){return new io(Dn(),Se())}function BM(e,r,t,n,i,a){var o=r[1],s=o.data[e+8],c=Cl(s,o,t,null==n?ol(s)&&pf:n!=o&&0!=(3&s.type),i&et.Host&&a===s);return null!==c?Es(r,o,c,s):ty}function Cl(e,r,t,n,i){for(var a=e.providerIndexes,o=r.data,s=1048575&a,u=e.directiveStart,c=a>>20,v=i?s+c:e.directiveEnd,y=n?s:s+c;y=u&&I.type===t)return y}if(i){var J=o[u];if(J&&Ur(J)&&J.type===t)return u}return null}function Es(e,r,t,n){var i=e[t],a=r.data;if(function MM(e){return e instanceof bs}(i)){var o=i;o.resolving&&function Ox(e,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(e):"";throw new Ve(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}($n(a[t]));var s=yl(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?zi(o.injectImpl):null;Bm(e,n,et.Default);try{i=e[t]=o.factory(void 0,a,e,n),r.firstCreatePass&&t>=n.directiveStart&&function AM(e,r,t){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=xm(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],r)}finally{null!==u&&zi(u),yl(s),o.resolving=!1,Gm()}}return i}function HM(e){if("string"==typeof e)return e.charCodeAt(0)||0;var r=e.hasOwnProperty(ps)?e[ps]:void 0;return"number"==typeof r?r>=0?255&r:VM:r}function ny(e,r,t){return!!(t[r+(e>>5)]&1<=e.length?e.push(t):e.splice(r,0,t)}function wl(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function Ds(e,r){for(var t=[],n=0;n=0?e[1|n]=t:function WM(e,r,t,n){var i=e.length;if(i==r)e.push(t,n);else if(1===i)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;)e[i]=e[i-2],i--;e[r]=t,e[r+1]=n}}(e,n=~n,r,t),n}function Cf(e,r){var t=lo(e,r);if(t>=0)return e[1|t]}function lo(e,r){return function uy(e,r,t){for(var n=0,i=e.length>>t;i!==n;){var a=n+(i-n>>1),o=e[a<r?i=a:n=a+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:et.Default;if(void 0===xs){var t="";throw new Ve(203,t)}return null===xs?Cm(e,void 0,r):xs.get(e,r&et.Optional?null:void 0,r)}function ue(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et.Default;return(Bx()||nT)(ct(e),r)}var co=ue;function kf(e){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Tt(r);if(Array.isArray(r))i=r.map(Tt).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Tt(s)))}i="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(e.replace(JM,"\n "))}("\n"+e.message,i,t,n),e.ngTokenPath=i,e[kl]=null,e}var Al,xl,Sl=Ms(uo("Inject",function(e){return{token:e}}),-1),Gr=Ms(uo("Optional"),8),fo=Ms(uo("SkipSelf"),4);function vo(e){var r;return(null===(r=function Df(){if(void 0===Al&&(Al=null,Pt.trustedTypes))try{Al=Pt.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return Al}())||void 0===r?void 0:r.createHTML(e))||e}function my(e){var r;return(null===(r=function Af(){if(void 0===xl&&(xl=null,Pt.trustedTypes))try{xl=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return xl}())||void 0===r?void 0:r.createHTML(e))||e}var _a=function(){function e(r){d(this,e),this.changingThisBreaksApplicationSecurity=r}return f(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),gT=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(_a),mT=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(_a),yT=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(_a),_T=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(_a),bT=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(_a);function fr(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function si(e,r){var t=by(e);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function by(e){return e instanceof _a&&e.getTypeName()||null}var DT=function(){function e(r){d(this,e),this.inertDocumentHelper=r}return f(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(vo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),e}(),AT=function(){function e(r){if(d(this,e),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return f(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=vo(t),n;var i=this.inertDocument.createElement("body");return i.innerHTML=vo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,i=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();xf.hasOwnProperty(n)&&!Ey.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Ay(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),VT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BT=/([^\#-~ |!])/g;function Ay(e){return e.replace(/&/g,"&").replace(VT,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(BT,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function xy(e,r){var t=null;try{Ml=Ml||function Cy(e){var r=new AT(e);return function xT(){try{return!!(new window.DOMParser).parseFromString(vo(""),"text/html")}catch(e){return!1}}()?new DT(r):r}(e);var n=r?String(r):"";t=Ml.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=t.innerHTML,t=Ml.getInertBodyElement(n)}while(n!==a);return vo((new NT).sanitizeChildren(Rf(t)||t))}finally{if(t)for(var u=Rf(t)||t;u.firstChild;)u.removeChild(u.firstChild)}}function Rf(e){return"content"in e&&function HT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Dt=function(){return(Dt=Dt||{})[Dt.NONE=0]="NONE",Dt[Dt.HTML=1]="HTML",Dt[Dt.STYLE=2]="STYLE",Dt[Dt.SCRIPT=3]="SCRIPT",Dt[Dt.URL=4]="URL",Dt[Dt.RESOURCE_URL=5]="RESOURCE_URL",Dt}();function My(e){var r=function Is(){var e=Se();return e&&e[12]}();return r?my(r.sanitize(Dt.HTML,e)||""):si(e,"HTML")?my(fr(e)):xy(tf(),rt(e))}var Oy="__ngContext__";function qn(e,r){e[Oy]=r}function Ff(e){var r=function Fs(e){return e[Oy]||null}(e);return r?Array.isArray(r)?r:r.lView:null}function Lf(e){return e.ngOriginalError}function nR(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&(e[t-1][4]=n[4]);var a=wl(e,10+r);!function yR(e,r){Ls(e,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function zy(e,r){if(!(256&r[2])){var t=r[11];ln(t)&&t.destroyNode&&Ls(e,r,t,3,null,null),function CR(e){var r=e[13];if(!r)return zf(e[1],e);for(;r;){var t=null;if(ii(r))t=r[13];else{var n=r[10];n&&(t=n)}if(!t){for(;r&&!r[4]&&r!==e;)ii(r)&&zf(r[1],r),r=r[3];null===r&&(r=e),ii(r)&&zf(r[1],r),t=r&&r[4]}r=t}}(r)}}function zf(e,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function SR(e,r){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[i=l]():n[i=-l].unsubscribe(),a+=2}else{var c=n[i=t[a+1]];t[a].call(c)}if(null!==n){for(var h=i+1;ha?"":i[h+1].toLowerCase();var y=8&n?v:null;if(y&&-1!==r_(y,l,0)||2&n&&l!==v){if(zr(n))return!1;o=!0}}}}else{if(!o&&!zr(n)&&!zr(u))return!1;if(o&&zr(u))continue;o=!1,n=u|1&n}}return zr(n)||o}function zr(e){return 0==(1&e)}function FR(e,r,t,n){if(null===r)return-1;var i=0;if(n||!t){for(var a=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!zr(o)&&(r+=s_(a,i),i=""),n=o,a=a||!zr(n);t++}return""!==i&&(r+=s_(a,i)),r}var it={};function we(e){u_(Et(),Se(),Zn()+e,ll())}function u_(e,r,t,n){if(!n)if(3==(3&r[2])){var a=e.preOrderCheckHooks;null!==a&&vl(r,a,t)}else{var o=e.preOrderHooks;null!==o&&pl(r,o,0,t)}Qi(t)}function Il(e,r){return e<<17|r<<2}function Wr(e){return e>>17&32767}function Yf(e){return 2|e}function Di(e){return(131068&e)>>2}function $f(e,r){return-131069&e|r<<2}function Xf(e){return 1|e}function __(e,r){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&u_(e,r,20,ll()),t(n,i)}finally{Qi(a)}}function C_(e,r,t){if(Yd(r))for(var i=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Sr,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a0;){var t=e[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(n,i,o)}}function M_(e,r){null!==e.hostBindings&&e.hostBindings(1,r)}function T_(e,r){r.flags|=2,(e.components||(e.components=[])).push(r.index)}function vO(e,r,t){if(t){if(r.exportAs)for(var n=0;n0&&dh(t)}}function dh(e){for(var r=Bf(e);null!==r;r=Hf(r))for(var t=10;t0&&dh(n)}var o=e[1].components;if(null!==o)for(var s=0;s0&&dh(u)}}function CO(e,r){var t=cr(r,e),n=t[1];(function wO(e,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:As;if(n===As){var i=new Error("NullInjectorError: No provider for ".concat(Tt(t),"!"));throw i.name="NullInjectorError",i}return n}}]),e}(),mh=new Fe("Set Injector scope."),Bs={},MO={},yh=void 0;function j_(){return void 0===yh&&(yh=new H_),yh}function U_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=G_(e,r,t,n);return i._resolveInjectorDefTypes(),i}function G_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new TO(e,t,r||j_(),n)}var TO=function(){function e(r,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;d(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&oi(t,function(u){return i.processProvider(u,r,t)}),oi([r],function(u){return i.processInjectorType(u,[],o)}),this.records.set(gh,bo(void 0,this));var s=this.records.get(mh);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:Tt(r))}return f(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:As,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:et.Default;this.assertNotDestroyed();var a=dy(this),o=zi(void 0);try{if(!(i&et.SkipSelf)){var s=this.records.get(t);if(void 0===s){var u=VO(t)&&Ud(t);s=u&&this.injectableDefInScope(u)?bo(_h(t),Bs):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var l=i&et.Self?j_():this.parent;return l.get(t,n=i&et.Optional&&n===As?null:n)}catch(h){if("NullInjectorError"===h.name){var c=h[kl]=h[kl]||[];if(c.unshift(Tt(t)),a)throw h;return iT(h,t,"R3InjectorError",this.source)}throw h}finally{zi(o),dy(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,a){return t.push(Tt(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Ve(205,!1)}},{key:"processInjectorType",value:function(t,n,i){var a=this;if(!(t=ct(t)))return!1;var o=_m(t),s=null==o&&t.ngModule||void 0,u=void 0===s?t:s,h=-1!==i.indexOf(u);if(void 0!==s&&(o=_m(s)),null==o)return!1;if(null!=o.imports&&!h){var v;i.push(u);try{oi(o.imports,function(te){a.processInjectorType(te,n,i)&&(void 0===v&&(v=[]),v.push(te))})}finally{}if(void 0!==v)for(var y=function(me){var ye=v[me],xe=ye.ngModule,Re=ye.providers;oi(Re,function(Ge){return a.processProvider(Ge,xe,Re||Vt)})},I=0;I0)throw Ds(r,"?"),new Ve(204,!1);var n=function Lx(e){var r=e&&(e[tl]||e[bm]);if(r){var t=function Nx(e){if(e.hasOwnProperty("name"))return e.name;var r=(""+e).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" 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(t,'" class.')),r}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Ve(204,!1)}function z_(e,r,t){var n=void 0;if(Co(e)){var i=ct(e);return ya(i)||_h(i)}if(W_(e))n=function(){return ct(e.useValue)};else if(function FO(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,R(kf(e.deps||[])))};else if(function IO(e){return!(!e||!e.useExisting)}(e))n=function(){return ue(ct(e.useExisting))};else{var a=ct(e&&(e.useClass||e.provide));if(!function LO(e){return!!e.deps}(e))return ya(a)||_h(a);n=function(){return K(a,R(kf(e.deps)))}}return n}function bo(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:r,multi:t?[]:void 0}}function W_(e){return null!==e&&"object"==typeof e&&tT in e}function Co(e){return"function"==typeof e}function VO(e){return"function"==typeof e||"object"==typeof e&&e instanceof Fe}var Wt=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return U_({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return U_({name:o},n.parent,n.providers,o)}}]),r}();return e.THROW_IF_NOT_FOUND=As,e.NULL=new H_,e.\u0275prov=Ee({token:e,providedIn:"any",factory:function(){return ue(gh)}}),e.__NG_ELEMENT_ID__=-1,e}();function YO(e,r){hl(Ff(e)[1],Dn())}function Me(e){for(var r=function J_(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];r;){var i=void 0;if(Ur(e))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Ve(903,"");i=r.\u0275dir}if(i){if(t){n.push(i);var o=e;o.inputs=Ch(e.inputs),o.declaredInputs=Ch(e.declaredInputs),o.outputs=Ch(e.outputs);var s=i.hostBindings;s&&JO(e,s);var u=i.viewQuery,l=i.contentQueries;if(u&&XO(e,u),l&&ZO(e,l),Bd(e.inputs,i.inputs),Bd(e.declaredInputs,i.declaredInputs),Bd(e.outputs,i.outputs),Ur(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var h=i.features;if(h)for(var v=0;v=0;n--){var i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=ml(i.hostAttrs,t=ml(t,i.hostAttrs))}}(n)}function Ch(e){return e===Ya?{}:e===Vt?[]:e}function XO(e,r){var t=e.viewQuery;e.viewQuery=t?function(n,i){r(n,i),t(n,i)}:r}function ZO(e,r){var t=e.contentQueries;e.contentQueries=t?function(n,i,a){r(n,i,a),t(n,i,a)}:r}function JO(e,r){var t=e.hostBindings;e.hostBindings=t?function(n,i){r(n,i),t(n,i)}:r}var Bl=null;function wo(){if(!Bl){var e=Pt.Symbol;if(e&&e.iterator)Bl=e.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:et.Default,t=Se();if(null===t)return ue(e,r);var n=Dn();return ey(n,t,ct(e),r)}function Us(){throw new Error("invalid")}function Ae(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(Et(),cn(),n,e,r,n[11],t,!1),Ae}function Dh(e,r,t,n,i){var o=i?"class":"style";B_(e,t,r.inputs[o],o,n)}function ve(e,r,t,n){var i=Se(),a=Et(),o=20+e,s=i[11],u=i[o]=Uf(s,r,function DM(){return tt.lFrame.currentNamespace}()),l=a.firstCreatePass?function D1(e,r,t,n,i,a,o){var s=r.consts,l=mo(r,e,2,i,Ki(s,a));return lh(r,t,l,Ki(s,o)),null!==l.attrs&&Vl(l,l.attrs,!1),null!==l.mergedAttrs&&Vl(l,l.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,l),l}(o,a,i,0,r,t,n):a.data[o];ai(l,!0);var c=l.mergedAttrs;null!==c&&gl(s,u,c);var h=l.classes;null!==h&&Qf(s,u,h);var v=l.styles;return null!==v&&n_(s,u,v),64!=(64&l.flags)&&Rl(a,i,u,l),0===function fM(){return tt.lFrame.elementDepthCount}()&&qn(u,i),function hM(){tt.lFrame.elementDepthCount++}(),sl(l)&&(sh(a,i,l),C_(a,l,i)),null!==n&&uh(i,l),ve}function pe(){var e=Dn();sf()?uf():ai(e=e.parent,!1);var r=e;!function vM(){tt.lFrame.elementDepthCount--}();var t=Et();return t.firstCreatePass&&(hl(t,e),Yd(e)&&t.queries.elementEnd(e)),null!=r.classesWithoutHost&&function RM(e){return 0!=(16&e.flags)}(r)&&Dh(t,r,Se(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function OM(e){return 0!=(32&e.flags)}(r)&&Dh(t,r,Se(),r.stylesWithoutHost,!1),pe}function Xt(e,r,t,n){return ve(e,r,t,n),pe(),Xt}function Gs(e,r,t){var n=Se(),i=Et(),a=e+20,o=i.firstCreatePass?function A1(e,r,t,n,i){var a=r.consts,o=Ki(a,n),s=mo(r,e,8,"ng-container",o);return null!==o&&Vl(s,o,!0),lh(r,t,s,Ki(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,t):i.data[a];ai(o,!0);var s=n[a]=n[11].createComment("");return Rl(i,n,s,o),qn(s,n),sl(o)&&(sh(i,n,o),C_(i,o,n)),null!=t&&uh(n,o),Gs}function zs(){var e=Dn(),r=Et();return sf()?uf():ai(e=e.parent,!1),r.firstCreatePass&&(hl(r,e),Yd(e)&&r.queries.elementEnd(e)),zs}function Lt(){return Se()}function Ws(e){return!!e&&"function"==typeof e.then}var Ah=function Cb(e){return!!e&&"function"==typeof e.subscribe};function Be(e,r,t,n){var i=Se(),a=Et(),o=Dn();return wb(a,i,i[11],o,e,r,!!t,n),Be}function qs(e,r){var t=Dn(),n=Se(),i=Et();return wb(i,n,N_(cf(i.data),t,n),t,e,r,!1),qs}function wb(e,r,t,n,i,a,o,s){var u=sl(n),c=e.firstCreatePass&&L_(e),h=r[8],v=P_(r),y=!0;if(3&n.type||s){var I=Sr(n,r),J=s?s(I):I,re=v.length,se=s?function(Ui){return s(_n(Ui[n.index]))}:n.index;if(ln(t)){var te=null;if(!s&&u&&(te=function x1(e,r,t,n){var i=e.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}(e,r,i,n.index)),null!==te)(te.__ngLastListenerFn__||te).__ngNextListenerFn__=a,te.__ngLastListenerFn__=a,y=!1;else{a=xh(n,r,h,a,!1);var ye=t.listen(J,i,a);v.push(a,ye),c&&c.push(i,se,re,re+1)}}else a=xh(n,r,h,a,!0),J.addEventListener(i,a,o),v.push(a),c&&c.push(i,se,re,o)}else a=xh(n,r,h,a,!1);var Re,xe=n.outputs;if(y&&null!==xe&&(Re=xe[i])){var Ge=Re.length;if(Ge)for(var yt=0;yt0&&void 0!==arguments[0]?arguments[0]:1;return wM(e)}function M1(e,r){for(var t=null,n=function PR(e){var r=e.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Se(),i=Et(),a=mo(i,20+e,16,null,t||null);null===a.projection&&(a.projection=r),uf(),64!=(64&a.flags)&&xR(i,n,a)}function Ib(e,r,t,n,i){for(var a=e[t+1],o=null===r,s=n?Wr(a):Di(a),u=!1;0!==s&&(!1===u||o);){var c=e[s+1];O1(e[s],r)&&(u=!0,e[s+1]=n?Xf(c):Yf(c)),s=n?Wr(c):Di(c)}u&&(e[t+1]=n?Yf(a):Xf(a))}function O1(e,r){return null===e||null==r||(Array.isArray(e)?e[1]:e)===r||!(!Array.isArray(e)||"string"!=typeof r)&&lo(e,r)>=0}function xi(e,r,t){return Kr(e,r,t,!1),xi}function Rt(e,r){return Kr(e,r,null,!0),Rt}function Kr(e,r,t,n){var i=Se(),a=Et(),o=function Si(e){var r=tt.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}(2);a.firstUpdatePass&&function jb(e,r,t,n){var i=e.data;if(null===i[t+1]){var a=i[Zn()],o=function Hb(e,r){return r>=e.expandoStartIndex}(e,t);(function Wb(e,r){return 0!=(e.flags&(r?16:32))})(a,n)&&null===r&&!o&&(r=!1),r=function j1(e,r,t,n){var i=cf(e),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(t=Ks(t=Th(null,e,r,t,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Th(i,e,r,t,n),null===a){var l=function U1(e,r,t){var n=t?r.classBindings:r.styleBindings;if(0!==Di(n))return e[Wr(n)]}(e,r,n);void 0!==l&&Array.isArray(l)&&function G1(e,r,t,n){e[Wr(t?r.classBindings:r.styleBindings)]=n}(e,r,n,l=Ks(l=Th(null,e,r,l[1],n),r.attrs,n))}else a=function z1(e,r,t){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(l=!0):c=t,i)if(0!==u){var y=Wr(e[s+1]);e[n+1]=Il(y,s),0!==y&&(e[y+1]=$f(e[y+1],n)),e[s+1]=function UR(e,r){return 131071&e|r<<17}(e[s+1],n)}else e[n+1]=Il(s,0),0!==s&&(e[s+1]=$f(e[s+1],n)),s=n;else e[n+1]=Il(u,0),0===s?s=n:e[u+1]=$f(e[u+1],n),u=n;l&&(e[n+1]=Yf(e[n+1])),Ib(e,c,n,!0),Ib(e,c,n,!1),function R1(e,r,t,n,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof r&&lo(a,r)>=0&&(t[n+1]=Xf(t[n+1]))}(r,c,e,n,a),o=Il(s,u),a?r.classBindings=o:r.styleBindings=o}(i,a,r,t,o,n)}}(a,e,o,n),r!==it&&Kn(i,o,r)&&function Gb(e,r,t,n,i,a,o,s){if(3&r.type){var u=e.data,l=u[s+1];jl(function d_(e){return 1==(1&e)}(l)?zb(u,r,t,i,Di(l),o):void 0)||(jl(a)||function c_(e){return 2==(2&e)}(l)&&(a=zb(u,null,t,i,s,o)),function TR(e,r,t,n,i){var a=ln(e);if(r)i?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:hr.DashCase;if(null==i)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=hr.Important),a?e.setStyle(t,n,i,o):t.style.setProperty(n,i,s?"important":"")}}}(n,o,ul(Zn(),t),i,a))}}(a,a.data[Zn()],i,i[11],e,i[o+1]=function K1(e,r){return null==e||("string"==typeof r?e+=r:"object"==typeof e&&(e=Tt(fr(e)))),e}(r,t),n,o)}function Th(e,r,t,n,i){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,v=t[i+1];v===it&&(v=h?Vt:void 0);var y=h?Cf(v,n):c===n?v:void 0;if(l&&!jl(y)&&(y=Cf(u,n)),jl(y)&&(s=y,o))return s;var I=e[i+1];i=o?Wr(I):Di(I)}if(null!==r){var J=a?r.residualClasses:r.residualStyles;null!=J&&(s=Cf(J,n))}return s}function jl(e){return void 0!==e}function Te(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Se(),n=Et(),i=e+20,a=n.firstCreatePass?mo(n,i,1,r,null):n.data[i],o=t[i]=jf(t[11],r);Rl(n,t,o,a),ai(a,!1)}function bn(e){return Rh("",e,""),bn}function Rh(e,r,t){var n=Se(),i=function ko(e,r,t,n){return Kn(e,to(),t)?r+rt(t)+n:it}(n,e,r,t);return i!==it&&Ai(n,Zn(),i),Rh}function Fo(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(Et(),cn(),n,e,r,n[11],t,!0),Fo}function Qs(e,r,t){var n=Se();if(Kn(n,to(),r)){var a=Et(),o=cn();vr(a,o,n,e,r,N_(cf(a.data),o,n),t,!0)}return Qs}var Ul="en-US";function lF(e,r,t){var n=Et();if(n.firstCreatePass){var i=Ur(e);Fh(t,n.data,n.blueprint,i,!0),Fh(r,n.data,n.blueprint,i,!1)}}function Fh(e,r,t,n,i){if(e=ct(e),Array.isArray(e))for(var a=0;a>20;if(Co(e)||!e.multi){var I=new bs(l,i,U),J=Lh(u,r,i?h:h+y,v);-1===J?(bl(ws(c,s),o,u),Ph(o,e,r.length),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(I),s.push(I)):(t[J]=I,s[J]=I)}else{var re=Lh(u,r,h+y,v),se=Lh(u,r,h,h+y),me=se>=0&&t[se];if(i&&!me||!i&&!(re>=0&&t[re])){bl(ws(c,s),o,u);var ye=function fF(e,r,t,n,i){var a=new bs(e,t,U);return a.multi=[],a.index=r,a.componentProviders=0,PC(a,i,n&&!t),a}(i?dF:cF,t.length,i,n,l);!i&&me&&(t[se].providerFactory=ye),Ph(o,e,r.length,0),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(ye),s.push(ye)}else Ph(o,e,re>-1?re:se,PC(t[i?se:re],l,!i&&n));!i&&n&&me&&t[se].componentProviders++}}}function Ph(e,r,t,n){var i=Co(r),a=function PO(e){return!!e.useClass}(r);if(i||a){var u=(a?ct(r.useClass):r).prototype.ngOnDestroy;if(u){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){var c=l.indexOf(t);-1===c?l.push(t,[n,u]):l[c+1].push(n,u)}else l.push(t,u)}}}function PC(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function Lh(e,r,t,n){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,i){return lF(n,i?i(e):e,r)}}}var hF=f(function e(){d(this,e)}),LC=f(function e(){d(this,e)}),pF=function(){function e(){d(this,e)}return f(e,[{key:"resolveComponentFactory",value:function(t){throw function vF(e){var r=Error("No component factory found for ".concat(Tt(e),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=e,r}(t)}}]),e}(),Ea=function(){var e=f(function r(){d(this,r)});return e.NULL=new pF,e}();function gF(){return No(Dn(),Se())}function No(e,r){return new We(Sr(e,r))}var We=function(){var e=f(function r(t){d(this,r),this.nativeElement=t});return e.__NG_ELEMENT_ID__=gF,e}();function mF(e){return e instanceof We?e.nativeElement:e}var Js=f(function e(){d(this,e)}),Yr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=function(){return function _F(){var e=Se(),t=cr(Dn().index,e);return function yF(e){return e[11]}(ii(t)?t:e)}()},e}(),bF=function(){var e=f(function r(){d(this,r)});return e.\u0275prov=Ee({token:e,providedIn:"root",factory:function(){return null}}),e}(),ea=f(function e(r){d(this,e),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),CF=new ea("13.2.5"),Vh={};function Kl(e,r,t,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&n.push(_n(a)),jr(a))for(var o=10;o-1&&(Gf(t,i),wl(n,i))}this._attachedToViewContainer=!1}zy(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){S_(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){fh(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vh(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function kO(e,r,t){cl(!0);try{vh(e,r,t)}finally{cl(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Ve(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function bR(e,r){Ls(e,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Ve(902,"");this._appRef=t}}]),e}(),wF=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this,n))._view=n,i}return f(t,[{key:"detectChanges",value:function(){F_(this._view)}},{key:"checkNoChanges",value:function(){!function SO(e){cl(!0);try{F_(e)}finally{cl(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(eu),VC=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this)).ngModule=n,i}return f(t,[{key:"resolveComponentFactory",value:function(i){var a=Gn(i);return new Bh(a,this.ngModule)}}]),t}(Ea);function BC(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push({propName:e[t],templateName:t});return r}var Bh=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function HR(e){return e.map(BR).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return f(t,[{key:"inputs",get:function(){return BC(this.componentDef.inputs)}},{key:"outputs",get:function(){return BC(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var te,me,u=(s=s||this.ngModule)?function kF(e,r){return{get:function(n,i,a){var o=e.get(n,Vh,a);return o!==Vh||i===Vh?o:r.get(n,i,a)}}}(i,s.injector):i,l=u.get(Js,Rm),c=u.get(bF,null),h=l.createRenderer(null,this.componentDef),v=this.componentDef.selectors[0][0]||"div",y=o?function k_(e,r,t){if(ln(e))return e.selectRootElement(r,t===Br.ShadowDom);var i="string"==typeof r?e.querySelector(r):r;return i.textContent="",i}(h,o,this.componentDef.encapsulation):Uf(l.createRenderer(null,this.componentDef),v,function EF(e){var r=e.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(v)),I=this.componentDef.onPush?576:528,J=function Z_(e,r){return{components:[],scheduler:e||fR,clean:DO,playerHandler:r||null,flags:0}}(),re=Ll(0,null,null,1,0,null,null,null,null,null),se=Ns(null,re,J,I,null,null,l,h,c,u);dl(se);try{var ye=function $_(e,r,t,n,i,a){var o=t[1];t[20]=e;var u=mo(o,20,2,"#host",null),l=u.mergedAttrs=r.hostAttrs;null!==l&&(Vl(u,l,!0),null!==e&&(gl(i,e,l),null!==u.classes&&Qf(i,e,u.classes),null!==u.styles&&n_(i,e,u.styles)));var c=n.createRenderer(e,r),h=Ns(t,w_(r),null,r.onPush?64:16,t[20],u,n,c,a||null,null);return o.firstCreatePass&&(bl(ws(u,t),o,r.type),T_(o,u),R_(u,t.length,1)),Nl(t,h),t[20]=h}(y,this.componentDef,se,l,h);if(y)if(o)gl(h,y,["ng-version",CF.full]);else{var xe=function jR(e){for(var r=[],t=[],n=1,i=2;n0&&Qf(h,y,Ge.join(" "))}if(me=nf(re,20),void 0!==a)for(var yt=me.projection=[],on=0;on1&&void 0!==arguments[1]?arguments[1]:Wt.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:et.Default;return i===Wt||i===Mi||i===gh?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(Mi),Hh=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this)).moduleType=n,null!==wr(n)&&function xF(e){var r=new Set;!function t(n){var i=wr(n,!0),a=i.id;null!==a&&(function jC(e,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Tt(r)," vs ").concat(Tt(r.name)))}(a,Vo.get(a),n),Vo.set(a,n));var l,u=z(li(i.imports));try{for(u.s();!(l=u.n()).done;){var c=l.value;r.has(c)||(r.add(c),t(c))}}catch(h){u.e(h)}finally{u.f()}}(e)}(n),i}return f(t,[{key:"create",value:function(i){return new GC(this.moduleType,i)}}]),t}(HC);function tu(e,r,t){var n=Xn()+e,i=Se();return i[n]===it?di(i,n,t?r.call(t):r()):function js(e,r){return e[r]}(i,n)}function jh(e,r,t,n){return function zC(e,r,t,n,i,a){var o=r+t;return Kn(e,o,i)?di(e,o+1,a?n.call(a,i):n(i)):function nu(e,r){var t=e[r];return t===it?void 0:t}(e,o+1)}(Se(),Xn(),e,r,t,n)}var zF=function(e){p(t,e);var r=g(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,t),(n=r.call(this)).__isAsync=i,n}return f(t,[{key:"emit",value:function(i){O(E(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,u,l,c=i,h=a||function(){return null},v=o;if(i&&"object"==typeof i){var y=i;c=null===(s=y.next)||void 0===s?void 0:s.bind(y),h=null===(u=y.error)||void 0===u?void 0:u.bind(y),v=null===(l=y.complete)||void 0===l?void 0:l.bind(y)}this.__isAsync&&(h=Uh(h),c&&(c=Uh(c)),v&&(v=Uh(v)));var I=O(E(t.prototype),"subscribe",this).call(this,{next:c,error:h,complete:v});return i instanceof P&&i.add(I),I}}]),t}(Oe);function Uh(e){return function(r){setTimeout(e,void 0,r)}}var kt=zF;function WF(){return this._results[wo()]()}var YC=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(this,e),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=wo(),n=e.prototype;n[t]||(n[t]=WF)}return f(e,[{key:"changes",get:function(){return this._changes||(this._changes=new kt)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var i=this;i.dirty=!1;var a=Dr(t);(this._changesDetected=!function GM(e,r,t){if(e.length!==r.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=XC(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,u){var c,l=i&&!function Ss(e){return"function"==typeof e}(i);if(l)c=a;else{var h=a||{};c=h.index,o=h.injector,s=h.projectableNodes,u=h.ngModuleRef}var v=l?i:new Bh(Gn(i)),y=o||this.parentInjector;if(!u&&null==v.ngModule){var J=(l?y:this.parentInjector).get(Mi,null);J&&(u=J)}var re=v.create(y,s,void 0,u);return this.insert(re.hostView,c),re}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function dM(e){return jr(e[3])}(o)){var u=this.indexOf(i);if(-1!==u)this.detach(u);else{var l=o[3],c=new $C(l,l[6],l[3]);c.detach(c.indexOf(i))}}var h=this._adjustIndex(a),v=this._lContainer;!function wR(e,r,t,n){var i=10+n,a=t.length;n>0&&(t[i-1][4]=r),n1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),t}(Mr);function XC(e){return e[8]}function Gh(e){return e[8]||(e[8]=[])}function ZC(e,r){var t,n=r[e.index];if(jr(n))t=n;else{var i;if(8&e.type)i=_n(n);else{var a=r[11];i=a.createComment("");var o=Sr(e,r);ba(a,Tl(a,o),i,function AR(e,r){return ln(e)?e.nextSibling(r):r.nextSibling}(a,o),!1)}r[e.index]=t=I_(n,r,i,e),Nl(r,t)}return new $C(t,e,r)}var JF=function(){function e(r){d(this,e),this.queryList=r,this.matches=null}return f(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),eP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;d(this,e),this.predicate=r,this.flags=t,this.read=n}),tP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"elementStart",value:function(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;d(this,e),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return f(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{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(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a0)n.push(o[s/2]);else{for(var l=a[s+1],c=r[-u],h=10;h0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(u){return u.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ot))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Dw=function(){var e=function(){function r(){d(this,r),this._applications=new Map,iv.addToWindow(this)}return f(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||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(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return iv.findTestabilityInTree(this,n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),LP=function(){function e(){d(this,e)}return f(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,i){return null}}]),e}(),iv=new LP;function VP(e,r,t){var n=new Hh(t);return Promise.resolve(n)}var Aw=new Fe("AllowMultipleToken"),xw=f(function e(r,t){d(this,e),this.name=r,this.token=t});function HP(e){if(Xr&&!Xr.destroyed&&!Xr.injector.get(Aw,!1))throw new Ve(400,"");Xr=e.get(Rw);var t=e.get(Cw,null);return t&&t.forEach(function(n){return n()}),Xr}function Mw(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new Fe(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Tw();if(!o||o.injector.get(Aw,!1))if(e)e(t.concat(a).concat({provide:i,useValue:!0}));else{var s=t.concat(a).concat({provide:i,useValue:!0},{provide:mh,useValue:"platform"});HP(Wt.create({providers:s,name:n}))}return jP()}}function jP(e){var r=Tw();if(!r)throw new Ve(401,"");return r}function Tw(){return Xr&&!Xr.destroyed?Xr:null}var Rw=function(){var e=function(){function r(t){d(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return f(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,l=function UP(e,r){return"noop"===e?new PP:("zone.js"===e?void 0:e)||new ot({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:ot,useValue:l}];return l.run(function(){var h=Wt.create({providers:c,parent:a.injector,name:n.moduleType.name}),v=n.create(h),y=v.injector.get(Xi,null);if(!y)throw new Ve(402,"");return l.runOutsideAngular(function(){var J=l.onError.subscribe({next:function(se){y.handleError(se)}});v.onDestroy(function(){av(a._modules,v),J.unsubscribe()})}),function GP(e,r,t){try{var n=t();return Ws(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}}(y,l,function(){var J=v.injector.get(Xh);return J.runInitializers(),J.donePromise.then(function(){return function yI(e){ur(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(v.injector.get(Ti,Ul)||Ul),a._moduleDoBootstrap(v),v})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=Ow({},a);return VP(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(Zl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new Ve(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Ve(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Wt))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function Ow(e,r){return Array.isArray(r)?r.reduce(Ow,e):Object.assign(Object.assign({},e),r)}var Zl=function(){var e=function(){function r(t,n,i,a,o){var s=this;d(this,r),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new lt(function(c){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){c.next(s._stable),c.complete()})}),l=new lt(function(c){var h;s._zone.runOutsideAngular(function(){h=s._zone.onStable.subscribe(function(){ot.assertNotInAngularZone(),ev(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,c.next(!0))})})});var v=s._zone.onUnstable.subscribe(function(){ot.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){h.unsubscribe(),v.unsubscribe()}});this.isStable=Qa(u,l.pipe(gm()))}return f(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new Ve(405,"");s=n instanceof LC?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var u=function BP(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mi),c=s.create(Wt.NULL,[],i||s.selector,u),h=c.location.nativeElement,v=c.injector.get(rv,null),y=v&&c.injector.get(Dw);return v&&y&&y.registerApplication(h,v),c.onDestroy(function(){a.detachView(c.hostView),av(a.components,c),y&&y.unregisterApplication(h)}),this._loadComponent(c),c}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Ve(101,"");try{this._runningTick=!0;var o,a=z(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(h){a.e(h)}finally{a.f()}}catch(h){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(h)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;av(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Jh,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ot),ue(Wt),ue(Xi),ue(Ea),ue(Xh))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function av(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var gr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=qP,e}();function qP(e){return function KP(e,r,t){if(ol(e)&&!t){var n=cr(e.index,r);return new eu(n,n)}return 47&e.type?new eu(r[16],r):null}(Dn(),Se(),16==(16&e))}var Bw=function(){function e(){d(this,e)}return f(e,[{key:"supports",value:function(t){return Hs(t)}},{key:"create",value:function(t){return new XP(t)}}]),e}(),$P=function(r,t){return t},XP=function(){function e(r){d(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=r||$P}return f(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Da);return e.\u0275fac=function(t){return new(t||e)(ue(at))},e.\u0275prov=Ee({token:e,factory:function(){return function fL(){return new Ww(ue(at))}()},providedIn:"platform"}),e}();function qw(){return!!window.history.pushState}function dv(e,r){if(0==e.length)return r;if(0==r.length)return e;var t=0;return e.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?e+r.substring(1):1==t?e+r:e+"/"+r}function Kw(e){var r=e.match(/#|\?|$/),t=r&&r.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Ri(e){return e&&"?"!==e[0]?"?"+e:e}var Ho=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:function(){return function hL(e){var r=ue(at).location;return new Qw(ue(Da),r&&r.origin||"")}()},providedIn:"root"}),e}(),fv=new Fe("appBaseHref"),Qw=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;if(d(this,n),(o=t.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)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 o._baseHref=a,o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return dv(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+Ri(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(ue(Da),ue(fv,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),vL=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._platformLocation=i,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=dv(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(ue(Da),ue(fv,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Aa=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._subject=new kt,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Kw(Yw(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return f(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+Ri(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function gL(e,r){return e&&r.startsWith(e)?r.substring(e.length):r}(this._baseHref,Yw(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return e.normalizeQueryParams=Ri,e.joinWithSlash=dv,e.stripTrailingSlash=Kw,e.\u0275fac=function(t){return new(t||e)(ue(Ho),ue(Da))},e.\u0275prov=Ee({token:e,factory:function(){return function pL(){return new Aa(ue(Ho),ue(Da))}()},providedIn:"root"}),e}();function Yw(e){return e.replace(/\/index.html$/,"")}function iE(e,r){r=encodeURIComponent(r);var n,t=z(e.split(";"));try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i.indexOf("="),s=T(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),l=s[1];if(s[0].trim()===r)return decodeURIComponent(l)}}catch(c){t.e(c)}finally{t.f()}return null}var lc=function(){var e=function(){function r(t,n,i,a){d(this,r),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return f(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Hs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Tt(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(ou),U(Sa),U(We),U(Yr))},e.\u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),eN=function(){function e(r,t,n,i){d(this,e),this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}return f(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}(),wv=function(){var e=function(){function r(t,n,i){d(this,r),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return f(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(c,h,v){if(null==c.previousIndex)a.createEmbeddedView(i._template,new eN(c.item,i._ngForOf,-1,-1),null===v?void 0:v);else if(null==v)a.remove(null===h?void 0:h);else if(null!==h){var y=a.get(h);a.move(y,v),aE(y,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},Pt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Pt.getAllAngularRootElements=function(){return t.getAllRootElements()},Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(function(a){var o=Pt.getAllAngularTestabilities(),s=o.length,u=!1,l=function(h){u=u||h,0==--s&&a(u)};o.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,n,i){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:i?vi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function NP(e){iv=e}(new e)}}]),e}(),BN=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),hc=new Fe("EventManagerPlugins"),vc=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=i}),this._plugins=t.slice().reverse()}return f(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o-1&&(o.splice(v,1),l+=h+".")}),l+=u,0!=o.length||0===u.length)return null;var c={};return c.domEventName=s,c.fullKey=l,c}},{key:"getEventFullKey",value:function(a){var o="",s=function ZN(e){var r=e.key;if(null==r){if(null==(r=e.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===e.location&&CE.hasOwnProperty(r)&&(r=CE[r]))}return YN[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),bE.forEach(function(u){u!=s&&(0,$N[u])(a)&&(o+=u+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(u){n.getEventFullKey(u)===a&&s.runGuarded(function(){return o(u)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(hE);return e.\u0275fac=function(t){return new(t||e)(ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),nV=[{provide:pr,useValue:cE},{provide:Cw,useValue:function JN(){IN.makeCurrent(),VN.init()},multi:!0},{provide:at,useFactory:function tV(){return function sM(e){ef=e}(document),document},deps:[]}],rV=Mw(aL,"browser",nV),iV=[{provide:mh,useValue:"root"},{provide:Xi,useFactory:function eV(){return new Xi},deps:[]},{provide:hc,useClass:KN,multi:!0,deps:[at,ot,pr]},{provide:hc,useClass:XN,multi:!0,deps:[at]},{provide:gc,useClass:gc,deps:[vc,cu,au]},{provide:Js,useExisting:gc},{provide:vE,useExisting:cu},{provide:cu,useClass:cu,deps:[at]},{provide:rv,useClass:rv,deps:[ot]},{provide:vc,useClass:vc,deps:[hc,ot]},{provide:Av,useClass:BN,deps:[]}],wE=function(){var e=function(){function r(t){if(d(this,r),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 f(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:au,useValue:n.appId},{provide:fE,useExisting:au},NN]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(e,12))},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:iV,imports:[dc,oL]}),e}();"undefined"!=typeof window&&window;var mc=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:function(t){return t?new(t||e):ue(SE)},providedIn:"root"}),e}(),SE=function(){var e=function(r){p(n,r);var t=g(n);function n(i){var a;return d(this,n),(a=t.call(this))._doc=i,a}return f(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case Dt.NONE:return o;case Dt.HTML:return si(o,"HTML")?fr(o):xy(this._doc,String(o)).toString();case Dt.STYLE:return si(o,"Style")?fr(o):o;case Dt.SCRIPT:if(si(o,"Script"))return fr(o);throw new Error("unsafe value used in a script context");case Dt.URL:return by(o),si(o,"URL")?fr(o):Rs(String(o));case Dt.RESOURCE_URL:if(si(o,"ResourceURL"))return fr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function CT(e){return new gT(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function wT(e){return new mT(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function ET(e){return new yT(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function kT(e){return new _T(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function ST(e){return new bT(e)}(a)}}]),n}(mc);return e.\u0275fac=function(t){return new(t||e)(ue(at))},e.\u0275prov=Ee({token:e,factory:function(t){var n;return n=t?new t:function fV(e){return new SE(e.get(at))}(ue(Wt)),n},providedIn:"root"}),e}(),hV=Array.isArray,vV=Object.getPrototypeOf,pV=Object.prototype,gV=Object.keys;function DE(e){if(1===e.length){var r=e[0];if(hV(r))return{args:r,keys:null};if(function mV(e){return e&&"object"==typeof e&&vV(e)===pV}(r)){var t=gV(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}var yV=Array.isArray;function Ov(e){return Ye(function(r){return function _V(e,r){return yV(r)?e.apply(void 0,R(r)):e(r)}(e,r)})}function AE(e,r){return e.reduce(function(t,n,i){return t[n]=r[i],t},{})}function xE(){for(var e=arguments.length,r=new Array(e),t=0;te?{max:{max:e,actual:r.value}}:null}}(t)}},{key:"required",value:function(t){return FE(t)}},{key:"requiredTrue",value:function(t){return function PE(e){return!0===e.value?null:{required:!0}}(t)}},{key:"email",value:function(t){return function LE(e){return ta(e.value)||kV.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function NE(e){return function(r){return ta(r.value)||!RE(r.value)?null:r.value.lengthe?{maxlength:{requiredLength:e,actualLength:r.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return function BE(e){return e?("string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),r=new RegExp(t)):(t=e.toString(),r=e),function(n){if(ta(n.value))return null;var i=n.value;return r.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}):yc;var r,t}(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return WE(t)}},{key:"composeAsync",value:function(t){return qE(t)}}]),e}();function FE(e){return ta(e.value)?{required:!0}:null}function yc(e){return null}function HE(e){return null!=e}function jE(e){var r=Ws(e)?In(e):e;return Ah(r),r}function UE(e){var r={};return e.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function GE(e,r){return r.map(function(t){return t(e)})}function zE(e){return e.map(function(r){return function DV(e){return!e.validate}(r)?r:function(t){return r.validate(t)}})}function WE(e){if(!e)return null;var r=e.filter(HE);return 0==r.length?null:function(t){return UE(GE(t,r))}}function Iv(e){return null!=e?WE(zE(e)):null}function qE(e){if(!e)return null;var r=e.filter(HE);return 0==r.length?null:function(t){return xE(GE(t,r).map(jE)).pipe(Ye(UE))}}function Fv(e){return null!=e?qE(zE(e)):null}function KE(e,r){return null===e?[r]:Array.isArray(e)?[].concat(R(e),[r]):[e,r]}function QE(e){return e._rawValidators}function YE(e){return e._rawAsyncValidators}function Pv(e){return e?Array.isArray(e)?e:[e]:[]}function _c(e,r){return Array.isArray(e)?e.includes(r):e===r}function $E(e,r){var t=Pv(r);return Pv(e).forEach(function(i){_c(t,i)||t.push(i)}),t}function XE(e,r){return Pv(r).filter(function(t){return!_c(e,t)})}var ZE=function(){function e(){d(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return f(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Iv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fv(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,n){return!!this.control&&this.control.hasError(t,n)}},{key:"getError",value:function(t,n){return this.control?this.control.getError(t,n):null}}]),e}(),Ii=function(e){p(t,e);var r=g(t);function t(){var n;return d(this,t),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return f(t)}(ZE),tr=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(ZE),JE=function(){function e(r){d(this,e),this._cd=r}return f(e,[{key:"is",value:function(t){var n,i,a;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[t])}}]),e}(),du=function(){var e=function(r){p(n,r);var t=g(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(JE);return e.\u0275fac=function(t){return new(t||e)(U(Ii,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&Rt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Me]}),e}(),fu=function(){var e=function(r){p(n,r);var t=g(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(JE);return e.\u0275fac=function(t){return new(t||e)(U(tr,10))},e.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&Rt("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Me]}),e}();function hu(e,r){Vv(e,r),r.valueAccessor.writeValue(e.value),function FV(e,r){r.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tk(e,r)})}(e,r),function LV(e,r){var t=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};e.registerOnChange(t),r._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,r),function PV(e,r){r.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tk(e,r),"submit"!==e.updateOn&&e.markAsTouched()})}(e,r),function IV(e,r){if(r.valueAccessor.setDisabledState){var t=function(i){r.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),r._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,r)}function wc(e,r){var n=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(n),r.valueAccessor.registerOnTouched(n)),kc(e,r),e&&(r._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Ec(e,r){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function Vv(e,r){var t=QE(e);null!==r.validator?e.setValidators(KE(t,r.validator)):"function"==typeof t&&e.setValidators([t]);var n=YE(e);null!==r.asyncValidator?e.setAsyncValidators(KE(n,r.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var i=function(){return e.updateValueAndValidity()};Ec(r._rawValidators,i),Ec(r._rawAsyncValidators,i)}function kc(e,r){var t=!1;if(null!==e){if(null!==r.validator){var n=QE(e);if(Array.isArray(n)&&n.length>0){var i=n.filter(function(u){return u!==r.validator});i.length!==n.length&&(t=!0,e.setValidators(i))}}if(null!==r.asyncValidator){var a=YE(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(u){return u!==r.asyncValidator});o.length!==a.length&&(t=!0,e.setAsyncValidators(o))}}}var s=function(){};return Ec(r._rawValidators,s),Ec(r._rawAsyncValidators,s),t}function tk(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nk(e,r){Vv(e,r)}function rk(e,r){e._syncPendingControls(),r.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function jv(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var vu="VALID",Sc="INVALID",Go="PENDING",pu="DISABLED";function Gv(e){return(Dc(e)?e.validators:e)||null}function ik(e){return Array.isArray(e)?Iv(e):e||null}function zv(e,r){return(Dc(r)?r.asyncValidators:e)||null}function ak(e){return Array.isArray(e)?Fv(e):e||null}function Dc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ok=function(r){return r instanceof ck},Wv=function(r){return r instanceof Kv};function sk(e){return ok(e)?e.value:e.getRawValue()}function uk(e,r){var t=Wv(e),n=e.controls;if(!(t?Object.keys(n):n).length)throw new Ve(1e3,"");if(!n[r])throw new Ve(1001,"")}function lk(e,r){Wv(e),e._forEachChild(function(n,i){if(void 0===r[i])throw new Ve(1002,"")})}var qv=function(){function e(r,t){d(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=ik(this._rawValidators),this._composedAsyncValidatorFn=ak(this._rawAsyncValidators)}return f(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===vu}},{key:"invalid",get:function(){return this.status===Sc}},{key:"pending",get:function(){return this.status==Go}},{key:"disabled",get:function(){return this.status===pu}},{key:"enabled",get:function(){return this.status!==pu}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=ik(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ak(t)}},{key:"addValidators",value:function(t){this.setValidators($E(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($E(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(XE(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(XE(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return _c(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return _c(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Go,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=pu,this.errors=null,this._forEachChild(function(i){i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=vu,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vu||this.status===Go)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?pu:vu}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=Go,this._hasOwnPendingAsyncValidator=!0;var i=jE(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function HV(e,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var n=e;return r.forEach(function(i){n=Wv(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof UV}(n)&&n.at(i)||null}),n}(this,t,".")}},{key:"getError",value:function(t,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new kt,this.statusChanges=new kt}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pu:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Go)?Go:this._anyControlsHaveStatus(Sc)?Sc:vu}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Dc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),ck=function(e){p(t,e);var r=g(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return d(this,t),(n=r.call(this,Gv(a),zv(o,a))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),Dc(a)&&a.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(i)?i.value:i),n}return f(t,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){jv(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){jv(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(qv),Kv=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lk(this,i),Object.keys(i).forEach(function(s){uk(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=sk(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(qv),UV=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lk(this,i),i.forEach(function(s,u){uk(a,u),a.at(u).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,u){a.at(u)&&a.at(u).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return sk(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=z(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(qv),GV={provide:tr,useExisting:xt(function(){return ra})},gu=function(){return Promise.resolve(null)}(),ra=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new kt,o.form=new Kv({},Iv(i),Fv(a)),o}return f(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),hu(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path),u=new Kv({});nk(u,a),s.registerControl(a.name,u),u.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;gu.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rk(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(U(Vn,10),U(na,10))},e.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&Be("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[St([GV]),Me]}),e}(),WV={provide:Ii,useExisting:xt(function(){return zo})},hk=function(){return Promise.resolve(null)}(),zo=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._changeDetectorRef=u,l.control=new ck,l._registered=!1,l.update=new kt,l._parent=i,l._setValidators(a),l._setAsyncValidators(o),l.valueAccessor=function Hv(e,r){if(!r)return null;Array.isArray(r);var t=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===Uo?t=a:function BV(e){return Object.getPrototypeOf(e.constructor)===Ma}(a)?n=a:i=a}),i||n||t||null}(Q(l),s),l}return f(n,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),function Bv(e,r){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{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(){hu(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(a){var o=this;hk.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,u=""===s||s&&"false"!==s;hk.then(function(){var l;u&&!o.control.disabled?o.control.disable():!u&&o.control.disabled&&o.control.enable(),null===(l=o._changeDetectorRef)||void 0===l||l.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function Cc(e,r){return[].concat(R(r.path),[e])}(a,this._parent):[a]}}]),n}(Ii);return e.\u0275fac=function(t){return new(t||e)(U(tr,9),U(Vn,10),U(na,10),U(Ir,10),U(gr,8))},e.\u0275dir=Ce({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:[St([WV]),Me,Wn]}),e}(),mu=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),pk=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}(),XV={provide:tr,useExisting:xt(function(){return Ac})},Ac=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).validators=i,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new kt,o._setValidators(i),o._setAsyncValidators(a),o}return f(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(kc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(a){var o=this.form.get(a.path);return hu(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){wc(a.control||null,a),jv(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rk(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,u=a.form.get(o.path);s!==u&&(wc(s||null,o),ok(u)&&(hu(u,o),o.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);nk(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function NV(e,r){return kc(e,r)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Vv(this.form,this),this._oldForm&&kc(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(U(Vn,10),U(na,10))},e.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&Be("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[St([XV]),Me,Wn]}),e}();function u2(e){return null!=e&&!1!==e&&"false"!=="".concat(e)}var Ta=function(){var e=function(){function r(){d(this,r),this._validator=yc}return f(r,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):yc,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,features:[Wn]}),e}(),d2={provide:Vn,useExisting:xt(function(){return Wo}),multi:!0},Wo=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputName="required",i.normalizeInput=function(a){return u2(a)},i.createValidator=function(a){return FE},i}return f(n,[{key:"enabled",value:function(a){return a}}]),n}(Ta);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&qt("required",n._enabled?"":null)},inputs:{required:"required"},features:[St([d2]),Me]}),e}(),m2=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[pk]]}),e}(),y2=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[m2]}),e}();function Xe(){for(var e=arguments.length,r=new Array(e),t=0;t0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(a,i),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return f(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{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(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){n.headers.set(i,t.headers.get(i)),n.normalizedNames.set(i,t.normalizedNames.get(i))})}},{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(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,R(i)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(u){return-1===o.indexOf(u)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(n.normalizedNames.get(i),n.headers.get(i))})}}]),e}(),_2=function(){function e(){d(this,e)}return f(e,[{key:"encodeKey",value:function(t){return Fk(t)}},{key:"encodeValue",value:function(t){return Fk(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function b2(e,r){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=T(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),u=s[0],l=s[1],c=t.get(u)||[];c.push(l),t.set(u,c)}),t}var C2=/%(\d[a-f0-9])/gi,w2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fk(e){return encodeURIComponent(e).replace(C2,function(r,t){var n;return null!==(n=w2[t])&&void 0!==n?n:r})}function Pk(e){return"".concat(e)}var Ko=function(){function e(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(d(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=b2(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var i=t.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return f(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(i){var a=t[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var i=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return i+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).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 t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?t.map.get(n.param):void 0)||[];i.push(Pk(n.value)),t.map.set(n.param,i);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(Pk(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),E2=function(){function e(){d(this,e),this.map=new Map}return f(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Lk(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Nk(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Vk(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Jv=function(){function e(r,t,n,i){var a;if(d(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function k2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new yu),this.context||(this.context=new E2),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,u=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,h=t.params||this.params,v=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(y,I){return y.set(I,t.setHeaders[I])},c)),t.setParams&&(h=Object.keys(t.setParams).reduce(function(y,I){return y.set(I,t.setParams[I])},h)),new e(i,a,s,{params:h,headers:c,context:v,reportProgress:l,responseType:o,withCredentials:u})}}]),e}(),En=function(){return(En=En||{})[En.Sent=0]="Sent",En[En.UploadProgress=1]="UploadProgress",En[En.ResponseHeader=2]="ResponseHeader",En[En.DownloadProgress=3]="DownloadProgress",En[En.Response=4]="Response",En[En.User=5]="User",En}(),ep=f(function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";d(this,e),this.headers=r.headers||new yu,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),D2=function(e){p(t,e);var r=g(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=En.ResponseHeader,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Bk=function(e){p(t,e);var r=g(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=En.Response,n.body=void 0!==i.body?i.body:null,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Hk=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),i.error=n.error||null,i}return f(t)}(ep);function tp(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Ra=function(){var e=function(){function r(t){d(this,r),this.handler=t}return f(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Jv)s=n;else{var u=void 0;u=o.headers instanceof yu?o.headers:new yu(o.headers);var l=void 0;o.params&&(l=o.params instanceof Ko?o.params:new Ko({fromObject:o.params})),s=new Jv(n,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=Xe(s).pipe(qo(function(v){return a.handler.handle(v)}));if(n instanceof Jv||"events"===o.observe)return c;var h=c.pipe(fn(function(v){return v instanceof Bk}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return h.pipe(Ye(function(v){if(null!==v.body&&!(v.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return v.body}));case"blob":return h.pipe(Ye(function(v){if(null!==v.body&&!(v.body instanceof Blob))throw new Error("Response is not a Blob.");return v.body}));case"text":return h.pipe(Ye(function(v){if(null!==v.body&&"string"!=typeof v.body)throw new Error("Response is not a string.");return v.body}));default:return h.pipe(Ye(function(v){return v.body}))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new Ko).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,tp(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,tp(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,tp(a,i))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ok))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),jk=function(){function e(r,t){d(this,e),this.next=r,this.interceptor=t}return f(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),Uk=new Fe("HTTP_INTERCEPTORS"),A2=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"intercept",value:function(n,i){return i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),x2=/^\)\]\}',?\n/,Gk=function(){var e=function(){function r(t){d(this,r),this.xhrFactory=t}return f(r,[{key:"handle",value:function(n){var i=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new lt(function(a){var o=i.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach(function(se,te){return o.setRequestHeader(se,te.join(","))}),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var s=n.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(n.responseType){var u=n.responseType.toLowerCase();o.responseType="json"!==u?u:"text"}var l=n.serializeBody(),c=null,h=function(){if(null!==c)return c;var te=o.statusText||"OK",me=new yu(o.getAllResponseHeaders()),ye=function M2(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return c=new D2({headers:me,status:o.status,statusText:te,url:ye})},v=function(){var te=h(),me=te.headers,ye=te.status,xe=te.statusText,Re=te.url,Ge=null;204!==ye&&(Ge=void 0===o.response?o.responseText:o.response),0===ye&&(ye=Ge?200:0);var yt=ye>=200&&ye<300;if("json"===n.responseType&&"string"==typeof Ge){var on=Ge;Ge=Ge.replace(x2,"");try{Ge=""!==Ge?JSON.parse(Ge):null}catch(Jt){Ge=on,yt&&(yt=!1,Ge={error:Jt,text:Ge})}}yt?(a.next(new Bk({body:Ge,headers:me,status:ye,statusText:xe,url:Re||void 0})),a.complete()):a.error(new Hk({error:Ge,headers:me,status:ye,statusText:xe,url:Re||void 0}))},y=function(te){var me=h(),xe=new Hk({error:te,status:o.status||0,statusText:o.statusText||"Unknown Error",url:me.url||void 0});a.error(xe)},I=!1,J=function(te){I||(a.next(h()),I=!0);var me={type:En.DownloadProgress,loaded:te.loaded};te.lengthComputable&&(me.total=te.total),"text"===n.responseType&&!!o.responseText&&(me.partialText=o.responseText),a.next(me)},re=function(te){var me={type:En.UploadProgress,loaded:te.loaded};te.lengthComputable&&(me.total=te.total),a.next(me)};return o.addEventListener("load",v),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",J),null!==l&&o.upload&&o.upload.addEventListener("progress",re)),o.send(l),a.next({type:En.Sent}),function(){o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",v),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",J),null!==l&&o.upload&&o.upload.removeEventListener("progress",re)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Av))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),np=new Fe("XSRF_COOKIE_NAME"),rp=new Fe("XSRF_HEADER_NAME"),zk=f(function e(){d(this,e)}),T2=function(){var e=function(){function r(t,n,i){d(this,r),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return f(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=iE(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(at),ue(pr),ue(np))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),ip=function(){var e=function(){function r(t,n){d(this,r),this.tokenService=t,this.headerName=n}return f(r,[{key:"intercept",value:function(n,i){var a=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||a.startsWith("http://")||a.startsWith("https://"))return i.handle(n);var o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(zk),ue(rp))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),R2=function(){var e=function(){function r(t,n){d(this,r),this.backend=t,this.injector=n,this.chain=null}return f(r,[{key:"handle",value:function(n){if(null===this.chain){var i=this.injector.get(Uk,[]);this.chain=i.reduceRight(function(a,o){return new jk(a,o)},this.backend)}return this.chain.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ik),ue(Wt))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),O2=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:ip,useClass:A2}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[n.cookieName?{provide:np,useValue:n.cookieName}:[],n.headerName?{provide:rp,useValue:n.headerName}:[]]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:[ip,{provide:Uk,useExisting:ip,multi:!0},{provide:zk,useClass:T2},{provide:np,useValue:"XSRF-TOKEN"},{provide:rp,useValue:"X-XSRF-TOKEN"}]}),e}(),I2=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:[Ra,{provide:Ok,useClass:R2},Gk,{provide:Ik,useExisting:Gk}],imports:[[O2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Wk=f(function e(){d(this,e)}),F2=f(function e(){d(this,e)}),Fi="*";function _u(e,r){return{type:7,name:e,definitions:r,options:{}}}function Pi(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:e}}function qk(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:r}}function Ln(e){return{type:6,styles:e,offset:null}}function Oa(e,r,t){return{type:0,name:e,styles:r,options:t}}function ia(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:r,options:t}}function ap(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:r,options:t}}function Kk(e){Promise.resolve(null).then(e)}var bu=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return f(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Kk(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Qk=function(){function e(r){var t=this;d(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=r;var n=0,i=0,a=0,o=this.players.length;0==o?Kk(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++i==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,u){return Math.max(s,u.totalTime)},0)}return f(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),bt=!1;function Yk(e){return new Ve(3e3,bt)}function nB(e){return new Ve(3502,bt)}function iB(){return new Ve(3300,bt)}function aB(e){return new Ve(3504,bt)}function hB(){return"undefined"!=typeof window&&void 0!==window.document}function sp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function aa(e){switch(e.length){case 0:return new bu;case 1:return e[0];default:return new Qk(e)}}function $k(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,l=null;if(n.forEach(function(c){var h=c.offset,v=h==u,y=v&&l||{};Object.keys(c).forEach(function(I){var J=I,re=c[I];if("offset"!==I)switch(J=r.normalizePropertyName(J,o),re){case"!":re=i[I];break;case Fi:re=a[I];break;default:re=r.normalizeStyleValue(I,J,re,o)}y[J]=re}),v||s.push(y),l=y,u=h}),o.length)throw nB();return s}function up(e,r,t,n){switch(r){case"start":e.onStart(function(){return n(t&&lp(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&lp(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&lp(t,"destroy",e))})}}function lp(e,r,t){var n=t.totalTime,a=cp(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function cp(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:r,fromState:t,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function mr(e,r,t){var n;return e instanceof Map?(n=e.get(r))||e.set(r,n=t):(n=e[r])||(n=e[r]=t),n}function Xk(e){var r=e.indexOf(":");return[e.substring(1,r),e.substr(r+1)]}var dp=function(r,t){return!1},Zk=function(r,t,n){return[]},Jk=null;function fp(e){var r=e.parentNode||e.host;return r===Jk?null:r}(sp()||"undefined"!=typeof Element)&&(hB()?(Jk=function(){return document.documentElement}(),dp=function(r,t){for(;t;){if(t===r)return!0;t=fp(t)}return!1}):dp=function(r,t){return r.contains(t)},Zk=function(r,t,n){if(n)return Array.from(r.querySelectorAll(t));var i=r.querySelector(t);return i?[i]:[]});var Ia=null,eS=!1;function tS(e){Ia||(Ia=function gB(){return"undefined"!=typeof document?document.body:null}()||{},eS=!!Ia.style&&"WebkitAppearance"in Ia.style);var r=!0;return Ia.style&&!function pB(e){return"ebkit"==e.substring(1,6)}(e)&&!(r=e in Ia.style)&&eS&&(r="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ia.style),r}var nS=dp,rS=Zk,iS=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"validateStyleProperty",value:function(n){return tS(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return nS(n,i)}},{key:"getParentElement",value:function(n){return fp(n)}},{key:"query",value:function(n,i,a){return rS(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new bu(a,o)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),hp=function(){var e=f(function r(){d(this,r)});return e.NOOP=new iS,e}(),oS="ng-enter",vp="ng-leave",Mc="ng-trigger",Tc=".ng-trigger",sS="ng-animating",pp=".ng-animating";function Fa(e){if("number"==typeof e)return e;var r=e.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:gp(parseFloat(r[1]),r[2])}function gp(e,r){return"s"===r?1e3*e:e}function Rc(e,r,t){return e.hasOwnProperty("duration")?e:function _B(e,r,t){var i,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(Yk()),{duration:0,delay:0,easing:""};i=gp(parseFloat(s[1]),s[2]);var u=s[3];null!=u&&(a=gp(parseFloat(u),s[4]));var l=s[5];l&&(o=l)}else i=e;if(!t){var c=!1,h=r.length;i<0&&(r.push(function L2(){return new Ve(3100,bt)}()),c=!0),a<0&&(r.push(function N2(){return new Ve(3101,bt)}()),c=!0),c&&r.splice(h,0,Yk())}return{duration:i,delay:a,easing:o}}(e,r,t)}function Qo(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function oa(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in e)t[n]=e[n];else Qo(e,t);return t}function uS(e,r,t){return t?r+":"+t+";":""}function lS(e){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void r.push(n);e=n}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function J2(e){return new Ve(3015,bt)}()),r;var a=i[1],o=i[2],s=i[3];r.push(fS(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(fS(s,a))}(n,t,r)}):t.push(e),t}var Nc=new Set(["true","1"]),Vc=new Set(["false","0"]);function fS(e,r){var t=Nc.has(e)||Vc.has(e),n=Nc.has(r)||Vc.has(r);return function(i,a){var o="*"==e||e==i,s="*"==r||r==a;return!o&&t&&"boolean"==typeof i&&(o=i?Nc.has(e):Vc.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?Nc.has(r):Vc.has(r)),o&&s}}var TB=new RegExp("s*".concat(":self","s*,?"),"g");function vS(e,r,t,n){return new RB(e).build(r,t,n)}var RB=function(){function e(r){d(this,e),this._driver=r}return f(e,[{key:"build",value:function(t,n,i){var a=new FB(n);this._resetContextStyleTimingState(a);var o=yr(this,Cu(t),a);return a.unsupportedCSSPropertiesFound.size&&R(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],u=[];return"@"==t.name.charAt(0)&&n.errors.push(function U2(){return new Ve(3006,bt)}()),t.definitions.forEach(function(l){if(i._resetContextStyleTimingState(n),0==l.type){var c=l,h=c.name;h.toString().split(/\s*,\s*/).forEach(function(y){c.name=y,s.push(i.visitState(c,n))}),c.name=h}else if(1==l.type){var v=i.visitTransition(l,n);a+=v.queryCount,o+=v.depCount,u.push(v)}else n.errors.push(function G2(){return new Ve(3007,bt)}())}),{type:7,name:t.name,states:s,transitions:u,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var i=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};i.styles.forEach(function(l){if(Bc(l)){var c=l;Object.keys(c).forEach(function(h){cS(c[h]).forEach(function(v){s.hasOwnProperty(v)||o.add(v)})})}}),o.size&&(Ic(o.values()),n.errors.push(function z2(e,r){return new Ve(3008,bt)}()))}return{type:0,name:t.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var i=yr(this,Cu(t.animation),n);return{type:1,matchers:AB(t.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:La(t.options)}}},{key:"visitSequence",value:function(t,n){var i=this;return{type:2,steps:t.steps.map(function(a){return yr(i,a,n)}),options:La(t.options)}}},{key:"visitGroup",value:function(t,n){var i=this,a=n.currentTime,o=0,s=t.steps.map(function(u){n.currentTime=a;var l=yr(i,u,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:s,options:La(t.options)}}},{key:"visitAnimate",value:function(t,n){var i=function LB(e,r){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return _p(Rc(e,r).duration,0,"");var i=e,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=_p(0,0,"");return o.dynamic=!0,o.strValue=i,o}return _p((t=t||Rc(i,r)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var a,o=t.styles?t.styles:Ln({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,u=!1;if(!s){u=!0;var l={};i.easing&&(l.easing=i.easing),s=Ln(l)}n.currentTime+=i.duration+i.delay;var c=this.visitStyle(s,n);c.isEmptyStep=u,a=c}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var i=this._makeStyleAst(t,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(t,n){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Fi?i.push(s):n.errors.push(function W2(e){return new Ve(3002,bt)}()):i.push(s)}):i.push(t.styles);var a=!1,o=null;return i.forEach(function(s){if(Bc(s)){var u=s,l=u.easing;if(l&&(o=l,delete u.easing),!a)for(var c in u)if(u[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(u){"string"!=typeof u&&Object.keys(u).forEach(function(l){if(!i._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);var c=n.collectedStyles[n.currentQuerySelector],h=c[l],v=!0;h&&(s!=o&&s>=h.startTime&&o<=h.endTime&&(n.errors.push(function q2(e,r,t,n,i){return new Ve(3010,bt)}()),v=!1),s=h.startTime),v&&(c[l]={startTime:s,endTime:o}),n.options&&function bB(e,r,t){var n=r.params||{},i=cS(e);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||t.push(function V2(e){return new Ve(3001,bt)}())})}(u[l],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(t,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function K2(){return new Ve(3011,bt)}()),a;var s=0,u=[],l=!1,c=!1,h=0,v=t.steps.map(function(me){var ye=i._makeStyleAst(me,n),xe=null!=ye.offset?ye.offset:function PB(e){if("string"==typeof e)return null;var r=null;if(Array.isArray(e))e.forEach(function(n){if(Bc(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(Bc(e)&&e.hasOwnProperty("offset")){var t=e;r=parseFloat(t.offset),delete t.offset}return r}(ye.styles),Re=0;return null!=xe&&(s++,Re=ye.offset=xe),c=c||Re<0||Re>1,l=l||Re0&&s0?ye==J?1:I*ye:u[ye],Re=xe*te;n.currentTime=re+se.delay+Re,se.duration=Re,i._validateStyleAst(me,n),me.offset=xe,a.styles.push(me)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:yr(this,Cu(t.animation),n),options:La(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:La(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:La(t.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function OB(e){var r=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(e=e.replace(TB,"")),e=e.replace(/@\*/g,Tc).replace(/@\w+/g,function(t){return Tc+"-"+t.substr(1)}).replace(/:animating/g,pp),[e,r]}(t.selector),s=T(o,2),u=s[0],l=s[1];n.currentQuerySelector=i.length?i+" "+u:u,mr(n.collectedStyles,n.currentQuerySelector,{});var c=yr(this,Cu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:c,originalSelector:t.selector,options:La(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push(function X2(){return new Ve(3013,bt)}());var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Rc(t.timings,n.errors,!0);return{type:12,animation:yr(this,Cu(t.animation),n),timings:i,options:null}}}]),e}(),FB=f(function e(r){d(this,e),this.errors=r,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,this.unsupportedCSSPropertiesFound=new Set});function Bc(e){return!Array.isArray(e)&&"object"==typeof e}function La(e){return e?(e=Qo(e)).params&&(e.params=function IB(e){return e?Qo(e):null}(e.params)):e={},e}function _p(e,r,t){return{duration:e,delay:r,easing:t}}function bp(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Cp=function(){function e(){d(this,e),this._map=new Map}return f(e,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,n){var i,a=this._map.get(t);a||this._map.set(t,a=[]),(i=a).push.apply(i,R(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),BB=new RegExp(":enter","g"),jB=new RegExp(":leave","g");function gS(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new UB).buildKeyframes(e,r,t,n,i,a,o,s,u,l)}var UB=function(){function e(){d(this,e)}return f(e,[{key:"buildKeyframes",value:function(t,n,i,a,o,s,u,l,c){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Cp;var v=new GB(t,n,c,a,o,h,[]);v.options=l,v.currentTimeline.setStyles([s],null,v.errors,l),yr(this,i,v);var y=v.timelines.filter(function(se){return se.containsAnimation()});if(Object.keys(u).length){for(var I,J=y.length-1;J>=0;J--){var re=y[J];if(re.element===n){I=re;break}}I&&!I.allowOnlyTimelineStyles()&&I.setStyles([u],null,v.errors,l)}return y.length?y.map(function(se){return se.buildKeyframes()}):[bp(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var i=n.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?Fa(i.duration):null,u=null!=i.delay?Fa(i.delay):null;return 0!==s&&t.forEach(function(l){var c=n.appendInstructionToTimeline(l,s,u);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),yr(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var i=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hc);var u=Fa(s.delay);o.delayNextStep(u)}t.steps.length&&(t.steps.forEach(function(l){return yr(i,l,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?Fa(t.options.delay):0;t.steps.forEach(function(u){var l=n.createSubContext(t.options);s&&l.delayNextStep(s),yr(i,u,l),o=Math.max(o,l.currentTimeline.currentTime),a.push(l.currentTimeline)}),a.forEach(function(u){return n.currentTimeline.mergeTimelineCollectedStyles(u)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var i=t.strValue;return Rc(n.params?Oc(i,n.params,n.errors):i,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var i=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,u=n.createSubContext().currentTimeline;u.easing=i.easing,t.styles.forEach(function(l){u.forwardTime((l.offset||0)*o),u.setStyles(l.styles,l.easing,n.errors,n.options),u.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(u),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var i=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?Fa(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hc);var u=a,l=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=l.length;var c=null;l.forEach(function(h,v){n.currentQueryIndex=v;var y=n.createSubContext(t.options,h);s&&y.delayNextStep(s),h===n.element&&(c=y.currentTimeline),yr(i,t.animation,y),y.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,y.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var i=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),u=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=u-l;break;case"full":l=i.currentStaggerTime}var h=n.currentTimeline;l&&h.delayNextStep(l);var v=h.currentTime;yr(this,t.animation,n),n.previousNode=t,i.currentStaggerTime=a.currentTime-v+(a.startTime-i.currentTimeline.startTime)}}]),e}(),Hc={},GB=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new mS(this._driver,t,0),s.push(this.currentTimeline)}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var i=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=Fa(a.duration)),null!=a.delay&&(o.delay=Fa(a.delay));var s=a.params;if(s){var u=o.params;u||(u=this.options.params={}),Object.keys(s).forEach(function(l){(!n||!u.hasOwnProperty(l))&&(u[l]=Oc(s[l],u,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var i=t.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return t}},{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,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,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(t){return this.previousNode=Hc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,i){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new zB(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,i,a,o,s){var u=[];if(a&&u.push(this.element),t.length>0){t=(t=t.replace(BB,"."+this._enterClassName)).replace(jB,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),u.push.apply(u,R(c))}return!o&&0==u.length&&s.push(function Z2(e){return new Ve(3014,bt)}()),u}}]),e}(),mS=function(){function e(r,t,n,i){d(this,e),this._driver=r,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return f(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Fi,n._currentKeyframe[i]=Fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},u=function WB(e,r){var n,t={};return e.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){t[a]=Fi}):oa(i,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(u).forEach(function(l){var c=Oc(u[l],s,i);o._pendingStyles[l]=c,o._localTimelineStyles.hasOwnProperty(l)||(o._backFill[l]=o._globalTimelineStyles.hasOwnProperty(l)?o._globalTimelineStyles[l]:Fi),o._updateStyle(l,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=t._localTimelineStyles[n];t._pendingStyles[n]=i,t._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=t._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(h,v){var y=oa(h,!0);Object.keys(y).forEach(function(I){var J=y[I];"!"==J?n.add(I):J==Fi&&i.add(I)}),a||(y.offset=v/t.duration),o.push(y)});var s=n.size?Ic(n.values()):[],u=i.size?Ic(i.values()):[];if(a){var l=o[0],c=Qo(l);l.offset=0,c.offset=1,o=[l,c]}return bp(this.element,o,s,u,this.duration,this.startTime,this.easing,!1)}}]),e}(),zB=function(e){p(t,e);var r=g(t);function t(n,i,a,o,s,u){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,t),(l=r.call(this,n,i,u.delay)).keyframes=a,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=c,l.timings={duration:u.duration,delay:u.delay,easing:u.easing},l}return f(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&o){var l=[],c=s+o,h=o/c,v=oa(i[0],!1);v.offset=0,l.push(v);var y=oa(i[0],!1);y.offset=yS(h),l.push(y);for(var I=i.length-1,J=1;J<=I;J++){var re=oa(i[J],!1);re.offset=yS((o+re.offset*s)/c),l.push(re)}s=c,o=0,u="",i=l}return bp(this.element,i,this.preStyleProps,this.postStyleProps,s,o,u,!0)}}]),t}(mS);function yS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(e*t)/t}var wp=f(function e(){d(this,e)}),qB=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"normalizePropertyName",value:function(i,a){return yp(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var u="",l=o.toString().trim();if(KB[a]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function j2(e,r){return new Ve(3005,bt)}())}return l+u}}]),t}(wp),KB=function(){return function QB(e){var r={};return e.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function _S(e,r,t,n,i,a,o,s,u,l,c,h,v){return{type:0,element:e,triggerName:r,isRemovalTransition:i,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:v}}var Ep={},bS=function(){function e(r,t,n){d(this,e),this._triggerName=r,this.ast=t,this._stateStyles=n}return f(e,[{key:"match",value:function(t,n,i,a){return function YB(e,r,t,n,i){return e.some(function(a){return a(r,t,n,i)})}(this.ast.matchers,t,n,i,a)}},{key:"buildStyles",value:function(t,n,i){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(t,n,i,a,o,s,u,l,c,h){var v=[],y=this.ast.options&&this.ast.options.params||Ep,J=this.buildStyles(i,u&&u.params||Ep,v),re=l&&l.params||Ep,se=this.buildStyles(a,re,v),te=new Set,me=new Map,ye=new Map,xe="void"===a,Re={params:Object.assign(Object.assign({},y),re)},Ge=h?[]:gS(t,n,this.ast.animation,o,s,J,se,Re,c,v),yt=0;if(Ge.forEach(function(Jt){yt=Math.max(Jt.duration+Jt.delay,yt)}),v.length)return _S(n,this._triggerName,i,a,xe,J,se,[],[],me,ye,yt,v);Ge.forEach(function(Jt){var Un=Jt.element,ni=mr(me,Un,{});Jt.preStyleProps.forEach(function(br){return ni[br]=!0});var ji=mr(ye,Un,{});Jt.postStyleProps.forEach(function(br){return ji[br]=!0}),Un!==n&&te.add(Un)});var on=Ic(te.values());return _S(n,this._triggerName,i,a,xe,J,se,Ge,on,me,ye,yt)}}]),e}(),$B=function(){function e(r,t,n){d(this,e),this.styles=r,this.defaultParams=t,this.normalizer=n}return f(e,[{key:"buildStyles",value:function(t,n){var i=this,a={},o=Qo(this.defaultParams);return Object.keys(t).forEach(function(s){var u=t[s];null!=u&&(o[s]=u)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var u=s;Object.keys(u).forEach(function(l){var c=u[l];c.length>1&&(c=Oc(c,o,n));var h=i.normalizer.normalizePropertyName(l,n);c=i.normalizer.normalizeStyleValue(l,h,c,n),a[h]=c})}}),a}}]),e}(),ZB=function(){function e(r,t,n){var i=this;d(this,e),this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){i.states[a.name]=new $B(a.style,a.options&&a.options.params||{},n)}),CS(this.states,"true","1"),CS(this.states,"false","0"),t.transitions.forEach(function(a){i.transitionFactories.push(new bS(r,a,i.states))}),this.fallbackTransition=function JB(e,r,t){return new bS(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return f(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,i,a){return this.transitionFactories.find(function(s){return s.match(t,n,i,a)})||null}},{key:"matchStyles",value:function(t,n,i){return this.fallbackTransition.buildStyles(t,n,i)}}]),e}();function CS(e,r,t){e.hasOwnProperty(r)?e.hasOwnProperty(t)||(e[t]=e[r]):e.hasOwnProperty(t)&&(e[r]=e[t])}var eH=new Cp,tH=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return f(e,[{key:"register",value:function(t,n){var i=[],o=vS(this._driver,n,i,[]);if(i.length)throw function rB(e){return new Ve(3503,bt)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,n,i){var a=t.element,o=$k(this._driver,this._normalizer,a,t.keyframes,n,i);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var u,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],l=new Map;if(s?(u=gS(this._driver,n,s,oS,vp,{},{},a,eH,o)).forEach(function(v){var y=mr(l,v.element,{});v.postStyleProps.forEach(function(I){return y[I]=null})}):(o.push(iB()),u=[]),o.length)throw aB();l.forEach(function(v,y){Object.keys(v).forEach(function(I){v[I]=i._driver.computeStyle(y,I,Fi)})});var c=u.map(function(v){var y=l.get(v.element);return i._buildPlayer(v,{},y)}),h=aa(c);return this._playersById[t]=h,h.onDestroy(function(){return i.destroy(t)}),this.players.push(h),h}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw function oB(e){return new Ve(3301,bt)}();return n}},{key:"listen",value:function(t,n,i,a){var o=cp(n,"","","");return up(this._getPlayer(t),i,o,a),function(){}}},{key:"command",value:function(t,n,i,a){if("register"!=i)if("create"!=i){var s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),wS="ng-animate-queued",kp="ng-animate-disabled",iH="ng-star-inserted",oH=[],ES={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},sH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fr="__ng_removed",Sp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";d(this,e),this.namespaceId=t;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=dH(i),n){var a=Qo(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),e}(),wu="void",Dp=new Sp(wu),uH=function(){function e(r,t,n){d(this,e),this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Pr(t,this._hostClassName)}return f(e,[{key:"listen",value:function(t,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw function sB(e,r){return new Ve(3302,bt)}();if(null==i||0==i.length)throw function uB(e){return new Ve(3303,bt)}();if(!function fH(e){return"start"==e||"done"==e}(i))throw function lB(e,r){return new Ve(3400,bt)}();var s=mr(this._elementListeners,t,[]),u={name:n,phase:i,callback:a};s.push(u);var l=mr(this._engine.statesByElement,t,{});return l.hasOwnProperty(n)||(Pr(t,Mc),Pr(t,Mc+"-"+n),l[n]=Dp),function(){o._engine.afterFlush(function(){var c=s.indexOf(u);c>=0&&s.splice(c,1),o._triggers[n]||delete l[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw function cB(e){return new Ve(3401,bt)}();return n}},{key:"trigger",value:function(t,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),u=new Ap(this.id,n,t),l=this._engine.statesByElement.get(t);l||(Pr(t,Mc),Pr(t,Mc+"-"+n),this._engine.statesByElement.set(t,l={}));var c=l[n],h=new Sp(i,this.id),v=i&&i.hasOwnProperty("value");!v&&c&&h.absorbOptions(c.options),l[n]=h,c||(c=Dp);var y=h.value===wu;if(y||c.value!==h.value){var se=mr(this._engine.playersByElement,t,[]);se.forEach(function(ye){ye.namespaceId==a.id&&ye.triggerName==n&&ye.queued&&ye.destroy()});var te=s.matchTransition(c.value,h.value,t,h.params),me=!1;if(!te){if(!o)return;te=s.fallbackTransition,me=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:te,fromState:c,toState:h,player:u,isFallbackTransition:me}),me||(Pr(t,wS),u.onStart(function(){Yo(t,wS)})),u.onDone(function(){var ye=a.players.indexOf(u);ye>=0&&a.players.splice(ye,1);var xe=a._engine.playersByElement.get(t);if(xe){var Re=xe.indexOf(u);Re>=0&&xe.splice(Re,1)}}),this.players.push(u),se.push(u),u}if(!pH(c.params,h.params)){var I=[],J=s.matchStyles(c.value,c.params,I),re=s.matchStyles(h.value,h.params,I);I.length?this._engine.reportError(I):this._engine.afterFlush(function(){Pa(t,J),pi(t,re)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(i,a){delete i[t]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var i=this,a=this._engine.driver.query(t,Tc,!0);a.forEach(function(o){if(!o[Fr]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(u){return u.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,i,a){var o=this,s=this._engine.statesByElement.get(t),u=new Map;if(s){var l=[];if(Object.keys(s).forEach(function(c){if(u.set(c,s[c].value),o._triggers[c]){var h=o.trigger(t,c,wu,a);h&&l.push(h)}}),l.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,u),i&&aa(l).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,i=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(i&&a){var o=new Set;i.forEach(function(s){var u=s.name;if(!o.has(u)){o.add(u);var c=n._triggers[u].fallbackTransition,h=a[u]||Dp,v=new Sp(wu),y=new Ap(n.id,u,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:u,transition:c,fromState:h,toState:v,player:y,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var i=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var u=t;u=u.parentNode;)if(a.statesByElement.get(u)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var c=t[Fr];(!c||c===ES)&&(a.afterFlush(function(){return i.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Pr(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,u=n._elementListeners.get(s);u&&u.forEach(function(l){if(l.name==a.triggerName){var c=cp(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,up(a.player,l.phase,c,l.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,u=o.transition.ast.depCount;return 0==s||0==u?s-u:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(i){return i.element===t})||n}}]),e}(),lH=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(i,a){}}return f(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&t.push(i)})}),t}},{key:"createNamespace",value:function(t,n){var i=new uH(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,n){var i=this._namespaceList,a=this.namespacesByHostElement,o=i.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var u=this.driver.getParentElement(n);u;){var l=a.get(u);if(l){var c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}u=this.driver.getParentElement(u)}else for(var h=o;h>=0;h--)if(this.driver.containsElement(i[h].hostElement,n)){i.splice(h+1,0,t),s=!0;break}s||i.unshift(t)}else i.push(t);return a.set(n,t),t}},{key:"register",value:function(t,n){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,n)),i}},{key:"registerTrigger",value:function(t,n,i){var a=this._namespaceLookup[t];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var i=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[t];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,i=this.statesByElement.get(t);if(i)for(var a=Object.keys(i),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var u=this._fetchNamespace(t);u&&u.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pr(t,kp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yo(t,kp))}},{key:"removeNode",value:function(t,n,i,a){if(jc(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,i,a,o){this.collectedLeaveElements.push(n),n[Fr]={namespaceId:t,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,n,i,a,o){return jc(n)?this._fetchNamespace(t).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,i,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,i=this.driver.query(t,Tc,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,pp,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return aa(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var i,n=this,a=t[Fr];if(a&&a.setForRemoval){if(t[Fr]=ES,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(i=t.classList)||void 0===i?void 0:i.contains(kp))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(v,y){return t._balanceNamespaceList(v,y)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;ni--)this._namespaceList[ni].drainQueuedTransitions(n).forEach(function(Ne){var nt=Ne.player,st=Ne.element;if(Jt.push(nt),i.collectedEnterElements.length){var pn=st[Fr];if(pn&&pn.setForMove){if(pn.previousTriggersValues&&pn.previousTriggersValues.has(Ne.triggerName)){var fs=pn.previousTriggersValues.get(Ne.triggerName),da=i.statesByElement.get(Ne.element);da&&da[Ne.triggerName]&&(da[Ne.triggerName].value=fs)}return void nt.destroy()}}var Xu=!y||!i.driver.containsElement(y,st),Od=yt.get(st),Xg=re.get(st),Nn=i._buildInstruction(Ne,a,Xg,Od,Xu);if(Nn.errors&&Nn.errors.length)Un.push(Nn);else{if(Xu)return nt.onStart(function(){return Pa(st,Nn.fromStyles)}),nt.onDestroy(function(){return pi(st,Nn.toStyles)}),void o.push(nt);if(Ne.isFallbackTransition)return nt.onStart(function(){return Pa(st,Nn.fromStyles)}),nt.onDestroy(function(){return pi(st,Nn.toStyles)}),void o.push(nt);var Id=[];Nn.timelines.forEach(function(Gi){Gi.stretchStartingKeyframe=!0,i.disabledNodes.has(Gi.element)||Id.push(Gi)}),Nn.timelines=Id,a.append(st,Nn.timelines),u.push({instruction:Nn,player:nt,element:st}),Nn.queriedElements.forEach(function(Gi){return mr(l,Gi,[]).push(nt)}),Nn.preStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi);if(Fd.length){var Ka=c.get(Zu);Ka||c.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})}}),Nn.postStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi),Ka=h.get(Zu);Ka||h.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})})}});if(Un.length){var br=[];Un.forEach(function(Ne){br.push(function fB(e,r){return new Ve(3505,bt)}())}),Jt.forEach(function(Ne){return Ne.destroy()}),this.reportError(br)}var Ui=new Map,ca=new Map;u.forEach(function(Ne){var nt=Ne.element;a.has(nt)&&(ca.set(nt,nt),i._beforeAnimationBuild(Ne.player.namespaceId,Ne.instruction,Ui))}),o.forEach(function(Ne){var nt=Ne.element;i._getPreviousPlayers(nt,!1,Ne.namespaceId,Ne.triggerName,null).forEach(function(pn){mr(Ui,nt,[]).push(pn),pn.destroy()})});var nx=te.filter(function(Ne){return xS(Ne,c,h)}),Rd=new Map;SS(Rd,this.driver,ye,h,Fi).forEach(function(Ne){xS(Ne,c,h)&&nx.push(Ne)});var Wg=new Map;J.forEach(function(Ne,nt){SS(Wg,i.driver,new Set(Ne),c,"!")}),nx.forEach(function(Ne){var nt=Rd.get(Ne),st=Wg.get(Ne);Rd.set(Ne,Object.assign(Object.assign({},nt),st))});var qg=[],rx=[],ix={};u.forEach(function(Ne){var nt=Ne.element,st=Ne.player,pn=Ne.instruction;if(a.has(nt)){if(v.has(nt))return st.onDestroy(function(){return pi(nt,pn.toStyles)}),st.disabled=!0,st.overrideTotalTime(pn.totalTime),void o.push(st);var fs=ix;if(ca.size>1){for(var da=nt,Xu=[];da=da.parentNode;){var Od=ca.get(da);if(Od){fs=Od;break}Xu.push(da)}Xu.forEach(function(Id){return ca.set(Id,fs)})}var Xg=i._buildAnimation(st.namespaceId,pn,Ui,s,Wg,Rd);if(st.setRealPlayer(Xg),fs===ix)qg.push(st);else{var Nn=i.playersByElement.get(fs);Nn&&Nn.length&&(st.parentPlayer=aa(Nn)),o.push(st)}}else Pa(nt,pn.fromStyles),st.onDestroy(function(){return pi(nt,pn.toStyles)}),rx.push(st),v.has(nt)&&o.push(st)}),rx.forEach(function(Ne){var nt=s.get(Ne.element);if(nt&&nt.length){var st=aa(nt);Ne.setRealPlayer(st)}}),o.forEach(function(Ne){Ne.parentPlayer?Ne.syncPlayerEvents(Ne.parentPlayer):Ne.destroy()});for(var Kg=0;Kg0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,i):new bu(t.duration,t.delay)}}]),e}(),Ap=function(){function e(r,t,n){d(this,e),this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new bu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return f(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return up(t,i,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){mr(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function dH(e){return null!=e?e:null}function jc(e){return e&&1===e.nodeType}function kS(e,r){var t=e.style.display;return e.style.display=null!=r?r:"none",t}function SS(e,r,t,n,i){var a=[];t.forEach(function(u){return a.push(kS(u))});var o=[];n.forEach(function(u,l){var c={};u.forEach(function(h){var v=c[h]=r.computeStyle(l,h,i);(!v||0==v.length)&&(l[Fr]=sH,o.push(l))}),e.set(l,c)});var s=0;return t.forEach(function(u){return kS(u,a[s++])}),o}function DS(e,r){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var u=a.get(s);if(u)return u;var l=s.parentNode;return u=t.has(l)?l:i.has(l)?1:o(l),a.set(s,u),u}return r.forEach(function(s){var u=o(s);1!==u&&t.get(u).push(s)}),t}function Pr(e,r){var t;null===(t=e.classList)||void 0===t||t.add(r)}function Yo(e,r){var t;null===(t=e.classList)||void 0===t||t.remove(r)}function hH(e,r,t){aa(t).onDone(function(){return e.processLeaveNode(r)})}function AS(e,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function gH(e,r){var t=null,n=null;return Array.isArray(r)&&r.length?(t=xp(r[0]),r.length>1&&(n=xp(r[r.length-1]))):r&&(t=xp(r)),t||n?new mH(e,t,n):null}var mH=function(){var e=function(){function r(t,n,i){d(this,r),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return f(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pi(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pi(this._element,this._initialStyles),this._endStyles&&(pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Pa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pa(this._element,this._endStyles),this._endStyles=null),pi(this._element,this._initialStyles),this._state=3)}}]),r}();return e.initialStylesByElement=new WeakMap,e}();function xp(e){for(var r=null,t=Object.keys(e),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",l={duration:i,delay:a,fill:u};o&&(l.easing=o);var c={},h=s.filter(function(y){return y instanceof MS});EB(i,a)&&h.forEach(function(y){var I=y.currentSnapshot;Object.keys(I).forEach(function(J){return c[J]=I[J]})});var v=gH(t,n=kB(t,n=n.map(function(y){return oa(y,!1)}),c));return new MS(t,n,l,v)}}]),e}(),bH=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Br.None,styles:[],data:{animation:[]}}),o}return f(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?qk(a):a;return TS(this._renderer,null,o,"register",[s]),new CH(o,this._renderer)}}]),n}(Wk);return e.\u0275fac=function(t){return new(t||e)(ue(Js),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),CH=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this))._id=n,a._renderer=i,a}return f(t,[{key:"create",value:function(i,a){return new wH(this._id,i,a||{},this._renderer)}}]),t}(F2),wH=function(){function e(r,t,n,i){d(this,e),this.id=r,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return f(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,i),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,i,a){this.delegate.setAttribute(t,n,i,a)}},{key:"removeAttribute",value:function(t,n,i){this.delegate.removeAttribute(t,n,i)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,i,a){this.delegate.setStyle(t,n,i,a)}},{key:"removeStyle",value:function(t,n,i){this.delegate.removeStyle(t,n,i)}},{key:"setProperty",value:function(t,n,i){"@"==n.charAt(0)&&n==RS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,n,i)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,i){return this.delegate.listen(t,n,i)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),kH=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return f(t,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==RS?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var u=function SH(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i),l=a.substr(1),c="";if("@"!=l.charAt(0)){var h=function DH(e){var r=e.indexOf(".");return[e.substring(0,r),e.substr(r+1)]}(l),v=T(h,2);l=v[0],c=v[1]}return this.engine.listen(this.namespaceId,u,l,c,function(y){s.factory.scheduleListenerCallback(y._data||-1,o,y)})}return this.delegate.listen(i,a,o)}}]),t}(OS),AH=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o){return d(this,n),t.call(this,i.body,a,o)}return f(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Uc);return e.\u0275fac=function(t){return new(t||e)(ue(at),ue(hp),ue(wp))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),gi=new Fe("AnimationModuleType"),IS=[{provide:Wk,useClass:bH},{provide:wp,useFactory:function xH(){return new qB}},{provide:Uc,useClass:AH},{provide:Js,useFactory:function MH(e,r,t){return new EH(e,r,t)},deps:[gc,Uc,ot]}],FS=[{provide:hp,useFactory:function(){return new _H}},{provide:gi,useValue:"BrowserAnimations"}].concat(IS),TH=[{provide:hp,useClass:iS},{provide:gi,useValue:"NoopAnimations"}].concat(IS),RH=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"withConfig",value:function(n){return{ngModule:r,providers:n.disableAnimations?TH:FS}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:FS,imports:[wE]}),e}(),_r=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this))._value=n,i}return f(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=O(E(t.prototype),"_subscribe",this).call(this,i);return!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(i){O(E(t.prototype),"next",this).call(this,this._value=i)}}]),t}(Oe);function PS(e){for(var r in e){var t=e[r]||"";switch(r){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;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-"+r]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+r]=isNaN(+t)?"0":t}}return e}var Mp="inline",zc=["row","column","row-reverse","column-reverse"];function LS(e){var t=T(NS(e),3);return function IH(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[0],t[1],t[2])}function NS(e){var r,n=T((e=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"").split(" "),3),i=n[0],a=n[1],o=n[2];return zc.find(function(s){return s===i})||(i=zc[0]),a===Mp&&(a=o!==Mp?o:"",o=Mp),[i,OH(a),!!o]}function Eu(e){return T(NS(e),1)[0].indexOf("row")>-1}function OH(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}function Li(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;d(this,e),this.matches=r,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=a,this.property=""}return f(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),LH=function(){var e=function(){function r(){d(this,r),this.stylesheet=new Map}return f(r,[{key:"addStyleToElement",value:function(n,i,a){var o=this.stylesheet.get(n);o?o.set(i,a):this.stylesheet.set(n,new Map([[i,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,i){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ti=new Fe("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Rp}}),$o=new Fe("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Op=new Fe("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function BS(e,r){return e=e?e.clone():new ku,r&&(e.mqAlias=r.alias,e.mediaQuery=r.mediaQuery,e.suffix=r.suffix,e.priority=r.priority),e}var hn=function(){function e(){d(this,e),this.shouldCache=!0}return f(e,[{key:"sideEffect",value:function(t,n,i){}}]),e}(),Kt=function(){var e=function(){function r(t,n,i,a){d(this,r),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=a}return f(r,[{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof i&&(o[i]=a,i=o),o=this.layoutConfig.disableVendorPrefixes?i:PS(i),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:PS(n);a.forEach(function(s){i._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var i="flex-direction",a=this.lookupStyle(n,i);return[a||"row",this.lookupInlineStyle(n,i)||jo(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,i){var a;return null!==(a=n.getAttribute(i))&&void 0!==a?a:""}},{key:"lookupInlineStyle",value:function(n,i){return xa(this._platformId)?n.style.getPropertyValue(i):function NH(e,r){var t;return null!==(t=HS(e)[r])&&void 0!==t?t:""}(n,i)}},{key:"lookupStyle",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,i);s||(xa(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,i)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,i){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],u=Array.isArray(s)?s:[s];u.sort();var c,l=z(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;h=h?h+"":"",xa(a._platformId)||!a._serverModuleLoaded?xa(a._platformId)?i.style.setProperty(o,h):VH(i,o,h):a._serverStylesheet.addStyleToElement(i,o,h)}}catch(v){l.e(v)}finally{l.f()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(LH),ue($o),ue(pr),ue(ti))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function VH(e,r,t){r=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var n=HS(e);n[r]=null!=t?t:"",function BH(e,r){var t="";for(var n in r)r[n]&&(t+="".concat(n,":").concat(r[n],";"));e.setAttribute("style",t)}(e,n)}function HS(e){var r={},t=e.getAttribute("style");if(t)for(var n=t.split(/;+/g),i=0;i0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));r[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return r}function Su(e,r){return(r&&r.priority||0)-(e&&e.priority||0)}function HH(e,r){return(e.priority||0)-(r.priority||0)}var Ip=function(){var e=function(){function r(t,n,i){d(this,r),this._zone=t,this._platformId=n,this._document=i,this.source=new _r(new ku(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return f(r,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(i,a){i.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var i,a=this.registry.get(n);return null!==(i=null==a?void 0:a.matches)&&void 0!==i?i:this.registerQuery(n).some(function(o){return o.matches})}},{key:"observe",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(fn(function(u){return!a||n.indexOf(u.mediaQuery)>-1})),s=new lt(function(u){var l=i.registerQuery(n);if(l.length){var c=l.pop();l.forEach(function(h){u.next(h)}),i.source.next(c)}u.complete()});return Qa(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var i=this,a=Array.isArray(n)?n:[n],o=[];return function jH(e,r){var t=e.filter(function(o){return!jS[o]});if(t.length>0){var n=t.join(", ");try{var i=r.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var a="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");i.appendChild(r.createTextNode(a))}r.head.appendChild(i),t.forEach(function(o){return jS[o]=i})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var u=function(h){i._zone.run(function(){return i.source.next(new ku(h.matches,s))})},l=i.registry.get(s);l||((l=i.buildMQL(s)).addListener(u),i.pendingRemoveListenerFns.push(function(){return l.removeListener(u)}),i.registry.set(s,l)),l.matches&&o.push(new ku(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function UH(e,r){return r&&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}}}(n,xa(this._platformId))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ot),ue(pr),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),jS={},GH=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],US="(orientation: portrait) and (max-width: 599.98px)",GS="(orientation: landscape) and (max-width: 959.98px)",zS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",KS="(orientation: landscape) and (min-width: 1280px)",Ni={HANDSET:"".concat(US,", ").concat(GS),TABLET:"".concat(zS," , ").concat(WS),WEB:"".concat(qS,", ").concat(KS," "),HANDSET_PORTRAIT:"".concat(US),TABLET_PORTRAIT:"".concat(zS," "),WEB_PORTRAIT:"".concat(qS),HANDSET_LANDSCAPE:"".concat(GS),TABLET_LANDSCAPE:"".concat(WS),WEB_LANDSCAPE:"".concat(KS)},zH=[{alias:"handset",priority:2e3,mediaQuery:Ni.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ni.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ni.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ni.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ni.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ni.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ni.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ni.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ni.WEB_PORTRAIT,overlapping:!0}],WH=/(\.|-|_)/g;function qH(e){var r=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return r.toUpperCase()+t}function QH(e){return e.forEach(function(r){r.suffix||(r.suffix=function KH(e){return e.replace(WH,"|").split("|").map(qH).join("")}(r.alias),r.overlapping=!!r.overlapping)}),e}var $H=new Fe("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var r=co(Op),t=co(ti),n=[].concat.apply([],(r||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function YH(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),r.forEach(function(n){t[n.alias]?Li(t[n.alias],n):t[n.alias]=n}),QH(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:GH).concat(t.addOrientationBps?zH:[]),n)}}),Fp=function(){var e=function(){function r(t){d(this,r),this.findByMap=new Map,this.items=R(t).sort(HH)}return f(r,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(i){return i.alias===n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(i){return i.mediaQuery===n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){var i;return null!==(i=null==n?void 0:n.suffix)&&void 0!==i?i:""})}},{key:"findWithPredicate",value:function(n,i){var a,o=this.findByMap.get(n);return o||(o=null!==(a=this.items.find(i))&&void 0!==a?a:null,this.findByMap.set(n,o)),null!=o?o:null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue($H))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Xo="print",XH={alias:Xo,mediaQuery:Xo,priority:1e3},ZH=function(){var e=function(){function r(t,n,i){d(this,r),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new JH,this.deactivations=[]}return f(r,[{key:"withPrintQuery",value:function(n){return[].concat(R(n),[Xo])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(Xo)}},{key:"printAlias",get:function(){var n;return R(null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[])}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(i){return n.breakpoints.findByAlias(i)}).filter(function(i){return null!==i})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(R(this.printBreakPoints),[a]):this.printBreakPoints).sort(Su)}},{key:"updateEvent",value:function(n){var i,a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(i=null==a?void 0:a.mediaQuery)&&void 0!==i?i:""),BS(n,a)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var i=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){i.isPrinting||(i.isPrintingBeforeAfterEvent=!0,i.startPrinting(n,i.getEventBreakpoints(new ku(!0,Xo))),n.updateStyles())},o=function(){i.isPrintingBeforeAfterEvent=!1,i.isPrinting&&(i.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var i=this;return function(a){i.isPrintEvent(a)?a.matches&&!i.isPrinting?(i.startPrinting(n,i.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&i.isPrinting&&!i.isPrintingBeforeAfterEvent&&(i.stopPrinting(n),n.updateStyles()):i.collectActivations(n,a)}}},{key:"blockPropagation",value:function(){var n=this;return function(i){return!(n.isPrinting||n.isPrintEvent(i))}}},{key:"startPrinting",value:function(n,i){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){var a=this.breakpoints.findByQuery(i.mediaQuery);if(a){var o=this.formerActivations&&this.formerActivations.includes(a),s=!this.formerActivations&&n.activatedBreakpoints.includes(a);(o||s)&&(this.deactivations.push(a),this.deactivations.sort(Su))}}}}},{key:"ngOnDestroy",value:function(){var n=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("beforeprint",i)}),this.afterPrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("afterprint",i)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Fp),ue(ti),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),JH=function(){function e(){d(this,e),this.printBreakpoints=[]}return f(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(XH),t.sort(Su),t.forEach(function(i){return n.addBreakpoint(i)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(i){return i.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function ej(e){var r;return null!==(r=null==e?void 0:e.mediaQuery.startsWith(Xo))&&void 0!==r&&r}(t)?[t].concat(R(this.printBreakpoints)):[].concat(R(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}(),Zt=function(){var e=function(){function r(t,n,i){d(this,r),this.matchMedia=t,this.breakpoints=n,this.hook=i,this._useFallbacks=!0,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 Oe,this.observeActivations()}return f(r,[{key:"activatedAlias",get:function(){var n,i;return null!==(i=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==i?i:""}},{key:"activatedBreakpoints",get:function(){return R(this._activatedBreakpoints)},set:function(n){this._activatedBreakpoints=R(n)}},{key:"useFallbacks",set:function(n){this._useFallbacks=n}},{key:"onMediaChange",value:function(n){var i=this.findByQuery(n.mediaQuery);if(i){n=BS(n,i);var a=this.activatedBreakpoints.indexOf(i);n.matches&&-1===a?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Su),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Su),this.updateStyles())}}},{key:"init",value:function(n,i,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];QS(this.updateMap,n,i,a),QS(this.clearMap,n,i,o),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,s)}},{key:"getValue",value:function(n,i,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,i);if(s)return s.get(i)}}},{key:"hasValue",value:function(n,i){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,i);if(o)return void 0!==o.get(i)||!1}return!1}},{key:"setValue",value:function(n,i,a,o){var s,u=this.elementMap.get(n);if(u){var l=(null!==(s=u.get(o))&&void 0!==s?s:new Map).set(i,a);u.set(o,l),this.elementMap.set(n,u)}else u=(new Map).set(o,(new Map).set(i,a)),this.elementMap.set(n,u);var c=this.getValue(n,i);void 0!==c&&this.updateElement(n,i,c)}},{key:"trackValue",value:function(n,i){return this.subject.asObservable().pipe(fn(function(a){return a.element===n&&a.key===i}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(i,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(i);s&&s.forEach(function(u,l){n.updateElement(a,l,u),o.delete(l)}),o.forEach(function(u){if(s=n.getActivatedValues(i,u)){var l=s.get(u);n.updateElement(a,u,l)}else n.clearElement(a,u)})})}},{key:"clearElement",value:function(n,i){var a=this.clearMap.get(n);if(a){var o=a.get(i);o&&(o(),this.subject.next({element:n,key:i,value:""}))}}},{key:"updateElement",value:function(n,i,a){var o=this.updateMap.get(n);if(o){var s=o.get(i);s&&(s(a),this.subject.next({element:n,key:i,value:a}))}}},{key:"releaseElement",value:function(n){var i=this.watcherMap.get(n);i&&(i.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,i){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach(function(u,l){return a.updateElement(n,l,u)}))}}},{key:"buildElementKeyMap",value:function(n,i){var a=this.elementKeyMap.get(n);a||this.elementKeyMap.set(n,a=new Set),a.add(i)}},{key:"watchExtraTriggers",value:function(n,i,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||this.watcherMap.set(n,s=new Map),!s.get(i)){var l=Qa.apply(void 0,R(a)).subscribe(function(){var c=o.getValue(n,i);o.updateElement(n,i,c)});s.set(i,l)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,i){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}},{key:"addStyles",value:function(n,i){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,i),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,i)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(i){n.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=T(a,2),s=o[0],u=o[1];if(!u&&i){var l=LS(s),c=[n];this.styler.applyStyleToElements(l,c)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,i)}},{key:"setValue",value:function(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(We),U(hn),U(Kt),U(Zt))},e.\u0275dir=Ce({type:e,features:[Wn]}),e}();function YS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[r,t,e],i=e.indexOf("calc");if(i>0){n[2]=$S(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(n[0]=a[0],n[1]=a[1])}else if(0==i)n[2]=$S(e.trim());else{var o=e.split(" ");n=3===o.length?o:[r,t,e]}return n}function $S(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Wc(e,r){if(void 0===r)return e;var t=function(i){var a=+i.slice(0,-"x".length);return e.endsWith("x")&&!isNaN(a)?"".concat(a*r.value).concat(r.unit):e};return e.includes(" ")?e.split(" ").map(t).join(" "):t(e)}function Mt(e){return null!=e&&"false"!=="".concat(e)}function Du(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return rj(e)?Number(e):r}function rj(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function qc(e){return Array.isArray(e)?e:[e]}function kn(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Vi(e){return e instanceof We?e.nativeElement:e}function rn(e){return Yt(function(r,t){or(e).subscribe(Gt(t,function(){return t.complete()},Ue)),!t.closed&&r.subscribe(t)})}var lj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,null,a,o)).ngClassInstance=c,h.DIRECTIVE_KEY="ngClass",h.ngClassInstance||(h.ngClassInstance=new lc(s,u,i,l)),h.init(),h.setValue("",""),h}return f(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Kt),U(Zt),U(ou),U(Sa),U(Yr),U(lc,10))},e.\u0275dir=Ce({type:e,inputs:{klass:["class","klass"]},features:[Me]}),e}(),cj=["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"],ZS=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=cj,i}return f(n)}(lj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({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:[Me]}),e}(),dj=function(){var e=function(r){p(n,r);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){return{display:"true"===a?o.display||(o.isServer?"initial":""):"none"}}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),fj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,a,o,s)).layoutConfig=u,h.platformId=l,h.serverModuleLoaded=c,h.DIRECTIVE_KEY="show-hide",h.display="",h.hasLayout=!1,h.hasFlexChild=!1,h}return f(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var a=Array.from(this.nativeElement.children),o=0;o0&&void 0!==arguments[0])||arguments[0];if(""!==a){var o=jo(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:o}),o&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(dj),U(Kt),U(Zt),U(ti),U(pr),U($o))},e.\u0275dir=Ce({type:e,features:[Me,Wn]}),e}(),Pp=new WeakMap,hj=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],JS=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=hj,i}return f(n)}(fj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Me]}),e}(),o0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Tp]]}),e}(),bj=new Fe("cdk-dir-doc",{providedIn:"root",factory:function Cj(){return co(at)}}),wj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,sa=function(){var e=function(){function r(t){d(this,r),this.value="ltr",this.change=new kt,t&&(this.value=function Ej(e){var r=(null==e?void 0:e.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wj.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}return f(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(bj,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Zo=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}(),kj=function(){var e=function(r){p(n,r);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s=o.display,u=LS(a);return Object.assign(Object.assign({},u),{display:"none"===s?s:u.display})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Sj=["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"],Dj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,o,a,s))._config=u,l.DIRECTIVE_KEY="layout",l.init(),l}return f(n,[{key:"updateWithValue",value:function(a){var o,u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=s0.get(u))&&void 0!==o?o:new Map,s0.set(u,this.styleCache),this.currentValue!==a&&(this.addStyles(a,{display:u}),this.currentValue=a)}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Kt),U(kj),U(Zt),U(ti))},e.\u0275dir=Ce({type:e,features:[Me]}),e}(),Jo=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=Sj,i}return f(n)}(Dj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({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:[Me]}),e}(),s0=new Map,u0={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Aj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._styler=i,o._config=a,o}return f(n,[{key:"buildStyles",value:function(a,o){return a.endsWith(Kc)?function Pj(e,r){var n=T(e.split(" "),2),i=n[0],a=n[1],s=function(v){return"-".concat(v)},u="0px",l=s(null!=a?a:i),c="0px";return"rtl"===r?c=s(i):u=s(i),{margin:"0px ".concat(u," ").concat(l," ").concat(c)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),o.directionality):{}}},{key:"sideEffect",value:function(a,o,s){var u=s.items;if(a.endsWith(Kc)){var l=function Fj(e,r){var n=T(e.split(" "),2),i=n[0],a=n[1],s="0px",u=null!=a?a:i,l="0px";return"rtl"===r?l=i:s=i,{padding:"0px ".concat(s," ").concat(u," ").concat(l)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),s.directionality);this._styler.applyStyleToElements(l,s.items)}else{a=Wc(a,this._config.multiplier),a=this.addFallbackUnit(a);var c=u.pop(),h=function Lj(e,r){var t=l0(r.directionality,r.layout),n=Object.assign({},u0);return n[t]=e,n}(a,s);this._styler.applyStyleToElements(h,u),this._styler.applyStyleToElements(u0,[c])}}},{key:"addFallbackUnit",value:function(a){return isNaN(+a)?a:"".concat(a).concat(this._config.defaultUnit)}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(ue(Kt),ue(ti))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),xj=["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"],Mj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l){var c;d(this,n),(c=t.call(this,i,u,s,l)).zone=a,c.directionality=o,c.styleUtils=s,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Oe;var h=[c.directionality.change,c.observerSubject.asObservable()];return c.init(h),c.marshal.trackValue(c.nativeElement,"layout").pipe(rn(c.destroySubject)).subscribe(c.onLayoutChange.bind(Q(c))),c}return f(n,[{key:"childrenNodes",get:function(){for(var a=this.nativeElement.children,o=[],s=a.length;s--;)o[s]=a[s];return o}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){O(E(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(a){var o=this,u=a.value.split(" ");this.layout=u[0],zc.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(a){var o=this,s=this.childrenNodes.filter(function(c){return 1===c.nodeType&&o.willDisplay(c)}).sort(function(c,h){var v=+o.styler.lookupStyle(c,"order"),y=+o.styler.lookupStyle(h,"order");return isNaN(v)||isNaN(y)||v===y?0:v>y?1:-1});if(s.length>0){var u=this.directionality.value,l=this.layout;"row"===l&&"rtl"===u?this.styleCache=Tj:"row"===l&&"rtl"!==u?this.styleCache=Oj:"column"===l&&"rtl"===u?this.styleCache=Rj:"column"===l&&"rtl"!==u&&(this.styleCache=Ij),this.addStyles(a,{directionality:u,items:s,layout:l})}}},{key:"clearStyles",value:function(){var a=Object.keys(this.mru).length>0,o=a?"padding":l0(this.directionality.value,this.layout);a&&O(E(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(w({},o,""),this.childrenNodes)}},{key:"willDisplay",value:function(a){var o=this.marshal.getValue(a,"show-hide");return!0===o||void 0===o&&"none"!==this.styleUtils.lookupStyle(a,"display")}},{key:"buildChildObservable",value:function(){var a=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(a.observer=new MutationObserver(function(o){o.some(function(l){return l.addedNodes&&l.addedNodes.length>0||l.removedNodes&&l.removedNodes.length>0})&&a.observerSubject.next()}),a.observer.observe(a.nativeElement,{childList:!0}))})}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(ot),U(sa),U(Kt),U(Aj),U(Zt))},e.\u0275dir=Ce({type:e,features:[Me]}),e}(),Lp=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=xj,i}return f(n)}(Mj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({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:[Me]}),e}(),Tj=new Map,Rj=new Map,Oj=new Map,Ij=new Map,Kc=" grid";function l0(e,r){switch(r){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left"}}var Np,Nj=function(){var e=function(r){p(n,r);var t=g(n);function n(i){var a;return d(this,n),(a=t.call(this)).layoutConfig=i,a}return f(n,[{key:"buildStyles",value:function(a,o){var u=function k(e){return M(e)||_(e)||ne(e)||W()}(a.split(" ")),l=u[0],c=u[1],v=u.slice(2).join(" "),y=o.direction.indexOf("column")>-1?"column":"row",I=Eu(y)?"max-width":"max-height",J=Eu(y)?"min-width":"min-height",re=String(v).indexOf("calc")>-1,se=re||"auto"===v,te=String(v).indexOf("%")>-1&&!re,me=String(v).indexOf("px")>-1||String(v).indexOf("rem")>-1||String(v).indexOf("em")>-1||String(v).indexOf("vw")>-1||String(v).indexOf("vh")>-1,ye=re||me;c="0"==c?0:c;var xe=!(l="0"==l?0:l)&&!c,Re={},Ge={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(v||""){case"":v="row"===y?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":l=0,v="auto";break;case"grow":v="100%";break;case"noshrink":c=0,v="auto";break;case"auto":break;case"none":l=0,c=0,v="auto";break;default:!ye&&!te&&!isNaN(v)&&(v+="%"),"0%"===v&&(ye=!0),"0px"===v&&(v="0%"),Re=Li(Ge,re?{"flex-grow":l,"flex-shrink":c,"flex-basis":ye?v:"100%"}:{flex:"".concat(l," ").concat(c," ").concat(ye?v:"100%")})}return Re.flex||Re["flex-grow"]||(Re=Li(Ge,re?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)})),"0%"!==v&&"0px"!==v&&"0.000000001px"!==v&&"auto"!==v&&(Re[J]=xe||ye&&l?v:null,Re[I]=xe||!se&&c?v:null),Re[J]||Re[I]?o.hasWrap&&(Re[re?"flex-basis":"flex"]=Re[I]?re?Re[I]:"".concat(l," ").concat(c," ").concat(Re[I]):re?Re[J]:"".concat(l," ").concat(c," ").concat(Re[J])):Re=Li(Ge,re?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)}),Li(Re,{"box-sizing":"border-box"})}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(ue(ti))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Vj=["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"],Bj=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,s,a,u)).layoutConfig=o,l.marshal=u,l.DIRECTIVE_KEY="flex",l.direction=void 0,l.wrap=void 0,l.flexGrow="1",l.flexShrink="1",l.init(),l}return f(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(a){this.flexShrink=a||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(a){this.flexGrow=a||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(rn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(rn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(a){var s=a.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(a){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 s=this.direction,u=s.startsWith("row"),l=this.wrap;u&&l?this.styleCache=Uj:u&&!l?this.styleCache=Hj:!u&&l?this.styleCache=Gj:!u&&!l&&(this.styleCache=jj);var h=YS(String(a).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(h.join(" "),{direction:s,hasWrap:l})}},{key:"triggerReflow",value:function(){var a=this.activatedValue;if(void 0!==a){var o=YS(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,o.join(" "))}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Kt),U(ti),U(Nj),U(Zt))},e.\u0275dir=Ce({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Me]}),e}(),Qc=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=Vj,i}return f(n)}(Bj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({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:[Me]}),e}(),Hj=new Map,jj=new Map,Uj=new Map,Gj=new Map,h3=function(){var e=function(r){p(n,r);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s={},l=T(a.split(" "),2),h=l[1];switch(l[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(h){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return Li(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===h?Eu(o.layout)?null:"100%":null,"max-height":"stretch"===h&&Eu(o.layout)?"100%":null})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),v3=["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"],p3=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s){var u;return d(this,n),(u=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout-align",u.layout="row",u.inline=!1,u.init(),u.marshal.trackValue(u.nativeElement,"layout").pipe(rn(u.destroySubject)).subscribe(u.onLayoutChange.bind(Q(u))),u}return f(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=b3:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=w3:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=C3:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=E3:"column-reverse"===o&&!s&&(this.styleCache=_3):this.styleCache=m3:this.styleCache=y3:this.styleCache=g3,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),zc.find(function(u){return u===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Kt),U(h3),U(Zt))},e.\u0275dir=Ce({type:e,features:[Me]}),e}(),es=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=v3,i}return f(n)}(p3);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({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:[Me]}),e}(),g3=new Map,m3=new Map,y3=new Map,_3=new Map,b3=new Map,C3=new Map,w3=new Map,E3=new Map,c0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Tp,Zo]]}),e}(),y0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Tp]]}),e}(),WU=function(){var e=function(){function r(t,n){d(this,r),jo(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return f(r,null,[{key:"withConfig",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:r,providers:n.serverLoaded?[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0},{provide:$o,useValue:!0}]:[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue($o),ue(pr))},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[c0,o0,y0],c0,o0,y0]}),e}();try{Np="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Np=!1}var ts,Au,$c,Na,Vp,Hn=function(){var e=f(function r(t){d(this,r),this._platformId=t,this.isBrowser=this._platformId?xa(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&&!Np)&&"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)(ue(pr))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),b0=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C0(){if(ts)return ts;if("object"!=typeof document||!document)return ts=new Set(b0);var e=document.createElement("input");return ts=new Set(b0.filter(function(r){return e.setAttribute("type",r),e.type===r}))}function Yc(e){return function qU(){if(null==Au&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Au=!0}}))}finally{Au=Au||!1}return Au}()?e:!!e.capture}function w0(){if(null==Na){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Na=!1;if("scrollBehavior"in document.documentElement.style)Na=!0;else{var e=Element.prototype.scrollTo;Na=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Na}function xu(){if("object"!=typeof document||!document)return 0;if(null==$c){var e=document.createElement("div"),r=e.style;e.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";var t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),$c=0,0===e.scrollLeft&&(e.scrollLeft=1,$c=0===e.scrollLeft?1:2),e.remove()}return $c}function QU(e){if(function KU(){if(null==Vp){var e="undefined"!=typeof document?document.head:null;Vp=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Vp}()){var r=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bp(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}function Va(e){return e.composedPath?e.composedPath()[0]:e.target}function Hp(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function k0(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:en;return e=null!=e?e:e4,Yt(function(t,n){var i,a=!0;t.subscribe(Gt(n,function(o){var s=r(o);(a||!e(i,s))&&(a=!1,i=s,n.next(o))}))})}function e4(e,r){return e===r}var jp=function(){var e=function(){function r(t){d(this,r),this._platform=t}return f(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function i4(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function r4(e){try{return e.frameElement}catch(r){return null}}(function f4(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(i&&(-1===T0(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=T0(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function c4(e){var r=e.nodeName.toLowerCase(),t="input"===r&&e.type;return"text"===t||"password"===t||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function d4(e){return!function o4(e){return function u4(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function a4(e){var r=e.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(e)||function s4(e){return function l4(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||M0(e))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Hn))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function M0(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var r=e.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function T0(e){if(!M0(e))return null;var r=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var h4=function(){function e(r,t,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];d(this,e),this._element=r,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return f(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]"));return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(t),!!i}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=0;i=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Yn(1)).subscribe(t)}}]),e}(),R0=function(){var e=function(){function r(t,n,i){d(this,r),this._checker=t,this._ngZone=n,this._document=i}return f(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new h4(n,this._checker,this._ngZone,this._document,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(jp),ue(ot),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function O0(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function I0(e){var r=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}var v4=new Fe("cdk-input-modality-detector-options"),p4={ignoreKeys:[18,17,224,91,16]},ns=Yc({passive:!0,capture:!0}),g4=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this._platform=t,this._mostRecentTarget=null,this._modality=new _r(null),this._lastTouchMs=0,this._onKeydown=function(s){var u,l;(null===(l=null===(u=o._options)||void 0===u?void 0:u.ignoreKeys)||void 0===l?void 0:l.some(function(c){return c===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=Va(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(O0(s)?"keyboard":"mouse"),o._mostRecentTarget=Va(s))},this._onTouchstart=function(s){I0(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=Va(s))},this._options=Object.assign(Object.assign({},p4),a),this.modalityDetected=this._modality.pipe(S0(1)),this.modalityChanged=this.modalityDetected.pipe(D0()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,ns),i.addEventListener("mousedown",o._onMousedown,ns),i.addEventListener("touchstart",o._onTouchstart,ns)})}return f(r,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ns),document.removeEventListener("mousedown",this._onMousedown,ns),document.removeEventListener("touchstart",this._onTouchstart,ns))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Hn),ue(ot),ue(at),ue(v4,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),m4=new Fe("liveAnnouncerElement",{providedIn:"root",factory:function y4(){return null}}),_4=new Fe("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P0=function(){var e=function(){function r(t,n,i,a){d(this,r),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=t||this._createLiveElement()}return f(r,[{key:"announce",value:function(n){for(var o,s,i=this,a=this._defaultOptions,u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],a=Vi(n);if(!this._platform.isBrowser||1!==a.nodeType)return Xe(null);var o=QU(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return i&&(s.checkChildren=!0),s.subject;var u={checkChildren:i,subject:new Oe,rootNode:o};return this._elementInfo.set(a,u),this._registerGlobalListeners(u),u.subject}},{key:"stopMonitoring",value:function(n){var i=Vi(n),a=this._elementInfo.get(i);a&&(a.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,i,a){var o=this,s=Vi(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(l){var c=T(l,2);return o._originChanged(c[0],i,c[1])}):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(i,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused","touch"===i),n.classList.toggle("cdk-keyboard-focused","keyboard"===i),n.classList.toggle("cdk-mouse-focused","mouse"===i),n.classList.toggle("cdk-program-focused","program"===i)}},{key:"_setOrigin",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){i._origin=n,i._originFromTouchInteraction="touch"===n&&a,0===i._detectionMode&&(clearTimeout(i._originTimeoutId),i._originTimeoutId=setTimeout(function(){return i._origin=null},i._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,i){var a=this._elementInfo.get(i),o=Va(n);!a||!a.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,i){var a=this._elementInfo.get(i);!a||a.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,i){this._ngZone.run(function(){return n.next(i)})}},{key:"_registerGlobalListeners",value:function(n){var i=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",i._rootNodeFocusAndBlurListener,Xc),a.addEventListener("blur",i._rootNodeFocusAndBlurListener,Xc)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){i._getWindow().addEventListener("focus",i._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rn(this._stopInputModalityDetector)).subscribe(function(s){i._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){var a=this._rootNodeFocusListenerCount.get(i);a>1?this._rootNodeFocusListenerCount.set(i,a-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,i,a){this._setClasses(n,i),this._emitOrigin(a.subject,i),this._lastFocusOrigin=i}},{key:"_getClosestElementsInfo",value:function(n){var i=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&i.push([o,a])}),i}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ot),ue(Hn),ue(g4),ue(at,8),ue(b4,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),L0="cdk-high-contrast-black-on-white",N0="cdk-high-contrast-white-on-black",Up="cdk-high-contrast-active",C4=function(){var e=function(){function r(t,n){d(this,r),this._platform=t,this._document=n}return f(r,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(Up),n.remove(L0),n.remove(N0),this._hasCheckedHighContrastMode=!0;var i=this.getHighContrastMode();1===i?(n.add(Up),n.add(L0)):2===i&&(n.add(Up),n.add(N0))}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Hn),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),E4=new Fe("mat-sanity-checks",{providedIn:"root",factory:function w4(){return!0}}),an=function(){var e=function(){function r(t,n,i){d(this,r),this._sanityChecks=n,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return f(r,[{key:"_checkIsEnabled",value:function(n){return!Hp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(C4),ue(E4,8),ue(at))},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Zo],Zo]}),e}();function B0(e){return function(r){p(n,r);var t=g(n);function n(){var i;d(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return function(t){p(i,t);var n=g(i);function i(){var a;d(this,i);for(var o=arguments.length,s=new Array(o),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},U0),a.animation);a.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var u=a.radius||T4(t,n,o),l=t-o.left,c=n-o.top,h=s.enterDuration,v=document.createElement("div");v.classList.add("mat-ripple-element"),v.style.left="".concat(l-u,"px"),v.style.top="".concat(c-u,"px"),v.style.height="".concat(2*u,"px"),v.style.width="".concat(2*u,"px"),null!=a.color&&(v.style.backgroundColor=a.color),v.style.transitionDuration="".concat(h,"ms"),this._containerElement.appendChild(v),M4(v),v.style.transform="scale(1)";var y=new D4(this,v,a);return y.state=0,this._activeRipples.add(y),a.persistent||(this._mostRecentTransientRipple=y),this._runTimeoutOutsideZone(function(){var I=y===i._mostRecentTransientRipple;y.state=1,!a.persistent&&(!I||!i._isPointerDown)&&y.fadeOut()},h),y}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var i=t.element,a=Object.assign(Object.assign({},U0),t.config.animation);i.style.transitionDuration="".concat(a.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.remove()},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=Vi(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(G0))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(z0),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=O0(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(i){n._triggerElement.addEventListener(i,n,zp)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}),this._pointerUpEventsRegistered&&z0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}))}}]),e}();function M4(e){window.getComputedStyle(e).getPropertyValue("opacity")}function T4(e,r,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(r-t.top),Math.abs(r-t.bottom));return Math.sqrt(n*n+i*i)}var R4=new Fe("mat-ripple-global-options"),Ou=function(){var e=function(){function r(t,n,i,a,o){d(this,r),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new x4(this,n,t,i)}return f(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,i,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(We),U(ot),U(Hn),U(R4,8),U(gi,8))},e.\u0275dir=Ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&Rt("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e}(),Wp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[an],an]}),e}(),O4=["mat-button",""],I4=["*"],P4=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L4=Tu(B0(Gp(function(){return f(function e(r){d(this,e),this._elementRef=r})}()))),rs=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o){var s;d(this,n),(s=t.call(this,i))._focusMonitor=a,s._animationMode=o,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var l,u=z(P4);try{for(u.s();!(l=u.n()).done;){var c=l.value;s._hasHostAttributes(c)&&s._getHostElement().classList.add(c)}}catch(h){u.e(h)}finally{u.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return f(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._getHostElement(),a,o):this._getHostElement().focus(o)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),qp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Wp,an],an]}),e}(),N4=["*",[["mat-card-footer"]]],V4=["*","mat-card-footer"],B4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),H4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),j4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),U4=function(){var e=f(function r(){d(this,r),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,n){2&t&&Rt("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),Kp=function(){var e=f(function r(t){d(this,r),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(U(gi,8))},e.\u0275cmp=Bt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,n){2&t&&Rt("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:V4,decls:2,vars:0,template:function(t,n){1&t&&(ir(N4),Ht(0),Ht(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),W0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[an],an]}),e}(),G4=function(e){p(t,e);var r=g(t);function t(n,i){return d(this,t),r.call(this)}return f(t,[{key:"schedule",value:function(i){return this}}]),t}(P),Zc={setInterval:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Zc.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Zc.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)}),delegate:void 0},Qp=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a.pending=!1,a}return f(t,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zc.setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Zc.clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var s,o=!1;try{this.work(i)}catch(u){o=!0,s=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,C(o,this),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null,O(E(t.prototype),"unsubscribe",this).call(this)}}}]),t}(G4),q0={now:function(){return(q0.delegate||Date).now()},delegate:void 0},Yp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;d(this,e),this.schedulerActionCtor=r,this.now=t}return f(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(i,n)}}]),e}();Yp.now=q0.now;var $p=function(e){p(t,e);var r=g(t);function t(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yp.now;return d(this,t),(i=r.call(this,n,a)).actions=[],i._active=!1,i._scheduled=void 0,i}return f(t,[{key:"flush",value:function(i){var a=this.actions;if(this._active)a.push(i);else{var o;this._active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this._active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),t}(Yp),Xp=new $p(Qp),z4=Xp;function Zp(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return Yt(function(t,n){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var c=a;a=null,n.next(c)}};function u(){var l=o+e,c=r.now();if(c0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var u=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(u)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new Z4;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var s,o=this,u=null===(s=this._options)||void 0===s?void 0:s.clickAction;a.stopPropagation(),this.disabled||"noop"===u?!this.disabled&&"noop"===u&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==u&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,o){if("NoopAnimations"===this._animationMode)return"";var s="";switch(a){case 0:if(1===o)s="unchecked-checked";else{if(3!=o)return"";s="unchecked-indeterminate"}break;case 2:s=1===o?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===o?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===o?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(a){var o=this._inputElement;o&&(o.nativeElement.indeterminate=a)}}]),n}(J4);return e.\u0275fac=function(t){return new(t||e)(U(We),U(gr),U(Mu),U(ot),$i("tabindex"),U(gi,8),U(Y4,8))},e.\u0275cmp=Bt({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,n){var i;1&t&&(Tr(q4,5),Tr(Ou,5)),2&t&&(Ot(i=It())&&(n._inputElement=i.first),Ot(i=It())&&(n.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(t,n){2&t&&(Fo("id",n.id),qt("tabindex",null)("aria-label",null)("aria-labelledby",null),Rt("mat-checkbox-indeterminate",n.indeterminate)("mat-checkbox-checked",n.checked)("mat-checkbox-disabled",n.disabled)("mat-checkbox-label-before","before"==n.labelPosition)("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[St([X4]),Me],ngContentSelectors:Q4,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),ve(0,"label",0,1)(2,"span",2)(3,"input",3,4),Be("change",function(s){return n._onInteractionEvent(s)})("click",function(s){return n._onInputClick(s)}),pe(),ve(5,"span",5),Xt(6,"span",6),pe(),Xt(7,"span",7),ve(8,"span",8),function zm(){tt.lFrame.currentNamespace="svg"}(),ve(9,"svg",9),Xt(10,"path",10),pe(),function Wm(){!function SM(){tt.lFrame.currentNamespace=null}()}(),Xt(11,"span",11),pe()(),ve(12,"span",12,13),Be("cdkObserveContent",function(){return n._onLabelTextChange()}),ve(14,"span",14),Te(15,"\xa0"),pe(),Ht(16),pe()()),2&t){var i=Qn(1),a=Qn(13);qt("for",n.inputId),we(2),Rt("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),we(1),Ae("id",n.inputId)("required",n.required)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex),qt("value",n.value)("name",n.name)("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-checked",n._getAriaChecked())("aria-describedby",n.ariaDescribedby),we(2),Ae("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",jh(19,K4,"NoopAnimations"===n._animationMode?0:150))}},directives:[Ou,Q0],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),J0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}(),eD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Wp,an,Y0,J0],an,J0]}),e}(),nG=["addListener","removeListener"],rG=["addEventListener","removeEventListener"],iG=["on","off"];function is(e,r,t,n){if(L(t)&&(n=t,t=void 0),n)return is(e,r,t).pipe(Ov(n));var a=T(function sG(e){return L(e.addEventListener)&&L(e.removeEventListener)}(e)?rG.map(function(u){return function(l){return e[u](r,l,t)}}):function aG(e){return L(e.addListener)&&L(e.removeListener)}(e)?nG.map(tD(e,r)):function oG(e){return L(e.on)&&L(e.off)}(e)?iG.map(tD(e,r)):[],2),o=a[0],s=a[1];if(!o&&Ld(e))return Sn(function(u){return is(u,r,t)})(or(e));if(!o)throw new TypeError("Invalid event target");return new lt(function(u){var l=function(){for(var h=arguments.length,v=new Array(h),y=0;y2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?O(E(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(function(){return i.flush(void 0)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return O(E(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(Iu.cancelAnimationFrame(a),i._scheduled=void 0)}}]),t}(Qp),lG=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p),dG=(new lG(uG),1),Jc={};function nD(e){return e in Jc&&(delete Jc[e],!0)}var fG=function(r){var t=dG++;return Jc[t]=!0,Jp||(Jp=Promise.resolve()),Jp.then(function(){return nD(t)&&r()}),t},hG=function(r){nD(r)},ed={setImmediate:function(){var r=ed.delegate;return((null==r?void 0:r.setImmediate)||fG).apply(void 0,arguments)},clearImmediate:function(r){var t=ed.delegate;return((null==t?void 0:t.clearImmediate)||hG)(r)},delegate:void 0},vG=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return f(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?O(E(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=ed.setImmediate(i.flush.bind(i,void 0))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return O(E(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(ed.clearImmediate(a),i._scheduled=void 0)}}]),t}(Qp),pG=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p);new pG(vG);function mG(e){return Yt(function(r,t){var n=!1,i=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var c=i;i=null,t.next(c)}o&&t.complete()},u=function(){a=null,o&&t.complete()};r.subscribe(Gt(t,function(l){n=!0,i=l,a||or(e(l)).subscribe(a=Gt(t,s,u))},function(){o=!0,(!n||!a||a.closed)&&t.complete()}))})}function yG(e){return e instanceof Date&&!isNaN(e)}function _G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z4,n=-1;return null!=r&&(dm(r)?t=r:n=r),new lt(function(i){var a=yG(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},a)})}function iD(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return mG(function(){return _G(e,r)})}var td=function(){var e=function(){function r(t,n,i){d(this,r),this._ngZone=t,this._platform=n,this._scrolled=new Oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return f(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new lt(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(iD(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):Xe()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(fn(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=Vi(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return is(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ot),ue(Hn),ue(at,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Fu=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Oe,this._elementScrolled=new lt(function(s){return o.ngZone.runOutsideAngular(function(){return is(o.elementRef.nativeElement,"scroll").pipe(rn(o._destroyed)).subscribe(s)})})}return f(r,[{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(n){var i=this.elementRef.nativeElement,a=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=a?n.end:n.start),null==n.right&&(n.right=a?n.start:n.end),null!=n.bottom&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),a&&0!=xu()?(null!=n.left&&(n.right=i.scrollWidth-i.clientWidth-n.left),2==xu()?n.left=n.right:1==xu()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}},{key:"_applyScrollToOptions",value:function(n){var i=this.elementRef.nativeElement;w0()?i.scrollTo(n):(null!=n.top&&(i.scrollTop=n.top),null!=n.left&&(i.scrollLeft=n.left))}},{key:"measureScrollOffset",value:function(n){var i="left",a="right",o=this.elementRef.nativeElement;if("top"==n)return o.scrollTop;if("bottom"==n)return o.scrollHeight-o.clientHeight-o.scrollTop;var s=this.dir&&"rtl"==this.dir.value;return"start"==n?n=s?a:i:"end"==n&&(n=s?i:a),s&&2==xu()?n==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==xu()?n==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(We),U(td),U(ot),U(sa,8))},e.\u0275dir=Ce({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),eg=function(){var e=function(){function r(t,n,i){var a=this;d(this,r),this._platform=t,this._change=new Oe,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return f(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(iD(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Hn),ue(ot),ue(at,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),nd=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}(),aD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Zo,nd],Zo,nd]}),e}(),tg=function(){function e(){d(this,e)}return f(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),Pu=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return f(t)}(tg),ng=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return f(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,O(E(t.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,O(E(t.prototype),"detach",this).call(this)}}]),t}(tg),wG=function(e){p(t,e);var r=g(t);function t(n){var i;return d(this,t),(i=r.call(this)).element=n instanceof We?n.nativeElement:n,i}return f(t)}(tg),rd=function(){function e(){d(this,e),this._isDisposed=!1,this.attachDomPortal=null}return f(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Pu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ng?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof wG?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),EG=function(e){p(t,e);var r=g(t);function t(n,i,a,o,s){var u,l;return d(this,t),(l=r.call(this)).outletElement=n,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(c){var h=c.element,v=l._document.createComment("dom-portal");h.parentNode.insertBefore(v,h),l.outletElement.appendChild(h),l._attachedPortal=c,O((u=Q(l),E(t.prototype)),"setDisposeFn",u).call(u,function(){v.parentNode&&v.parentNode.replaceChild(h,v)})},l._document=s,l}return f(t,[{key:"attachComponentPortal",value:function(i){var u,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(u=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return u.destroy()})):(u=s.create(i.injector||this._defaultInjector),this._appRef.attachView(u.hostView),this.setDisposeFn(function(){a._appRef.detachView(u.hostView),u.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(u)),this._attachedPortal=i,u}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(u){return a.outletElement.appendChild(u)}),s.detectChanges(),this.setDisposeFn(function(){var u=o.indexOf(s);-1!==u&&o.remove(u)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){O(E(t.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),t}(rd),id=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o){var s,u;return d(this,n),(u=t.call(this))._componentFactoryResolver=i,u._viewContainerRef=a,u._isInitialized=!1,u.attached=new kt,u.attachDomPortal=function(l){var c=l.element,h=u._document.createComment("dom-portal");l.setAttachedHost(Q(u)),c.parentNode.insertBefore(h,c),u._getRootNode().appendChild(c),u._attachedPortal=l,O((s=Q(u),E(n.prototype)),"setDisposeFn",s).call(s,function(){h.parentNode&&h.parentNode.replaceChild(c,h)})},u._document=o,u}return f(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&O(E(n.prototype),"detach",this).call(this),a&&O(E(n.prototype),"attach",this).call(this,a),this._attachedPortal=a||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){O(E(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,u=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),l=o.createComponent(u,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),O(E(n.prototype),"setDisposeFn",this).call(this,function(){return l.destroy()}),this._attachedPortal=a,this._attachedRef=l,this.attached.emit(l),l}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return O(E(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(U(Ea),U(Mr),U(at))},e.\u0275dir=Ce({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Me]}),e}(),rg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}(),oD=w0(),kG=function(){function e(r,t){d(this,e),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return f(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=kn(-this._previousScrollPosition.left),t.style.top=kn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,i=t.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),oD&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oD&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),e}(),SG=function(){function e(r,t,n,i){var a=this;d(this,e),this._scrollDispatcher=r,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=t._viewportRuler.getViewportScrollPosition().top;Math.abs(i-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.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}(),sD=function(){function e(){d(this,e)}return f(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ig(e,r){return r.some(function(t){return e.bottomt.bottom||e.rightt.right})}function uD(e,r){return r.some(function(t){return e.topt.bottom||e.leftt.right})}var DG=function(){function e(r,t,n,i){d(this,e),this._scrollDispatcher=r,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var i=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;ig(i,[{width:o,height:s,bottom:s,right:o,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),AG=function(){var e=f(function r(t,n,i,a){var o=this;d(this,r),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new sD},this.close=function(s){return new SG(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new kG(o._viewportRuler,o._document)},this.reposition=function(s){return new DG(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(ue(td),ue(eg),ue(ot),ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ag=f(function e(r){if(d(this,e),this.scrollStrategy=new sD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);nJ&&(J=me,I=te)}}catch(ye){re.e(ye)}finally{re.f()}return this._isPushed=!1,void this._applyPosition(I.position,I.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ba(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n,i){var a,u;if("center"==i.originX)a=t.left+t.width/2;else{var o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),u="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,n.top<0&&(u-=n.top),{x:a,y:u}}},{key:"_getOverlayPoint",value:function(t,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,i,a){var o=dD(n),s=t.x,u=t.y,l=this._getOffset(a,"x"),c=this._getOffset(a,"y");l&&(s+=l),c&&(u+=c);var y=0-u,I=u+o.height-i.height,J=this._subtractOverflows(o.width,0-s,s+o.width-i.width),re=this._subtractOverflows(o.height,y,I),se=J*re;return{visibleArea:se,isCompletelyWithinViewport:o.width*o.height===se,fitsInViewportVertically:re===o.height,fitsInViewportHorizontally:J==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=cD(this._overlayRef.getConfig().minHeight),u=cD(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=u&&u<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var h,v,a=dD(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),u=Math.max(t.y+a.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);return this._previousPushAmount={x:h=a.width<=o.width?c||-s:t.xc&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-c/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)J=i.width-t.x+this._viewportMargin,y=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)I=t.x,y=i.right-t.x;else{var re=Math.min(i.right-t.x+i.left,t.x),se=this._lastBoundingBoxSize.width;I=t.x-re,(y=2*re)>se&&!this._isInitialRender&&!this._growAfterOpen&&(I=t.x-se/2)}return{top:s,left:I,bottom:u,right:J,width:y,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=kn(i.height),a.top=kn(i.top),a.bottom=kn(i.bottom),a.width=kn(i.width),a.left=kn(i.left),a.right=kn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=kn(o)),s&&(a.maxWidth=kn(s))}this._lastBoundingBoxSize=i,Ba(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){Ba(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ba(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var u=this._viewportRuler.getViewportScrollPosition();Ba(i,this._getExactOverlayY(n,t,u)),Ba(i,this._getExactOverlayX(n,t,u))}else i.position="static";var l="",c=this._getOffset(n,"x"),h=this._getOffset(n,"y");c&&(l+="translateX(".concat(c,"px) ")),h&&(l+="translateY(".concat(h,"px)")),i.transform=l.trim(),s.maxHeight&&(a?i.maxHeight=kn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=kn(s.maxWidth):o&&(i.maxWidth="")),Ba(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=kn(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=kn(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:uD(t,i),isOriginOutsideView:ig(t,i),isOverlayClipped:uD(n,i),isOverlayOutsideView:ig(n,i)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,u=i.maxHeight,l=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||u&&"100%"!==u&&"100vh"!==u);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(fD),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),IG=function(){var e=function(){function r(t,n,i,a){d(this,r),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return f(r,[{key:"global",value:function(){return new OG}},{key:"flexibleConnectedTo",value:function(n){return new RG(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(eg),ue(at),ue(Hn),ue(og))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hD=function(){var e=function(){function r(t){d(this,r),this._attachedOverlays=[],this._document=t}return f(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(at))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),FG=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a){var o;return d(this,n),(o=t.call(this,i))._ngZone=a,o._keydownListener=function(s){for(var u=o._attachedOverlays,l=u.length-1;l>-1&&!(u[l]._keydownEvents.observers.length>0&&"break"===function(){var h=u[l]._keydownEvents;return o._ngZone?o._ngZone.run(function(){return h.next(s)}):h.next(s),"break"}());l--);},o}return f(n,[{key:"add",value:function(a){var o=this;O(E(n.prototype),"add",this).call(this,a),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return o._document.body.addEventListener("keydown",o._keydownListener)}):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}(hD);return e.\u0275fac=function(t){return new(t||e)(ue(at),ue(ot,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),PG=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._ngZone=o,s._cursorStyleIsSet=!1,s._pointerDownListener=function(u){s._pointerDownEventTarget=Va(u)},s._clickListener=function(u){var l=Va(u),c="click"===u.type&&s._pointerDownEventTarget?s._pointerDownEventTarget:l;s._pointerDownEventTarget=null;for(var h=s._attachedOverlays.slice(),v=function(re){var se=h[re];if(se._outsidePointerEvents.observers.length<1||!se.hasAttached())return"continue";if(se.overlayElement.contains(l)||se.overlayElement.contains(c))return"break";var te=se._outsidePointerEvents;s._ngZone?s._ngZone.run(function(){return te.next(u)}):te.next(u)},y=h.length-1;y>-1;y--){var I=v(y);if("continue"!==I&&"break"===I)break}},s}return f(n,[{key:"add",value:function(a){var o=this;if(O(E(n.prototype),"add",this).call(this,a),!this._isAttached){var s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return o._addEventListeners(s)}):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(ue(at),ue(Hn),ue(ot,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),LG=0,as=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h,v){d(this,r),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=u,this._document=l,this._directionality=c,this._location=h,this._outsideClickDispatcher=v}return f(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new ag(n);return s.direction=s.direction||this._directionality.value,new MG(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(LG++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Zl)),new EG(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(AG),ue(og),ue(Ea),ue(IG),ue(FG),ue(Wt),ue(ot),ue(at),ue(sa),ue(Aa),ue(PG))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),BG={provide:new Fe("cdk-connected-overlay-scroll-strategy"),deps:[as],useFactory:function VG(e){return function(){return e.scrollStrategies.reposition()}}},vD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:[as,BG],imports:[[Zo,rg,aD],aD]}),e}();function sg(e){return new lt(function(r){or(e()).subscribe(r)})}function HG(){return hs(1)}function ad(){for(var e=arguments.length,r=new Array(e),t=0;t enter",Pi("150ms cubic-bezier(0, 0, 0.2, 1)",Ln({transform:"none",opacity:1}))),ia("* => void, * => exit",Pi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ln({opacity:0})))])},GG=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this))._elementRef=i,v._focusTrapFactory=a,v._changeDetectorRef=o,v._config=u,v._interactivityChecker=l,v._ngZone=c,v._focusMonitor=h,v._animationStateChanged=new kt,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(y){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(y)},v._ariaLabelledBy=u.ariaLabelledBy||null,v._document=s,v}return f(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(a,o){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){a.addEventListener("blur",function(){return a.removeAttribute("tabindex")}),a.addEventListener("mousedown",function(){return a.removeAttribute("tabindex")})})),a.focus(o)}},{key:"_focusByCssSelector",value:function(a,o){var s=this._elementRef.nativeElement.querySelector(a);s&&this._forceFocus(s,o)}},{key:"_trapFocus",value:function(){var a=this,o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||a._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var o=Bp(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.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=Bp())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,o=Bp();return a===o||a.contains(o)}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(U(We),U(R0),U(gr),U(at,8),U(ug),U(jp),U(ot),U(Mu))},e.\u0275dir=Ce({type:e,viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ot(i=It())&&(n._portalOutlet=i.first)},features:[Me]}),e}(),zG=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._state="enter",i}return f(n,[{key:"_onAnimationDone",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===o&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:s}))}},{key:"_onAnimationStart",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GG);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275cmp=Bt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&qs("@dialogContainer.start",function(a){return n._onAnimationStart(a)})("@dialogContainer.done",function(a){return n._onAnimationDone(a)}),2&t&&(Fo("id",n._id),qt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qs("@dialogContainer",n._state))},features:[Me],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&Qe(0,jG,0,0,"ng-template",0)},directives:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[UG.dialogContainer]}}),e}(),WG=0,lg=function(){function e(r,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(WG++);d(this,e),this._overlayRef=r,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Oe,this._afterClosed=new Oe,this._beforeClosed=new Oe,this._state=0,t._id=i,t._animationStateChanged.pipe(fn(function(a){return"opened"===a.state}),Yn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(fn(function(a){return"closed"===a.state}),Yn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),r.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),r.keydownEvents().pipe(fn(function(a){return 27===a.keyCode&&!n.disableClose&&!k0(a)})).subscribe(function(a){a.preventDefault(),cg(n,"keyboard")}),r.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():cg(n,"mouse")})}return f(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(fn(function(i){return"closing"===i.state}),Yn(1)).subscribe(function(i){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},i.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(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function cg(e,r,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=r),e.close(t)}var qG=new Fe("MatDialogData"),KG=new Fe("mat-dialog-default-options"),pD=new Fe("mat-dialog-scroll-strategy"),YG={provide:pD,deps:[as],useFactory:function QG(e){return function(){return e.scrollStrategies.block()}}},$G=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h){var v=this;d(this,r),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=a,this._overlayContainer=o,this._dialogRefConstructor=u,this._dialogContainerType=l,this._dialogDataToken=c,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Oe,this._afterOpenedAtThisLevel=new Oe,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=sg(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe(ua(void 0))}),this._scrollStrategy=s}return f(r,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,i){var a=this;if(i=function XG(e,r){return Object.assign(Object.assign({},r),e)}(i,this._defaultOptions||new ug),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;var o=this._createOverlay(i),s=this._attachDialogContainer(o,i);if("NoopAnimations"!==this._animationMode){var u=s._animationStateChanged.subscribe(function(c){"opening"===c.state&&(a._dialogAnimatingOpen=!0),"opened"===c.state&&(a._dialogAnimatingOpen=!1,u.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new P),this._animationStateSubscriptions.add(u)}var l=this._attachDialogContent(n,s,o,i);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return a._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(i){return i.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}},{key:"_createOverlay",value:function(n){var i=this._getOverlayConfig(n);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(n){var i=new ag({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(i.backdropClass=n.backdropClass),i}},{key:"_attachDialogContainer",value:function(n,i){var o=Wt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:i}]}),s=new Pu(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return n.attach(s).instance}},{key:"_attachDialogContent",value:function(n,i,a,o){var s=new this._dialogRefConstructor(a,i,o.id);if(n instanceof $r)i.attachTemplatePortal(new ng(n,null,{$implicit:o.data,dialogRef:s}));else{var u=this._createInjector(o,s,i),l=i.attachComponentPortal(new Pu(n,o.viewContainerRef,u,o.componentFactoryResolver));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}},{key:"_createInjector",value:function(n,i,a){var o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:i}];return n.direction&&(!o||!o.get(sa,null,et.Optional))&&s.push({provide:sa,useValue:{value:n.direction,change:Xe()}}),Wt.create({parent:o||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(n){var i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,o){a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var i=n.parentElement.children,a=i.length-1;a>-1;a--){var o=i[a];o!==n&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var i=n.length;i--;)n[i].close()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275dir=Ce({type:e}),e}(),od=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,s,l,c,u,lg,zG,qG,h)}return f(n)}($G);return e.\u0275fac=function(t){return new(t||e)(ue(as),ue(Wt),ue(Aa,8),ue(KG,8),ue(pD),ue(e,12),ue(og),ue(gi,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),ZG=0,JG=function(){var e=function(){function r(t,n,i){d(this,r),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return f(r,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=gD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var i=n._matDialogClose||n._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(n){cg(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(lg,8),U(We),U(od))},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&Be("click",function(a){return n._onButtonClick(a)}),2&t&&qt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Wn]}),e}(),e5=function(){var e=function(){function r(t,n,i){d(this,r),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(ZG++)}return f(r,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=gD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=n._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=n.id)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(lg,8),U(We),U(od))},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Fo("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),t5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),n5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function gD(e,r){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(n){return n.id===t.id}):null}var mD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:[od,YG],imports:[[vD,rg,an],an]}),e}(),r5=["connectionContainer"],a5=["inputContainer"],o5=["label"];function s5(e,r){1&e&&(Gs(0),ve(1,"div",14),Xt(2,"div",15)(3,"div",16)(4,"div",17),pe(),ve(5,"div",18),Xt(6,"div",15)(7,"div",16)(8,"div",17),pe(),zs())}function u5(e,r){if(1&e){var t=Lt();ve(0,"div",19),Be("cdkObserveContent",function(){return gt(t),He().updateOutlineGap()}),Ht(1,1),pe()}2&e&&Ae("cdkObserveContentDisabled","outline"!=He().appearance)}function l5(e,r){if(1&e&&(Gs(0),Ht(1,2),ve(2,"span"),Te(3),pe(),zs()),2&e){var t=He(2);we(3),bn(t._control.placeholder)}}function c5(e,r){1&e&&Ht(0,3,["*ngSwitchCase","true"])}function d5(e,r){1&e&&(ve(0,"span",23),Te(1," *"),pe())}function f5(e,r){if(1&e){var t=Lt();ve(0,"label",20,21),Be("cdkObserveContent",function(){return gt(t),He().updateOutlineGap()}),Qe(2,l5,4,1,"ng-container",12),Qe(3,c5,1,0,"ng-content",12),Qe(4,d5,2,0,"span",22),pe()}if(2&e){var n=He();Rt("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),Ae("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),qt("for",n._control.id)("aria-owns",n._control.id),we(2),Ae("ngSwitchCase",!1),we(1),Ae("ngSwitchCase",!0),we(1),Ae("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function h5(e,r){1&e&&(ve(0,"div",24),Ht(1,4),pe())}function v5(e,r){if(1&e&&(ve(0,"div",25),Xt(1,"span",26),pe()),2&e){var t=He();we(1),Rt("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function p5(e,r){1&e&&(ve(0,"div"),Ht(1,5),pe()),2&e&&Ae("@transitionMessages",He()._subscriptAnimationState)}function g5(e,r){if(1&e&&(ve(0,"div",30),Te(1),pe()),2&e){var t=He(2);Ae("id",t._hintLabelId),we(1),bn(t.hintLabel)}}function m5(e,r){if(1&e&&(ve(0,"div",27),Qe(1,g5,2,2,"div",28),Ht(2,6),Xt(3,"div",29),Ht(4,7),pe()),2&e){var t=He();Ae("@transitionMessages",t._subscriptAnimationState),we(1),Ae("ngIf",t.hintLabel)}}var y5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],b5=new Fe("MatError"),C5={transitionMessages:_u("transitionMessages",[Oa("enter",Ln({opacity:1,transform:"translateY(0%)"})),ia("void => enter",[Ln({opacity:0,transform:"translateY(-5px)"}),Pi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e}),e}(),w5=new Fe("MatHint"),yD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-label"]]}),e}(),E5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-placeholder"]]}),e}(),k5=new Fe("MatPrefix"),S5=new Fe("MatSuffix"),_D=0,A5=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}(),"primary"),x5=new Fe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),CD=new Fe("MatFormField"),fg=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i))._changeDetectorRef=a,h._dir=o,h._defaults=s,h._platform=u,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Oe,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(_D++),h._labelId="mat-form-field-label-".concat(_D++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return f(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Mt(a)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ua(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(rn(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(rn(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),Qa(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ua(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ua(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rn(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.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(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{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 a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,is(this._label.nativeElement,"transitionend").pipe(Yn(1)).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,R(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(u){return"start"===u.align}):null,s=this._hintChildren?this._hintChildren.find(function(u){return"end"===u.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,R(this._errorChildren.map(function(u){return u.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null,o=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!a||!a.children.length||!a.textContent.trim()){for(var l=o.querySelectorAll("".concat(s,", ").concat(u)),c=0;c0?.75*me+10:0}for(var xe=0;xe1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,i),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var i=this,a=this._sanitizer.sanitize(Dt.RESOURCE_URL,n);if(!a)throw kD(n);var o=this._cachedIconsByUrl.get(a);return o?Xe(cd(o)):this._loadSvgIconFromConfig(new Ha(n,null)).pipe(Bn(function(s){return i._cachedIconsByUrl.set(a,s)}),Ye(function(s){return cd(s)}))}},{key:"getNamedSvgIcon",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=DD(i,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(n,s):mi(ED(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?Xe(cd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Ye(function(i){return cd(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,i){var a=this,o=this._extractIconWithNameFromAnySet(n,i);return o?Xe(o):xE(i.filter(function(u){return!u.svgText}).map(function(u){return a._loadSvgIconSetFromConfig(u).pipe(vn(function(l){var c=a._sanitizer.sanitize(Dt.RESOURCE_URL,u.url),h="Loading icon set URL: ".concat(c," failed: ").concat(l.message);return a._errorHandler.handleError(new Error(h)),Xe(null)}))})).pipe(Ye(function(){var u=a._extractIconWithNameFromAnySet(n,i);if(!u)throw ED(n);return u}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,i){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){var s=this._svgElementFromConfig(o),u=this._extractSvgIconFromSet(s,n,o.options);if(u)return u}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var i=this;return this._fetchIcon(n).pipe(Bn(function(a){return n.svgText=a}),Ye(function(){return i._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?Xe(null):this._fetchIcon(n).pipe(Bn(function(i){return n.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(n,i,a){var o=n.querySelector('[id="'.concat(i,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var u=this._svgElementFromString(Lu(""));return u.appendChild(s),this._setSvgAttributes(u,a)}},{key:"_svgElementFromString",value:function(n){var i=this._document.createElement("DIV");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var i=this._svgElementFromString(Lu("")),a=n.attributes,o=0;o-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,o=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&o&&o.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),n}(G5);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Hn),U(Ii,10),U(ra,8),U(Ac,8),U(j0),U(H5,10),U(B5),U(ot),U(CD,8))},e.\u0275dir=Ce({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,n){1&t&&Be("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Fo("disabled",n.disabled)("required",n.required),qt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Rt("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[St([{provide:dg,useExisting:e}]),Me,Wn]}),e}(),RD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({providers:[j0],imports:[[TD,sd,an],TD,sd]}),e}(),z5=function(){var e=function(){function r(){d(this,r),this._listeners=[]}return f(r,[{key:"notify",value:function(n,i){var o,a=z(this._listeners);try{for(a.s();!(o=a.n()).done;)(0,o.value)(n,i)}catch(u){a.e(u)}finally{a.f()}}},{key:"listen",value:function(n){var i=this;return this._listeners.push(n),function(){i._listeners=i._listeners.filter(function(a){return n!==a})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),W5=["input"],q5=function(r){return{enterDuration:r}},K5=["*"],Q5=new Fe("mat-radio-default-options",{providedIn:"root",factory:function Y5(){return{color:"accent"}}}),OD=0,$5={provide:Ir,useExisting:xt(function(){return vg}),multi:!0},ID=f(function e(r,t){d(this,e),this.source=r,this.value=t}),FD=new Fe("MatRadioGroup"),X5=function(){var e=function(){function r(t){d(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(OD++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new kt}return f(r,[{key:"name",get:function(){return this._name},set:function(n){this._name=n,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=Mt(n),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(n){this._required=Mt(n),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var n=this;this._radios&&this._radios.forEach(function(i){i.name=n.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var n=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=n.value===a.value,a.checked&&(n._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new ID(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(n){return n._markForCheck()})}},{key:"writeValue",value:function(n){this.value=n,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(n){this._controlValueAccessorChangeFn=n}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"setDisabledState",value:function(n){this.disabled=n,this._changeDetector.markForCheck()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(gr))},e.\u0275dir=Ce({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),e}(),vg=function(){var e=function(r){p(n,r);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(X5);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275dir=Ce({type:e,selectors:[["mat-radio-group"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,pg,5),2&t&&Ot(a=It())&&(n._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[St([$5,{provide:FD,useExisting:e}]),Me]}),e}(),Z5=f(function e(r){d(this,e),this._elementRef=r}),J5=Gp(H0(Z5)),e8=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this,a))._changeDetector=o,v._focusMonitor=s,v._radioDispatcher=u,v._providerOverride=c,v._uniqueId="mat-radio-".concat(++OD),v.id=v._uniqueId,v.change=new kt,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===l,h&&(v.tabIndex=Du(h,0)),v._removeUniqueSelectionListener=u.listen(function(y,I){y!==v.id&&I===v.name&&(v.checked=!1)}),v}return f(n,[{key:"checked",get:function(){return this._checked},set:function(a){var o=Mt(a);this._checked!==o&&(this._checked=o,o&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!o&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),o&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Mt(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Mt(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,o){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(o){!o&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new ID(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var o=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),o&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),n}(J5);return e.\u0275fac=function(t){Us()},e.\u0275dir=Ce({type:e,viewQuery:function(t,n){var i;1&t&&Tr(W5,5),2&t&&Ot(i=It())&&(n._inputElement=i.first)},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Me]}),e}(),pg=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,o,s,u,l,c,h)}return f(n)}(e8);return e.\u0275fac=function(t){return new(t||e)(U(FD,8),U(We),U(gr),U(Mu),U(z5),U(gi,8),U(Q5,8),$i("tabindex"))},e.\u0275cmp=Bt({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,n){1&t&&Be("focus",function(){return n._inputElement.nativeElement.focus()}),2&t&&(qt("tabindex",null)("id",n.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Rt("mat-radio-checked",n.checked)("mat-radio-disabled",n.disabled)("_mat-animation-noopable",n._noopAnimations)("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Me],ngContentSelectors:K5,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),ve(0,"label",0,1)(2,"span",2),Xt(3,"span",3)(4,"span",4),ve(5,"input",5,6),Be("change",function(o){return n._onInputInteraction(o)})("click",function(o){return n._onInputClick(o)}),pe(),ve(7,"span",7),Xt(8,"span",8),pe()(),ve(9,"span",9)(10,"span",10),Te(11,"\xa0"),pe(),Ht(12),pe()()),2&t){var i=Qn(1);qt("for",n.inputId),we(5),Ae("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex)("required",n.required),qt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),we(2),Ae("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",jh(18,q5,n._noopAnimations?0:150)),we(2),Rt("mat-radio-label-before","before"==n.labelPosition)}},directives:[Ou],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),PD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[Wp,an],an]}),e}();function LD(e){return Ye(function(){return e})}var dd=["*"],t8=["content"];function n8(e,r){if(1&e){var t=Lt();ve(0,"div",2),Be("click",function(){return gt(t),He()._onBackdropClicked()}),pe()}2&e&&Rt("mat-drawer-shown",He()._isShowingBackdrop())}function r8(e,r){1&e&&(ve(0,"mat-drawer-content"),Ht(1,2),pe())}var i8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],a8=["mat-drawer","mat-drawer-content","*"];function o8(e,r){if(1&e){var t=Lt();ve(0,"div",2),Be("click",function(){return gt(t),He()._onBackdropClicked()}),pe()}2&e&&Rt("mat-drawer-shown",He()._isShowingBackdrop())}function s8(e,r){1&e&&(ve(0,"mat-sidenav-content"),Ht(1,2),pe())}var u8=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l8=["mat-sidenav","mat-sidenav-content","*"],ND={transformDrawer:_u("transform",[Oa("open, open-instant",Ln({transform:"none",visibility:"visible"})),Oa("void",Ln({"box-shadow":"none",visibility:"hidden"})),ia("void => open-instant",Pi("0ms")),ia("void <=> open, open-instant => void",Pi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},d8=new Fe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function f8(){return!1}}),gg=new Fe("MAT_DRAWER_CONTAINER"),fd=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,o,s,u))._changeDetectorRef=i,l._container=a,l}return f(n,[{key:"ngAfterContentInit",value:function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})}}]),n}(Fu);return e.\u0275fac=function(t){return new(t||e)(U(gr),U(xt(function(){return BD})),U(We),U(td),U(ot))},e.\u0275cmp=Bt({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[St([{provide:Fu,useExisting:e}]),Me],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),Ht(0))},encapsulation:2,changeDetection:0}),e}(),VD=function(){var e=function(){function r(t,n,i,a,o,s,u,l){var c=this;d(this,r),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._interactivityChecker=s,this._doc=u,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Oe,this._animationEnd=new Oe,this._animationState="void",this.openedChange=new kt(!0),this._openedStream=this.openedChange.pipe(fn(function(h){return h}),Ye(function(){})),this.openedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),LD(void 0)),this._closedStream=this.openedChange.pipe(fn(function(h){return!h}),Ye(function(){})),this.closedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&"void"===h.toState}),LD(void 0)),this._destroyed=new Oe,this.onPositionChanged=new kt,this._modeChanged=new Oe,this.openedChange.subscribe(function(h){h?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus(c._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){is(c._elementRef.nativeElement,"keydown").pipe(fn(function(h){return 27===h.keyCode&&!c.disableClose&&!k0(h)}),rn(c._destroyed)).subscribe(function(h){return c._ngZone.run(function(){c.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe(D0(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,y=h.toState;(0===y.indexOf("open")&&"void"===v||"void"===y&&0===v.indexOf("open"))&&c.openedChange.emit(c._opened)})}return f(r,[{key:"position",get:function(){return this._position},set:function(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(n){this._disableClose=Mt(n)}},{key:"autoFocus",get:function(){var n=this._autoFocus;return null==n?"side"===this.mode?"dialog":"first-tabbable":n},set:function(n){("true"===n||"false"===n||null==n)&&(n=Mt(n)),this._autoFocus=n}},{key:"opened",get:function(){return this._opened},set:function(n){this.toggle(Mt(n))}},{key:"_forceFocus",value:function(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(function(){n.addEventListener("blur",function(){return n.removeAttribute("tabindex")}),n.addEventListener("mousedown",function(){return n.removeAttribute("tabindex")})})),n.focus(i)}},{key:"_focusByCssSelector",value:function(n,i){var a=this._elementRef.nativeElement.querySelector(n);a&&this._forceFocus(a,i)}},{key:"_takeFocus",value:function(){var n=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(a){!a&&"function"==typeof n._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var n;this._focusTrap&&this._focusTrap.destroy(),null===(n=this._anchor)||void 0===n||n.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(n){return this.toggle(!0,n)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;n&&i&&(this._openedVia=i);var a=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),a}},{key:"_setOpen",value:function(n,i,a){var o=this;return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(a)),this._updateFocusTrapState(),new Promise(function(s){o.openedChange.pipe(Yn(1)).subscribe(function(u){return s(u?"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:"_updatePositionInParent",value:function(n){var i=this._elementRef.nativeElement,a=i.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),a.insertBefore(this._anchor,i)),a.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(We),U(R0),U(Mu),U(Hn),U(ot),U(jp),U(at,8),U(gg,8))},e.\u0275cmp=Bt({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,n){var i;1&t&&Tr(t8,5),2&t&&Ot(i=It())&&(n._content=i.first)},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,n){1&t&&qs("@transform.start",function(a){return n._animationStarted.next(a)})("@transform.done",function(a){return n._animationEnd.next(a)}),2&t&&(qt("align",null),Qs("@transform",n._animationState),Rt("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.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:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),ve(0,"div",0,1),Ht(2),pe())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),BD=function(){var e=function(){function r(t,n,i,a,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;d(this,r),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new YC,this.backdropClick=new kt,this._destroyed=new Oe,this._doCheckSubject=new Oe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Oe,t&&t.change.pipe(rn(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(rn(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return f(r,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(n){this._autosize=Mt(n)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(n){this._backdropOverride=null==n?null:Mt(n)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var n=this;this._allDrawers.changes.pipe(ua(this._allDrawers),rn(this._destroyed)).subscribe(function(i){n._drawers.reset(i.filter(function(a){return!a._container||a._container===n})),n._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ua(null)).subscribe(function(){n._validateDrawers(),n._drawers.forEach(function(i){n._watchDrawerToggle(i),n._watchDrawerPosition(i),n._watchDrawerMode(i)}),(!n._drawers.length||n._isDrawerOpen(n._start)||n._isDrawerOpen(n._end))&&n.updateContentMargins(),n._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){n._doCheckSubject.pipe(Zp(10),rn(n._destroyed)).subscribe(function(){return n.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(n){return n.open()})}},{key:"close",value:function(){this._drawers.forEach(function(n){return n.close()})}},{key:"updateContentMargins",value:function(){var n=this,i=0,a=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var o=this._left._getWidth();i+=o,a-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)a+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();a+=s,i-=s}a=a||null,((i=i||null)!==this._contentMargins.left||a!==this._contentMargins.right)&&(this._contentMargins={left:i,right:a},this._ngZone.run(function(){return n._contentMarginChanges.next(n._contentMargins)}))}},{key:"ngDoCheck",value:function(){var n=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return n._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(n){var i=this;n._animationStarted.pipe(fn(function(a){return a.fromState!==a.toState}),rn(this._drawers.changes)).subscribe(function(a){"open-instant"!==a.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(rn(this._drawers.changes)).subscribe(function(){return i._setContainerClass(n.opened)})}},{key:"_watchDrawerPosition",value:function(n){var i=this;!n||n.onPositionChanged.pipe(rn(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(n){var i=this;n&&n._modeChanged.pipe(rn(Qa(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(n){var i=this._element.nativeElement.classList,a="mat-drawer-container-has-open";n?i.add(a):i.remove(a)}},{key:"_validateDrawers",value:function(){var n=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?n._end=i:n._start=i}),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 n=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&n._canHaveBackdrop(i)}).forEach(function(i){return i._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(n){return"side"!==n.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(n){return null!=n&&n.opened}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(sa,8),U(We),U(ot),U(gr),U(eg),U(d8),U(gi,8))},e.\u0275cmp=Bt({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,fd,5),Pn(i,VD,5)),2&t&&(Ot(a=It())&&(n._content=a.first),Ot(a=It())&&(n._allDrawers=a))},viewQuery:function(t,n){var i;1&t&&Tr(fd,5),2&t&&Ot(i=It())&&(n._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,n){2&t&&Rt("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[St([{provide:gg,useExisting:e}])],ngContentSelectors:a8,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,n){1&t&&(ir(i8),Qe(0,n8,1,2,"div",0),Ht(1),Ht(2,1),Qe(3,r8,2,0,"mat-drawer-content",1)),2&t&&(Ae("ngIf",n.hasBackdrop),we(3),Ae("ngIf",!n._content))},directives:[fd,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),HD=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){return d(this,n),t.call(this,i,a,o,s,u)}return f(n)}(fd);return e.\u0275fac=function(t){return new(t||e)(U(gr),U(xt(function(){return UD})),U(We),U(td),U(ot))},e.\u0275cmp=Bt({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[St([{provide:Fu,useExisting:e}]),Me],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),Ht(0))},encapsulation:2,changeDetection:0}),e}(),jD=function(){var e=function(r){p(n,r);var t=g(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return f(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Mt(a)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Du(a)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Du(a)}}]),n}(VD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275cmp=Bt({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,n){2&t&&(qt("align",null),xi("top",n.fixedInViewport?n.fixedTopGap:null,"px")("bottom",n.fixedInViewport?n.fixedBottomGap:null,"px"),Rt("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened)("mat-sidenav-fixed",n.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Me],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),ve(0,"div",0,1),Ht(2),pe())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),UD=function(){var e=function(r){p(n,r);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(BD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ze(e)))(n||e)}}(),e.\u0275cmp=Bt({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,HD,5),Pn(i,jD,5)),2&t&&(Ot(a=It())&&(n._content=a.first),Ot(a=It())&&(n._allDrawers=a))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,n){2&t&&Rt("mat-drawer-container-explicit-backdrop",n._backdropOverride)},exportAs:["matSidenavContainer"],features:[St([{provide:gg,useExisting:e}]),Me],ngContentSelectors:l8,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,n){1&t&&(ir(u8),Qe(0,o8,1,2,"div",0),Ht(1),Ht(2,1),Qe(3,s8,2,0,"mat-sidenav-content",1)),2&t&&(Ae("ngIf",n.hasBackdrop),we(3),Ae("ngIf",!n._content))},directives:[HD,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),GD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[dc,an,nd],nd,an]}),e}();function zD(){for(var e=arguments.length,r=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:en;return function(n){WD(r,function(){for(var i=e.length,a=new Array(i),o=i,s=i,u=function(h){WD(r,function(){var v=In(e[h],r),y=!1;v.subscribe(Gt(n,function(I){a[h]=I,y||(y=!0,s--),s||n.next(t(a.slice()))},function(){--o||n.complete()}))},n)},l=0;l visible",Pi("150ms cubic-bezier(0, 0, 0.2, 1)")),ia("* => void, * => hidden",Pi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ln({opacity:0})))])},E8=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._ngZone=i,l._elementRef=a,l._changeDetectorRef=o,l._platform=s,l.snackBarConfig=u,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new Oe,l._onExit=new Oe,l._onEnter=new Oe,l._animationState="void",l.attachDomPortal=function(c){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(c)},l._live="assertive"!==u.politeness||u.announcementMessage?"off"===u.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return f(n,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var s=a.toState;if(("void"===s&&"void"!==a.fromState||"hidden"===s)&&this._completeExit(),"visible"===s){var u=this._onEnter;this._ngZone.run(function(){u.next(),u.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,o=this.snackBarConfig.panelClass;o&&(Array.isArray(o)?o.forEach(function(s){return a.classList.add(s)}):a.classList.add(o)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var o=a._elementRef.nativeElement.querySelector("[aria-hidden]"),s=a._elementRef.nativeElement.querySelector("[aria-live]");if(o&&s){var u=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&o.contains(document.activeElement)&&(u=document.activeElement),o.removeAttribute("aria-hidden"),s.appendChild(o),null==u||u.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(U(ot),U(We),U(gr),U(Hn),U(hd))},e.\u0275cmp=Bt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ot(i=It())&&(n._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&qs("@state.done",function(a){return n.onAnimationEnd(a)}),2&t&&Qs("@state",n._animationState)},features:[Me],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(ve(0,"div",0),Qe(1,_8,0,0,"ng-template",1),pe(),Xt(2,"div")),2&t&&(we(2),qt("aria-live",n._live)("role",n._role))},directives:[id],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:[w8.snackBarState]}}),e}(),yg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[vD,rg,dc,qp,an],an]}),e}(),$D=new Fe("mat-snack-bar-default-options",{providedIn:"root",factory:function k8(){return new hd}}),S8=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return f(r,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,i){return this._attach(n,i)}},{key:"openFromTemplate",value:function(n,i){return this._attach(n,i)}},{key:"open",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=Object.assign(Object.assign({},this._defaultConfig),a);return o.data={message:n,action:i},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,i){var o=Wt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:hd,useValue:i}]}),s=new Pu(this.snackBarContainerComponent,i.viewContainerRef,o),u=n.attach(s);return u.instance.snackBarConfig=i,u.instance}},{key:"_attach",value:function(n,i){var a=this,o=Object.assign(Object.assign(Object.assign({},new hd),this._defaultConfig),i),s=this._createOverlay(o),u=this._attachSnackBarContainer(s,o),l=new mg(u,s);if(n instanceof $r){var c=new ng(n,null,{$implicit:o.data,snackBarRef:l});l.instance=u.attachTemplatePortal(c)}else{var h=this._createInjector(o,l),v=new Pu(n,void 0,h),y=u.attachComponentPortal(v);l.instance=y.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(rn(s.detachments())).subscribe(function(I){s.overlayElement.classList.toggle(a.handsetCssClass,I.matches)}),o.announcementMessage&&u._onAnnounce.subscribe(function(){a._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,i){var a=this;n.afterDismissed().subscribe(function(){a._openedSnackBarRef==n&&(a._openedSnackBarRef=null),i.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),i.duration&&i.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(n){var i=new ag;i.direction=n.direction;var a=this._overlay.position().global(),o="rtl"===n.direction,s="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!o||"end"===n.horizontalPosition&&o,u=!s&&"center"!==n.horizontalPosition;return s?a.left("0"):u?a.right("0"):a.centerHorizontally(),"top"===n.verticalPosition?a.top("0"):a.bottom("0"),i.positionStrategy=a,this._overlay.create(i)}},{key:"_createInjector",value:function(n,i){return Wt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:mg,useValue:i},{provide:YD,useValue:n.data}]})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(as),ue(P0),ue(Wt),ue(KD),ue(e,12),ue($D))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),_g=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o,s,u,l){var c;return d(this,n),(c=t.call(this,i,a,o,s,u,l)).simpleSnackBarComponent=C8,c.snackBarContainerComponent=E8,c.handsetCssClass="mat-snack-bar-handset",c}return f(n)}(S8);return e.\u0275fac=function(t){return new(t||e)(ue(as),ue(P0),ue(Wt),ue(KD),ue(e,12),ue($D))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:yg}),e}(),D8=["*",[["mat-toolbar-row"]]],A8=["*","mat-toolbar-row"],x8=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}()),M8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ce({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),T8=function(){var e=function(r){p(n,r);var t=g(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._document=o,s}return f(n,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x8);return e.\u0275fac=function(t){return new(t||e)(U(We),U(Hn),U(at))},e.\u0275cmp=Bt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,M8,5),2&t&&Ot(a=It())&&(n._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&Rt("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Me],ngContentSelectors:A8,decls:2,vars:0,template:function(t,n){1&t&&(ir(D8),Ht(0),Ht(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}(),XD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[an],an]}),e}(),R8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({imports:[[qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg],qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg]}),e}(),vd=B(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ZD(){return Yt(function(e,r){var t=null;e._refCount++;var n=Gt(r,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)t=null;else{var i=e._connection,a=t;t=null,i&&(!a||i===a)&&i.unsubscribe(),r.unsubscribe()}});e.subscribe(n),n.closed||(t=e.connect())})}var O8=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).source=n,a.subjectFactory=i,a._subject=null,a._refCount=0,a._connection=null,fa(n)&&(a.lift=n.lift),a}return f(t,[{key:"_subscribe",value:function(i){return this.getSubject().subscribe(i)}},{key:"getSubject",value:function(){var i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"_teardown",value:function(){this._refCount=0;var i=this._connection;this._subject=this._connection=null,null==i||i.unsubscribe()}},{key:"connect",value:function(){var i=this,a=this._connection;if(!a){a=this._connection=new P;var o=this.getSubject();a.add(this.source.subscribe(Gt(o,void 0,function(){i._teardown(),o.complete()},function(s){i._teardown(),o.error(s)},function(){return i._teardown()}))),a.closed&&(this._connection=null,a=P.EMPTY)}return a}},{key:"refCount",value:function(){return ZD()(this)}}]),t}(lt);function ja(e,r){return Yt(function(t,n){var i=null,a=0,o=!1,s=function(){return o&&!i&&n.complete()};t.subscribe(Gt(n,function(u){null==i||i.unsubscribe();var l=0,c=a++;or(e(u,c)).subscribe(i=Gt(n,function(h){return n.next(r?r(u,h,c,l++):h)},function(){i=null,s()}))},function(){o=!0,s()}))})}function I8(e,r,t,n,i){return function(a,o){var s=t,u=r,l=0;a.subscribe(Gt(o,function(c){var h=l++;u=s?e(u,c,h):(s=!0,c),n&&o.next(u)},i&&function(){s&&o.next(u),o.complete()}))}}function JD(e,r){return Yt(I8(e,r,arguments.length>=2,!0))}function bg(e){return e<=0?function(){return ri}:Yt(function(r,t){var n=[];r.subscribe(Gt(t,function(i){n.push(i),e0&&void 0!==arguments[0]?arguments[0]:F8;return Yt(function(r,t){var n=!1;r.subscribe(Gt(t,function(i){n=!0,t.next(i)},function(){return n?t.complete():t.error(e())}))})}function F8(){return new vd}function tA(e){return Yt(function(r,t){var n=!1;r.subscribe(Gt(t,function(i){n=!0,t.next(i)},function(){n||t.next(e),t.complete()}))})}function ss(e,r){var t=arguments.length>=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,Yn(1),t?tA(r):eA(function(){return new vd}))}}var Bi=f(function e(r,t){d(this,e),this.id=r,this.url=t}),Cg=function(e){p(t,e);var r=g(t);function t(n,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return d(this,t),(a=r.call(this,n,i)).navigationTrigger=o,a.restoredState=s,a}return f(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),Vu=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).urlAfterRedirects=a,o}return f(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Bi),nA=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).reason=a,o}return f(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),L8=function(e){p(t,e);var r=g(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).error=a,o}return f(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Bi),N8=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),V8=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),B8=function(e){p(t,e);var r=g(t);function t(n,i,a,o,s){var u;return d(this,t),(u=r.call(this,n,i)).urlAfterRedirects=a,u.state=o,u.shouldActivate=s,u}return f(t,[{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,")")}}]),t}(Bi),H8=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),j8=function(e){p(t,e);var r=g(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),rA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),iA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),U8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),G8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),z8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),W8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),aA=function(){function e(r,t,n){d(this,e),this.routerEvent=r,this.position=t,this.anchor=n}return f(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),mt="primary",q8=function(){function e(r){d(this,e),this.params=r||{}}return f(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function us(e){return new q8(e)}var oA="ngNavigationCancelingError";function wg(e){var r=Error("NavigationCancelingError: "+e);return r[oA]=!0,r}function Q8(e,r,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(r.hasChildren()||n.length0?e[e.length-1]:null}function jn(e,r){for(var t in e)e.hasOwnProperty(t)&&r(e[t],t)}function _i(e){return Ah(e)?e:Ws(e)?In(Promise.resolve(e)):Xe(e)}var X8={exact:function fA(e,r,t){if(!Ga(e.segments,r.segments)||!pd(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children)if(!e.children[n]||!fA(e.children[n],r.children[n],t))return!1;return!0},subset:hA},cA={exact:function Z8(e,r){return yi(e,r)},subset:function J8(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(function(t){return sA(e[t],r[t])})},ignored:function(){return!0}};function dA(e,r,t){return X8[t.paths](e.root,r.root,t.matrixParams)&&cA[t.queryParams](e.queryParams,r.queryParams)&&!("exact"===t.fragment&&e.fragment!==r.fragment)}function hA(e,r,t){return vA(e,r,r.segments,t)}function vA(e,r,t,n){if(e.segments.length>t.length){var i=e.segments.slice(0,t.length);return!(!Ga(i,t)||r.hasChildren()||!pd(i,t,n))}if(e.segments.length===t.length){if(!Ga(e.segments,t)||!pd(e.segments,t,n))return!1;for(var a in r.children)if(!e.children[a]||!hA(e.children[a],r.children[a],n))return!1;return!0}var o=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!!(Ga(e.segments,o)&&pd(e.segments,o,n)&&e.children[mt])&&vA(e.children[mt],r,s,n)}function pd(e,r,t){return r.every(function(n,i){return cA[t](e[i].parameters,n.parameters)})}var Ua=function(){function e(r,t,n){d(this,e),this.root=r,this.queryParams=t,this.fragment=n}return f(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return nz.serialize(this)}}]),e}(),Ct=function(){function e(r,t){var n=this;d(this,e),this.segments=r,this.children=t,this.parent=null,jn(t,function(i,a){return i.parent=n})}return f(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return gd(this)}}]),e}(),Bu=function(){function e(r,t){d(this,e),this.path=r,this.parameters=t}return f(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=us(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return _A(this)}}]),e}();function Ga(e,r){return e.length===r.length&&e.every(function(t,n){return t.path===r[n].path})}var pA=f(function e(){d(this,e)}),gA=function(){function e(){d(this,e)}return f(e,[{key:"parse",value:function(t){var n=new dz(t);return new Ua(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(Hu(t.root,!0)),i=function az(e){var r=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(i){return"".concat(md(t),"=").concat(md(i))}).join("&"):"".concat(md(t),"=").concat(md(n))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function rz(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(i).concat(a)}}]),e}(),nz=new gA;function gd(e){return e.segments.map(function(r){return _A(r)}).join("/")}function Hu(e,r){if(!e.hasChildren())return gd(e);if(r){var t=e.children[mt]?Hu(e.children[mt],!1):"",n=[];return jn(e.children,function(a,o){o!==mt&&n.push("".concat(o,":").concat(Hu(a,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var i=function tz(e,r){var t=[];return jn(e.children,function(n,i){i===mt&&(t=t.concat(r(n,i)))}),jn(e.children,function(n,i){i!==mt&&(t=t.concat(r(n,i)))}),t}(e,function(a,o){return o===mt?[Hu(e.children[mt],!1)]:["".concat(o,":").concat(Hu(a,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[mt]?"".concat(gd(e),"/").concat(i[0]):"".concat(gd(e),"/(").concat(i.join("//"),")")}function mA(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(e){return mA(e).replace(/%3B/gi,";")}function Eg(e){return mA(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yd(e){return decodeURIComponent(e)}function yA(e){return yd(e.replace(/\+/g,"%20"))}function _A(e){return"".concat(Eg(e.path)).concat(function iz(e){return Object.keys(e).map(function(r){return";".concat(Eg(r),"=").concat(Eg(e[r]))}).join("")}(e.parameters))}var oz=/^[^\/()?;=#]+/;function _d(e){var r=e.match(oz);return r?r[0]:""}var sz=/^[^=?&#]+/,lz=/^[^&#]+/,dz=function(){function e(r){d(this,e),this.url=r,this.remaining=r}return f(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(i[mt]=new Ct(t,n)),i}},{key:"parseSegment",value:function(){var t=_d(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Bu(yd(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=_d(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=_d(this.remaining);a&&this.capture(i=a)}t[yd(n)]=yd(i)}}},{key:"parseQueryParam",value:function(t){var n=function uz(e){var r=e.match(sz);return r?r[0]:""}(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=function cz(e){var r=e.match(lz);return r?r[0]:""}(this.remaining);a&&this.capture(i=a)}var o=yA(n),s=yA(i);if(t.hasOwnProperty(o)){var u=t[o];Array.isArray(u)||(t[o]=u=[u]),u.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=_d(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=mt);var s=this.parseChildren();n[o]=1===Object.keys(s).length?s[mt]:new Ct([],s),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),bA=function(){function e(r){d(this,e),this._root=r}return f(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=kg(t,this._root);return n?n.children.map(function(i){return i.value}):[]}},{key:"firstChild",value:function(t){var n=kg(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Sg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return Sg(t,this._root).map(function(n){return n.value})}}]),e}();function kg(e,r){if(e===r.value)return r;var n,t=z(r.children);try{for(t.s();!(n=t.n()).done;){var a=kg(e,n.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function Sg(e,r){if(e===r.value)return[r];var n,t=z(r.children);try{for(t.s();!(n=t.n()).done;){var a=Sg(e,n.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var Hi=function(){function e(r,t){d(this,e),this.value=r,this.children=t}return f(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ls(e){var r={};return e&&e.children.forEach(function(t){return r[t.value.outlet]=t}),r}var CA=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n)).snapshot=i,Dg(Q(a),n),a}return f(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(bA);function wA(e,r){var t=function fz(e,r){var o=new bd([],{},{},"",{},mt,r,null,e.root,-1,{});return new kA("",new Hi(o,[]))}(e,r),n=new _r([new Bu("",{})]),i=new _r({}),a=new _r({}),o=new _r({}),s=new _r(""),u=new za(n,i,o,s,a,mt,r,t.root);return u.snapshot=t.root,new CA(new Hi(u,[]),t)}var za=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return f(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Ye(function(t){return us(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ye(function(t){return us(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function EA(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==r)for(n=t.length-1;n>=1;){var i=t[n],a=t[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return hz(t.slice(n))}function hz(e){return e.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var bd=function(){function e(r,t,n,i,a,o,s,u,l,c,h){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return f(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=us(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(i){return i.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),kA=function(e){p(t,e);var r=g(t);function t(n,i){var a;return d(this,t),(a=r.call(this,i)).url=n,Dg(Q(a),i),a}return f(t,[{key:"toString",value:function(){return SA(this._root)}}]),t}(bA);function Dg(e,r){r.value._routerState=e,r.children.forEach(function(t){return Dg(e,t)})}function SA(e){var r=e.children.length>0?" { ".concat(e.children.map(SA).join(", ")," } "):"";return"".concat(e.value).concat(r)}function Ag(e){if(e.snapshot){var r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,yi(r.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),r.fragment!==t.fragment&&e.fragment.next(t.fragment),yi(r.params,t.params)||e.params.next(t.params),function Y8(e,r){if(e.length!==r.length)return!1;for(var t=0;ti;){if(a-=i,!(n=n.parent))throw new Error("Invalid number of '../'");i=n.segments.length}return new Tg(n,!1,i-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,e.numberOfDoubleDots)}(a,r,e),s=o.processChildren?wd(o.segmentGroup,o.index,a.commands):xA(o.segmentGroup,o.index,a.commands);return Mg(o.segmentGroup,s,r,n,i)}function Cd(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Uu(e){return"object"==typeof e&&null!=e&&e.outlets}function Mg(e,r,t,n,i){var a={};return n&&jn(n,function(o,s){a[s]=Array.isArray(o)?o.map(function(u){return"".concat(u)}):"".concat(o)}),new Ua(t.root===e?r:DA(t.root,e,r),a,i)}function DA(e,r,t){var n={};return jn(e.children,function(i,a){n[a]=i===r?t:DA(i,r,t)}),new Ct(e.segments,n)}var AA=function(){function e(r,t,n){if(d(this,e),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Cd(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(Uu);if(i&&i!==lA(n))throw new Error("{outlets:{}} has to be the last command")}return f(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Tg=f(function e(r,t,n){d(this,e),this.segmentGroup=r,this.processChildren=t,this.index=n});function xA(e,r,t){if(e||(e=new Ct([],{})),0===e.segments.length&&e.hasChildren())return wd(e,r,t);var n=function wz(e,r,t){for(var n=0,i=r,a={match:!1,pathIndex:0,commandIndex:0};i=t.length)return a;var o=e.segments[i],s=t[n];if(Uu(s))break;var u="".concat(s),l=n0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!TA(u,l,o))return a;n+=2}else{if(!TA(u,{},o))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},FA):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Q8)(t,e,r);if(!a)return Object.assign({},FA);var o={};jn(a.posParams,function(u,l){o[l]=u.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(n=a.posParams)&&void 0!==n?n:{}}}function kd(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Vz(e,t,n)){var a=new Ct(r,Nz(e,r,n,new Ct(t,e.children)));return a._sourceSegment=e,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Bz(e,t,n)){var o=new Ct(e.segments,Lz(e,r,t,n,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new Ct(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function Lz(e,r,t,n,i,a){var u,o={},s=z(n);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(Sd(e,t,l)&&!i[Lr(l)]){var c=new Ct([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:r.length,o[Lr(l)]=c}}}catch(h){s.e(h)}finally{s.f()}return Object.assign(Object.assign({},i),o)}function Nz(e,r,t,n){var i={};i[mt]=n,n._sourceSegment=e,n._segmentIndexShift=r.length;var o,a=z(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Lr(s)!==mt){var u=new Ct([],{});u._sourceSegment=e,u._segmentIndexShift=r.length,i[Lr(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}function Vz(e,r,t){return t.some(function(n){return Sd(e,r,n)&&Lr(n)!==mt})}function Bz(e,r,t){return t.some(function(n){return Sd(e,r,n)})}function Sd(e,r,t){return(!(e.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function PA(e,r,t,n){return!!(Lr(e)===n||n!==mt&&Sd(r,t,e))&&("**"===e.path||Ed(r,e,t).matched)}function LA(e,r,t){return 0===r.length&&!e.children[t]}var qu=f(function e(r){d(this,e),this.segmentGroup=r||null}),NA=f(function e(r){d(this,e),this.urlTree=r});function Dd(e){return mi(new qu(e))}function VA(e){return mi(new NA(e))}function Hz(e){return mi(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}var Gz=function(){function e(r,t,n,i,a){d(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(Mi)}return f(e,[{key:"apply",value:function(){var t=this,n=kd(this.urlTree.root,[],[],this.config).segmentGroup,i=new Ct(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,i,mt).pipe(Ye(function(s){return t.createUrlTree(Pg(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(vn(function(s){if(s instanceof NA)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof qu?t.noMatchError(s):s}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,mt).pipe(Ye(function(o){return n.createUrlTree(Pg(o),t.queryParams,t.fragment)})).pipe(vn(function(o){throw o instanceof qu?n.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,i){var a=t.segments.length>0?new Ct([],w({},mt,t)):t;return new Ua(a,n,i)}},{key:"expandSegmentGroup",value:function(t,n,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,n,i).pipe(Ye(function(o){return new Ct([],o)})):this.expandSegment(t,i,n,i.segments,a,!0)}},{key:"expandChildren",value:function(t,n,i){for(var a=this,o=[],s=0,u=Object.keys(i.children);s=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,bg(1),t?tA(r):eA(function(){return new vd}))}}())}},{key:"expandSegment",value:function(t,n,i,a,o,s){var u=this;return In(i).pipe(qo(function(l){return u.expandSegmentAgainstRoute(t,n,i,l,a,o,s).pipe(vn(function(h){if(h instanceof qu)return Xe(null);throw h}))}),ss(function(l){return!!l}),vn(function(l,c){if(l instanceof vd||"EmptyError"===l.name){if(LA(n,a,o))return Xe(new Ct([],{}));throw new qu(n)}throw l}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,i,a,o,s,u){return PA(a,n,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,n,a,o,s):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s):Dd(n):Dd(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,i,a){var o=this,s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VA(s):this.lineralizeSegments(i,s).pipe(Sn(function(u){var l=new Ct(u,{});return o.expandSegment(t,l,n,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){var u=this,l=Ed(n,a,o),h=l.consumedSegments,v=l.remainingSegments,y=l.positionalParamSegments;if(!l.matched)return Dd(n);var I=this.applyRedirectCommands(h,a.redirectTo,y);return a.redirectTo.startsWith("/")?VA(I):this.lineralizeSegments(a,I).pipe(Sn(function(J){return u.expandSegment(t,n,i,J.concat(v),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,i,a,o){var s=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?Xe(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(Ye(function(I){return i._loadedConfig=I,new Ct(a,{})})):Xe(new Ct(a,{}));var l=Ed(n,i,a),h=l.consumedSegments,v=l.remainingSegments;return l.matched?this.getChildConfig(t,i,a).pipe(Sn(function(I){var J=I.module,re=I.routes,se=kd(n,h,v,re),te=se.segmentGroup,me=se.slicedSegments,ye=new Ct(te.segments,te.children);if(0===me.length&&ye.hasChildren())return s.expandChildren(J,re,ye).pipe(Ye(function(yt){return new Ct(h,yt)}));if(0===re.length&&0===me.length)return Xe(new Ct(h,{}));var Re=Lr(i)===o;return s.expandSegment(J,ye,re,me,Re?mt:o,!0).pipe(Ye(function(yt){return new Ct(h.concat(yt.segments),yt.children)}))})):Dd(n)}},{key:"getChildConfig",value:function(t,n,i){var a=this;return n.children?Xe(new Og(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?Xe(n._loadedConfig):this.runCanLoadGuards(t.injector,n,i).pipe(Sn(function(o){return o?a.configLoader.load(t.injector,n).pipe(Ye(function(s){return n._loadedConfig=s,s})):function jz(e){return mi(wg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}(n)})):Xe(new Og([],t))}},{key:"runCanLoadGuards",value:function(t,n,i){var a=this,o=n.canLoad;if(!o||0===o.length)return Xe(!0);var s=o.map(function(u){var c,l=t.get(u);if(function xz(e){return e&&la(e.canLoad)}(l))c=l.canLoad(n,i);else{if(!la(l))throw new Error("Invalid CanLoad guard");c=l(n,i)}return _i(c)});return Xe(s).pipe(zu(),Bn(function(u){if(Wa(u)){var l=wg('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw l.url=u,l}}),Ye(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(t,n){for(var i=[],a=n.root;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return Xe(i);if(a.numberOfChildren>1||!a.children[mt])return Hz(t.redirectTo);a=a.children[mt]}}},{key:"applyRedirectCommands",value:function(t,n,i){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,i,a){var o=this.createSegmentGroup(t,n.root,i,a);return new Ua(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var i={};return jn(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);i[o]=n[u]}else i[o]=a}),i}},{key:"createSegmentGroup",value:function(t,n,i,a){var o=this,s=this.createSegments(t,n.segments,i,a),u={};return jn(n.children,function(l,c){u[c]=o.createSegmentGroup(t,l,i,a)}),new Ct(s,u)}},{key:"createSegments",value:function(t,n,i,a){var o=this;return n.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,i)})}},{key:"findPosParam",value:function(t,n,i){var a=i[n.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return a}},{key:"findOrReturn",value:function(t,n){var o,i=0,a=z(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return n.splice(i),s;i++}}catch(u){a.e(u)}finally{a.f()}return t}}]),e}();function Pg(e){for(var r={},t=0,n=Object.keys(e.children);t0||o.hasChildren())&&(r[i]=o)}return function zz(e){if(1===e.numberOfChildren&&e.children[mt]){var r=e.children[mt];return new Ct(e.segments.concat(r.segments),r.children)}return e}(new Ct(e.segments,r))}var BA=f(function e(r){d(this,e),this.path=r,this.route=this.path[this.path.length-1]}),Ad=f(function e(r,t){d(this,e),this.component=r,this.route=t});function qz(e,r,t){var n=e._root;return Ku(n,r?r._root:null,t,[n.value])}function xd(e,r,t){var n=function Qz(e){if(!e)return null;for(var r=e.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(n?n.module.injector:t).get(e)}function Ku(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=ls(r);return e.children.forEach(function(o){Yz(o,a[o.value.outlet],t,n.concat([o.value]),i),delete a[o.value.outlet]}),jn(a,function(o,s){return Qu(o,t.getContext(s),i)}),i}function Yz(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=$z(o,a,a.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new BA(n)):(a.data=o.data,a._resolvedData=o._resolvedData),Ku(e,r,a.component?s?s.children:null:t,n,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ad(s.outlet.component,o))}else o&&Qu(r,s,i),i.canActivateChecks.push(new BA(n)),Ku(e,null,a.component?s?s.children:null:t,n,i);return i}function $z(e,r,t){if("function"==typeof t)return t(e,r);switch(t){case"pathParamsChange":return!Ga(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Ga(e.url,r.url)||!yi(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xg(e,r)||!yi(e.queryParams,r.queryParams);default:return!xg(e,r)}}function Qu(e,r,t){var n=ls(e),i=e.value;jn(n,function(a,o){Qu(a,i.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new Ad(i.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,i))}var a6=f(function e(){d(this,e)});function HA(e){return new lt(function(r){return r.error(e)})}var s6=function(){function e(r,t,n,i,a,o){d(this,e),this.rootComponentType=r,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return f(e,[{key:"recognize",value:function(){var t=kd(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,mt);if(null===n)return null;var i=new bd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},mt,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Hi(i,n),o=new kA(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var n=this,i=t.value,a=EA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(a.params),i.data=Object.freeze(a.data),t.children.forEach(function(o){return n.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,i)}},{key:"processChildren",value:function(t,n){for(var i=[],a=0,o=Object.keys(n.children);a0?lA(i).parameters:{};o=new bd(i,l,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+i.length,WA(t))}else{var c=Ed(n,t,i);if(!c.matched)return null;u=c.remainingSegments,o=new bd(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+s.length,WA(t))}var h=function l6(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),v=kd(n,s,u,h.filter(function(te){return void 0===te.redirectTo}),this.relativeLinkResolution),y=v.segmentGroup,I=v.slicedSegments;if(0===I.length&&y.hasChildren()){var J=this.processChildren(h,y);return null===J?null:[new Hi(o,J)]}if(0===h.length&&0===I.length)return[new Hi(o,[])];var re=Lr(t)===a,se=this.processSegment(h,y,I,re?mt:a);return null===se?null:[new Hi(o,se)]}}]),e}();function jA(e){var i,r=[],t=new Set,n=z(e);try{var a=function(){var v=i.value;if(!function c6(e){var r=e.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(v))return r.push(v),"continue";var I,y=r.find(function(J){return v.value.routeConfig===J.value.routeConfig});void 0!==y?((I=y.children).push.apply(I,R(v.children)),t.add(y)):r.push(v)};for(n.s();!(i=n.n()).done;)a()}catch(h){n.e(h)}finally{n.f()}var u,s=z(t);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=jA(l.children);r.push(new Hi(l.value,c))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!t.has(h)})}function UA(e){for(var r=e;r._sourceSegment;)r=r._sourceSegment;return r}function GA(e){for(var r=e,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function zA(e){return e.data||{}}function WA(e){return e.resolve||{}}function qA(e){return[].concat(R(Object.keys(e)),R(Object.getOwnPropertySymbols(e)))}function Lg(e){return ja(function(r){var t=e(r);return t?In(t).pipe(Ye(function(){return r})):Xe(r)})}var g6=f(function e(){d(this,e)}),m6=function(){function e(){d(this,e)}return f(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}(),y6=function(e){p(t,e);var r=g(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t)}(m6),Ng=new Fe("ROUTES"),KA=function(){function e(r,t,n,i){d(this,e),this.injector=r,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return f(e,[{key:"load",value:function(t,n){var i=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var o=this.loadModuleFactory(n.loadChildren).pipe(Ye(function(s){i.onLoadEndListener&&i.onLoadEndListener(n);var u=s.create(t);return new Og(uA(u.injector.get(Ng,void 0,et.Self|et.Optional)).map(Fg),u)}),vn(function(s){throw n._loader$=void 0,s}));return n._loader$=new O8(o,function(){return new Oe}).pipe(ZD()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return _i(t()).pipe(Sn(function(i){return i instanceof HC?Xe(i):In(n.compiler.compileModuleAsync(i))}))}}]),e}(),_6=f(function e(){d(this,e)}),b6=function(){function e(){d(this,e)}return f(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function C6(e){throw e}function w6(e,r,t){return r.parse("/")}function QA(e,r){return Xe(null)}var E6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},k6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Tn=function(){var e=function(){function r(t,n,i,a,o,s,u){var l=this;d(this,r),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Oe,this.errorHandler=C6,this.malformedUriErrorHandler=w6,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:QA,afterPreactivation:QA},this.urlHandlingStrategy=new b6,this.routeReuseStrategy=new y6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Mi),this.console=o.get(ww);var v=o.get(ot);this.isNgZoneEnabled=v instanceof ot&&ot.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function $8(){return new Ua(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new KA(o,s,function(I){return l.triggerEvent(new rA(I))},function(I){return l.triggerEvent(new iA(I))}),this.routerState=wA(this.currentUrlTree,this.rootComponentType),this.transitions=new _r({id:0,targetPageId: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 f(r,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var i=this,a=this.events;return n.pipe(fn(function(o){return 0!==o.id}),Ye(function(o){return Object.assign(Object.assign({},o),{extractedUrl:i.urlHandlingStrategy.extract(o.rawUrl)})}),ja(function(o){var s=!1,u=!1;return Xe(o).pipe(Bn(function(l){i.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ja(function(l){var c=i.browserUrlTree.toString(),h=!i.navigated||l.extractedUrl.toString()!==c||c!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Md(l.source)&&(i.browserUrlTree=l.extractedUrl),Xe(l).pipe(ja(function(xe){var Re=i.transitions.getValue();return a.next(new Cg(xe.id,i.serializeUrl(xe.extractedUrl),xe.source,xe.restoredState)),Re!==i.transitions.getValue()?ri:Promise.resolve(xe)}),function Wz(e,r,t,n){return ja(function(i){return function Uz(e,r,t,n,i){return new Gz(e,r,t,n,i).apply()}(e,r,t,i.extractedUrl,n).pipe(Ye(function(a){return Object.assign(Object.assign({},i),{urlAfterRedirects:a})}))})}(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),Bn(function(xe){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:xe.urlAfterRedirects})}),function d6(e,r,t,n,i){return Sn(function(a){return function o6(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new s6(e,r,t,n,i,a).recognize();return null===o?HA(new a6):Xe(o)}catch(s){return HA(s)}}(e,r,a.urlAfterRedirects,t(a.urlAfterRedirects),n,i).pipe(Ye(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(i.rootComponentType,i.config,function(xe){return i.serializeUrl(xe)},i.paramsInheritanceStrategy,i.relativeLinkResolution),Bn(function(xe){if("eager"===i.urlUpdateStrategy){if(!xe.extras.skipLocationChange){var Re=i.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);i.setBrowserUrl(Re,xe)}i.browserUrlTree=xe.urlAfterRedirects}var Ge=new N8(xe.id,i.serializeUrl(xe.extractedUrl),i.serializeUrl(xe.urlAfterRedirects),xe.targetSnapshot);a.next(Ge)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var J=l.extractedUrl,re=l.source,se=l.restoredState,te=l.extras,me=new Cg(l.id,i.serializeUrl(J),re,se);a.next(me);var ye=wA(J,i.rootComponentType).snapshot;return Xe(Object.assign(Object.assign({},l),{targetSnapshot:ye,urlAfterRedirects:J,extras:Object.assign(Object.assign({},te),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=l.rawUrl,l.resolve(null),ri}),Lg(function(l){var I=l.extras;return i.hooks.beforePreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!I.skipLocationChange,replaceUrl:!!I.replaceUrl})}),Bn(function(l){var c=new V8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);i.triggerEvent(c)}),Ye(function(l){return Object.assign(Object.assign({},l),{guards:qz(l.targetSnapshot,l.currentSnapshot,i.rootContexts)})}),function Xz(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Xe(Object.assign(Object.assign({},t),{guardsResult:!0})):function Zz(e,r,t,n){return In(e).pipe(Sn(function(i){return function i6(e,r,t,n,i){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return Xe(!0);var o=a.map(function(s){var l,u=xd(s,r,i);if(function Rz(e){return e&&la(e.canDeactivate)}(u))l=_i(u.canDeactivate(e,r,t,n));else{if(!la(u))throw new Error("Invalid CanDeactivate guard");l=_i(u(e,r,t,n))}return l.pipe(ss())});return Xe(o).pipe(zu())}(i.component,i.route,t,r,n)}),ss(function(i){return!0!==i},!0))}(s,n,i,e).pipe(Sn(function(u){return u&&function Az(e){return"boolean"==typeof e}(u)?function Jz(e,r,t,n){return In(r).pipe(qo(function(i){return ad(function t6(e,r){return null!==e&&r&&r(new U8(e)),Xe(!0)}(i.route.parent,n),function e6(e,r){return null!==e&&r&&r(new z8(e)),Xe(!0)}(i.route,n),function r6(e,r,t){var n=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(function(o){return function Kz(e){var r=e.routeConfig?e.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:e,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=i.map(function(o){return sg(function(){var s=o.guards.map(function(u){var c,l=xd(u,o.node,t);if(function Tz(e){return e&&la(e.canActivateChild)}(l))c=_i(l.canActivateChild(n,e));else{if(!la(l))throw new Error("Invalid CanActivateChild guard");c=_i(l(n,e))}return c.pipe(ss())});return Xe(s).pipe(zu())})});return Xe(a).pipe(zu())}(e,i.path,t),function n6(e,r,t){var n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||0===n.length)return Xe(!0);var i=n.map(function(a){return sg(function(){var s,o=xd(a,r,t);if(function Mz(e){return e&&la(e.canActivate)}(o))s=_i(o.canActivate(r,e));else{if(!la(o))throw new Error("Invalid CanActivate guard");s=_i(o(r,e))}return s.pipe(ss())})});return Xe(i).pipe(zu())}(e,i.route,t))}),ss(function(i){return!0!==i},!0))}(n,o,e,r):Xe(u)}),Ye(function(u){return Object.assign(Object.assign({},t),{guardsResult:u})}))})}(i.ngModule.injector,function(l){return i.triggerEvent(l)}),Bn(function(l){if(Wa(l.guardsResult)){var c=wg('Redirecting to "'.concat(i.serializeUrl(l.guardsResult),'"'));throw c.url=l.guardsResult,c}var h=new B8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);i.triggerEvent(h)}),fn(function(l){return!!l.guardsResult||(i.restoreHistory(l),i.cancelNavigationTransition(l,""),!1)}),Lg(function(l){if(l.guards.canActivateChecks.length)return Xe(l).pipe(Bn(function(c){var h=new H8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}),ja(function(c){var h=!1;return Xe(c).pipe(function f6(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Xe(t);var a=0;return In(i).pipe(qo(function(o){return function h6(e,r,t,n){return function v6(e,r,t,n){var i=qA(e);if(0===i.length)return Xe({});var a={};return In(i).pipe(Sn(function(o){return function p6(e,r,t,n){var i=xd(e,r,n);return _i(i.resolve?i.resolve(r,t):i(r,t))}(e[o],r,t,n).pipe(Bn(function(s){a[o]=s}))}),bg(1),Sn(function(){return qA(a).length===i.length?Xe(a):ri}))}(e._resolve,e,r,n).pipe(Ye(function(a){return e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),EA(e,t).resolve),null}))}(o.route,n,e,r)}),Bn(function(){return a++}),bg(1),Sn(function(o){return a===i.length?Xe(t):ri}))})}(i.paramsInheritanceStrategy,i.ngModule.injector),Bn({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(c),i.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),Bn(function(c){var h=new j8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}))}),Lg(function(l){var I=l.extras;return i.hooks.afterPreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!I.skipLocationChange,replaceUrl:!!I.replaceUrl})}),Ye(function(l){var c=function vz(e,r,t){var n=ju(e,r._root,t?t._root:void 0);return new CA(n,r)}(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:c})}),Bn(function(l){i.currentUrlTree=l.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),i.routerState=l.targetRouterState,"deferred"===i.urlUpdateStrategy&&(l.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,l),i.browserUrlTree=l.urlAfterRedirects)}),function(r,t,n){return Ye(function(i){return new Sz(t,i.targetRouterState,i.currentRouterState,n).activate(r),i})}(i.rootContexts,i.routeReuseStrategy,function(l){return i.triggerEvent(l)}),Bn({next:function(){s=!0},complete:function(){s=!0}}),wD(function(){var l;if(!s&&!u){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(o,c)}(null===(l=i.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(i.currentNavigation=null)}),vn(function(l){if(u=!0,function K8(e){return e&&e[oA]}(l)){var c=Wa(l.url);c||(i.navigated=!0,i.restoreHistory(o,!0));var h=new nA(o.id,i.serializeUrl(o.extractedUrl),l.message);a.next(h),c?setTimeout(function(){var y=i.urlHandlingStrategy.merge(l.url,i.rawUrlTree),I={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Md(o.source)};i.scheduleNavigation(y,"imperative",null,I,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{i.restoreHistory(o,!0);var v=new L8(o.id,i.serializeUrl(o.extractedUrl),l);a.next(v);try{o.resolve(i.errorHandler(l))}catch(y){o.reject(y)}}return ri}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var a="popstate"===i.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},u=(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null;if(u){var l=Object.assign({},u);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}var c=n.parseUrl(i.url);n.scheduleNavigation(c,a,u,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){OA(n),this.config=n.map(Fg),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.relativeTo,o=i.queryParams,s=i.fragment,u=i.queryParamsHandling,l=i.preserveFragment,c=a||this.routerState.root,h=l?this.currentUrlTree.fragment:s,v=null;switch(u){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}return null!==v&&(v=this.removeEmptyProps(v)),mz(c,this.currentUrlTree,n,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Wa(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}},{key:"navigate",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return S6(n),this.navigateByUrl(this.createUrlTree(n,i),i)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}},{key:"isActive",value:function(n,i){var a;if(a=!0===i?Object.assign({},E6):!1===i?Object.assign({},k6):i,Wa(n))return dA(this.currentUrlTree,n,a);var o=this.parseUrl(n);return dA(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(i,a){var o=n[a];return null!=o&&(i[a]=o),i},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(i){n.navigated=!0,n.lastSuccessfulId=i.id,n.currentPageId=i.targetPageId,n.events.next(new Vu(i.id,n.serializeUrl(i.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,i.resolve(!0)},function(i){n.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(n,i,a,o,s){var u,l,c;if(this.disposed)return Promise.resolve(!1);var re,se,te,h=this.transitions.value,v=Md(i)&&h&&!Md(h.source),y=h.rawUrl.toString()===n.toString(),I=h.id===(null===(u=this.currentNavigation)||void 0===u?void 0:u.id);if(v&&y&&I)return Promise.resolve(!0);s?(re=s.resolve,se=s.reject,te=s.promise):te=new Promise(function(Re,Ge){re=Re,se=Ge});var ye,me=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),ye=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):ye=0,this.setTransition({id:me,targetPageId:ye,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:re,reject:se,promise:te,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),te.catch(function(Re){return Promise.reject(Re)})}},{key:"setBrowserUrl",value:function(n,i){var a=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(n){var a,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-n.targetPageId,u="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);u&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,i){var a=new nA(n.id,this.serializeUrl(n.extractedUrl),i);this.triggerEvent(a),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":i}:{navigationId:n}}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function S6(e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};d(this,r),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 f(r,[{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 n=this;return this.router.events.subscribe(function(i){i instanceof Cg?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=i.navigationTrigger,n.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Vu&&(n.lastId=i.id,n.scheduleScrollEvent(i,n.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(i){i instanceof aA&&(i.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,i){this.router.triggerEvent(new aA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),qa=new Fe("ROUTER_CONFIGURATION"),ZA=new Fe("ROUTER_FORROOT_GUARD"),M6=[Aa,{provide:pA,useClass:gA},{provide:Tn,useFactory:function P6(e,r,t,n,i,a){var o=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,l=new Tn(null,e,r,t,n,i,uA(a));return s&&(l.urlHandlingStrategy=s),u&&(l.routeReuseStrategy=u),L6(o,l),o.enableTracing&&l.events.subscribe(function(c){var h,v;null===(h=console.group)||void 0===h||h.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(v=console.groupEnd)||void 0===v||v.call(console)}),l},deps:[pA,Wu,Aa,Wt,Ew,Ng,qa,[_6,new Gr],[g6,new Gr]]},Wu,{provide:za,useFactory:function N6(e){return e.routerState.root},deps:[Tn]},XA,$A,x6,{provide:qa,useValue:{enableTracing:!1}}];function T6(){return new xw("Router",Tn)}var R6=function(){var e=function(){function r(t,n){d(this,r)}return f(r,null,[{key:"forRoot",value:function(n,i){return{ngModule:r,providers:[M6,JA(n),{provide:ZA,useFactory:F6,deps:[[Tn,new Gr,new fo]]},{provide:qa,useValue:i||{}},{provide:Ho,useFactory:I6,deps:[Da,[new Sl(fv),new Gr],qa]},{provide:Bg,useFactory:O6,deps:[Tn,MN,qa]},{provide:YA,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:$A},{provide:xw,multi:!0,useFactory:T6},[Hg,{provide:$h,multi:!0,useFactory:V6,deps:[Hg]},{provide:ex,useFactory:B6,deps:[Hg]},{provide:Jh,multi:!0,useExisting:ex}]]}}},{key:"forChild",value:function(n){return{ngModule:r,providers:[JA(n)]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(ZA,8),ue(Tn,8))},e.\u0275mod=vt({type:e}),e.\u0275inj=ht({}),e}();function O6(e,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new Bg(e,r,t)}function I6(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new vL(e,r):new Qw(e,r)}function F6(e){return"guarded"}function JA(e){return[{provide:UM,multi:!0,useValue:e},{provide:Ng,multi:!0,useValue:e}]}function L6(e,r){e.errorHandler&&(r.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(r.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(r.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(r.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(r.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(r.canceledNavigationResolution=e.canceledNavigationResolution)}var Hg=function(){var e=function(){function r(t){d(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Oe}return f(r,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(dL,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(l){return a=l}),s=n.injector.get(Tn),u=n.injector.get(qa);return"disabled"===u.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===u.initialNavigation||"enabledBlocking"===u.initialNavigation?(s.hooks.afterPreactivation=function(){return n.initNavigation?Xe(null):(n.initNavigation=!0,a(!0),n.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(n){var i=this.injector.get(qa),a=this.injector.get(XA),o=this.injector.get(Bg),s=this.injector.get(Tn),u=this.injector.get(Zl);n===u.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Wt))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function V6(e){return e.appInitializer.bind(e)}function B6(e){return e.bootstrapListener.bind(e)}var ex=new Fe("Router Initializer"),bi=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.router=n,this.urlLogIn="api-logIn",this.urlLogOut="api-logOut",this.reqIsLogged()}return f(r,[{key:"logIn",value:function(n,i){var a=this;return console.log("Login service started..."),this.http.get(this.urlLogIn,{headers:{Authorization:"Basic "+j6(n+":"+i),"X-Requested-With":"XMLHttpRequest"}}).pipe(Ye(function(o){return a.processLogInResponse(o),a.user}))}},{key:"logOut",value:function(){var n=this;return console.log("Logging out..."),this.http.get(this.urlLogOut).pipe(Ye(function(i){return console.log("Logout succesful!"),n.user=null,n.role=null,n.token=null,localStorage.removeItem("login"),localStorage.removeItem("rol"),n.router.navigate([""]),i}),vn(function(i){return mi(i)}))}},{key:"directLogOut",value:function(){this.logOut().subscribe(function(n){},function(n){return console.log("Error when trying to log out: "+n)})}},{key:"processLogInResponse",value:function(n){console.log("Login succesful processing..."),this.user=n,localStorage.setItem("login","OPENVIDUAPP"),-1!==this.user.roles.indexOf("ROLE_TEACHER")&&(this.role="ROLE_TEACHER",localStorage.setItem("rol","ROLE_TEACHER")),-1!==this.user.roles.indexOf("ROLE_STUDENT")&&(this.role="ROLE_STUDENT",localStorage.setItem("rol","ROLE_STUDENT"))}},{key:"reqIsLogged",value:function(){var n=this;console.log("ReqIsLogged called"),this.http.get(this.urlLogIn,{headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(Ye(function(i){return n.processLogInResponse(i)}),vn(function(i){if(401!==i.status)return console.error("Error when asking if logged: "+JSON.stringify(i)),n.logOut(),mi(i)}))}},{key:"checkCredentials",value:function(){this.isLoggedIn()||this.logOut()}},{key:"isLoggedIn",value:function(){return null!=this.user&&void 0!==this.user}},{key:"getCurrentUser",value:function(){return this.user}},{key:"isTeacher",value:function(){return-1!==this.user.roles.indexOf("ROLE_TEACHER")&&"ROLE_TEACHER"===localStorage.getItem("rol")}},{key:"isStudent",value:function(){return-1!==this.user.roles.indexOf("ROLE_STUDENT")&&"ROLE_STUDENT"===localStorage.getItem("rol")}},{key:"updateUserLessons",value:function(n){this.getCurrentUser().lessons=n}},{key:"connectionBelongsToTeacher",value:function(n){return n.data.indexOf("teacher@gmail.com")>-1}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ra),ue(Tn))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function j6(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(r,t){return String.fromCharCode("0x"+t)}))}var Yu=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"canActivate",value:function(){return!!(localStorage.getItem("login")&&localStorage.getItem("rol")&&this.authenticationService.isLoggedIn())||(this.router.navigate([""]),!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Tn),ue(bi))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),jg=f(function e(r){d(this,e),this.title=r,this.attenders=[]}),U6=function(){var e=function(){function r(){d(this,r),this.quality="medium",this.joinWithVideo=!0,this.joinWithAudio=!0}return f(r,[{key:"joinSession",value:function(){var n={publishAudio:!!this.joinWithAudio,publishVideo:!!this.joinWithVideo,resolution:this.getResolution()};this.myReference.close(n)}},{key:"getResolution",value:function(){var n;switch(this.quality){case"low":n="320x240";break;case"medium":default:n="640x480";break;case"high":n="1280x720";break;case"veryhigh":n="1920x1080"}return n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Bt({type:e,selectors:[["app-join-session-dialog"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["dialogForm",""],["id","quality-div"],["name","quality","id","quality",3,"ngModel","ngModelChange"],["value","low","title","320x240"],["value","medium","title","640x480"],["value","high","title","1280x720"],["value","veryhigh","title","1920x1080"],["id","join-div"],["name","joinWithVideo","id","joinWithVideo",3,"ngModel","ngModelChange"],["name","joinWithAudio",3,"ngModel","ngModelChange"],["mat-button","","mat-dialog-close","","type","button"],["mat-button","","id","join-btn","type","submit"]],template:function(t,n){1&t&&(ve(0,"div")(1,"h1",0),Te(2," Video options "),pe(),ve(3,"form",1,2),Be("ngSubmit",function(){return n.joinSession()}),ve(5,"mat-dialog-content")(6,"div",3)(7,"h5"),Te(8,"Quality"),pe(),ve(9,"mat-radio-group",4),Be("ngModelChange",function(a){return n.quality=a}),ve(10,"mat-radio-button",5),Te(11,"Low"),pe(),ve(12,"mat-radio-button",6),Te(13,"Medium"),pe(),ve(14,"mat-radio-button",7),Te(15,"High"),pe(),ve(16,"mat-radio-button",8),Te(17,"Very high"),pe()()(),ve(18,"div",9)(19,"h5"),Te(20,"Enter with active..."),pe(),ve(21,"mat-checkbox",10),Be("ngModelChange",function(a){return n.joinWithVideo=a}),Te(22,"Video"),pe(),ve(23,"mat-checkbox",11),Be("ngModelChange",function(a){return n.joinWithAudio=a}),Te(24,"Audio"),pe()()(),ve(25,"mat-dialog-actions")(26,"button",12),Te(27,"CANCEL"),pe(),ve(28,"button",13),Te(29,"JOIN"),pe()()()()),2&t&&(we(9),Ae("ngModel",n.quality),we(12),Ae("ngModel",n.joinWithVideo),we(2),Ae("ngModel",n.joinWithAudio))},directives:[e5,mu,fu,ra,t5,vg,du,zo,pg,Z0,n5,rs,JG],styles:["#quality-div[_ngcontent-%COMP%]{margin-top:20px}#join-div[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px}#quality-tag[_ngcontent-%COMP%]{display:block}h5[_ngcontent-%COMP%]{margin-bottom:10px;text-align:left}#joinWithVideo[_ngcontent-%COMP%]{margin-right:50px}mat-dialog-actions[_ngcontent-%COMP%]{display:block}#join-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),Ug=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-lessons"}return f(r,[{key:"getLessons",value:function(n){var i=this;return this.http.get(this.url+"/user/"+n.id,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"getLesson",value:function(n){var i=this;return this.http.get(this.url+"/lesson/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"newLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/new",a,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Ye(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"editLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"deleteLesson",value:function(n){var i=this;return this.http.delete(this.url+"/delete/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"addLessonAttenders",value:function(n,i){var a=this,o=JSON.stringify(i);return this.http.put(this.url+"/edit/add-attenders/lesson/"+n,o,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(s){return s}),vn(function(s){return a.handleError(s)}))}},{key:"deleteLessonAttenders",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit/delete-attenders",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Ye(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"obtainLocalLesson",value:function(n){return this.authenticationService.getCurrentUser().lessons.find(function(i){return i.id===n})}},{key:"handleError",value:function(n){return console.error(n),mi("Server error ("+n.status+"): "+n.text())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ra),ue(bi))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Gg=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-sessions"}return f(r,[{key:"createSession",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/create-session",a).pipe(Ye(function(o){}),vn(function(o){return i.handleError(o)}))}},{key:"generateToken",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/generate-token",a,{headers:{"Content-Type":"application/json"}}).pipe(Ye(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"removeUser",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/remove-user",a,{headers:{"Content-Type":"application/json"}}).pipe(Ye(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"handleError",value:function(n){return console.error(n),mi(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ra),ue(bi))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function G6(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",3),Be("click",function(){return gt(t),He().closeAlert()}),Te(1,"clear"),pe()}}var zg=function(){var e=function(){function r(){d(this,r),this.eventShowable=new kt}return f(r,[{key:"closeAlert",value:function(){this.eventShowable.emit(!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Bt({type:e,selectors:[["app-error-message"]],inputs:{errorTitle:"errorTitle",errorContent:"errorContent",customClass:"customClass",closable:"closable",timeable:"timeable"},outputs:{eventShowable:"eventShowable"},decls:5,vars:4,consts:[[3,"ngClass"],[3,"click",4,"ngIf"],[3,"innerHTML"],[3,"click"]],template:function(t,n){1&t&&(ve(0,"mat-card",0),Qe(1,G6,2,0,"mat-icon",1),ve(2,"mat-card-title"),Te(3),pe(),Xt(4,"mat-card-subtitle",2),pe()),2&t&&(Ae("ngClass",n.customClass),we(1),Ae("ngIf",n.closable),we(2),bn(n.errorTitle),we(1),Ae("innerHTML",n.errorContent,My))},directives:[Kp,lc,ZS,Jr,Nu,H4,j4],styles:[".fail[_ngcontent-%COMP%]{background-color:#a7384133;color:#a73841}.warning[_ngcontent-%COMP%]{background-color:#af6e0033;color:#af6e00}.correct[_ngcontent-%COMP%]{background-color:#37564640;color:#375546}mat-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}mat-card[_ngcontent-%COMP%]{max-width:400px;margin-top:20px;margin-bottom:20px;box-shadow:none}"]}),e}();function z6(e,r){1&e&&(ve(0,"div",2),Xt(1,"div",3),pe())}function W6(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",10),Be("click",function(){return gt(t),He(3).addingLesson=!0}),Te(1,"add_circle_outline"),pe()}2&e&&Ae("title","Add lesson")}function q6(e,r){if(1&e&&(ve(0,"div",4)(1,"div",8),Te(2,"MY LESSONS"),pe(),Qe(3,W6,2,1,"mat-icon",9),pe()),2&e){var t=He(2);we(3),Ae("ngIf",t.authenticationService.isTeacher())}}function K6(e,r){if(1&e){var t=Lt();ve(0,"div")(1,"div"),Te(2,"NEW LESSON"),pe(),ve(3,"form",11,12),Be("ngSubmit",function(){gt(t);var a=Qn(4);return He(2).newLesson(),a.reset()}),ve(5,"mat-form-field")(6,"input",13),Be("ngModelChange",function(a){return gt(t),He(2).lessonTitle=a}),pe()(),ve(7,"div",14)(8,"button",15),Te(9,"Send"),pe(),ve(10,"button",16),Be("click",function(){gt(t);var a=Qn(4);return He(2).addingLesson=!1,a.reset()}),Te(11,"Cancel"),pe()()()()}if(2&e){var n=He(2);we(3),Rt("filtered",n.submitNewLesson),we(3),Ae("ngModel",n.lessonTitle),we(2),Ae("disabled",n.submitNewLesson),we(2),Ae("disabled",n.submitNewLesson)}}function Q6(e,r){if(1&e&&(ve(0,"span",22),Te(1),pe()),2&e){var t=He().$implicit;we(1),bn(t.teacher.nickName)}}function Y6(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",21),Be("click",function(){gt(t);var i=He().$implicit;return He(2).goToLessonDetails(i)}),Te(1,"mode_edit"),pe()}2&e&&Ae("title","Modify lesson")}function $6(e,r){if(1&e){var t=Lt();ve(0,"mat-card")(1,"div",17)(2,"span",18),Te(3),pe(),Qe(4,Q6,2,1,"span",19),Qe(5,Y6,2,1,"mat-icon",20),ve(6,"mat-icon",21),Be("click",function(){var s=gt(t).$implicit;return He(2).goToLesson(s)}),Te(7,"play_circle_filled"),pe()()()}if(2&e){var n=r.$implicit,i=He(2);we(3),bn(n.title),we(1),Ae("ngIf",i.authenticationService.isStudent()),we(1),Ae("ngIf",i.authenticationService.isTeacher()),we(1),Ae("title","Go to lesson!")}}function X6(e,r){1&e&&(ve(0,"div"),Xt(1,"app-error-message",23),pe()),2&e&&(we(1),Ae("errorTitle","You do not have any lessons")("errorContent","Your teacher must invite you")("customClass","warning")("closable",!1))}function Z6(e,r){1&e&&(ve(0,"div"),Xt(1,"app-error-message",23),pe()),2&e&&(we(1),Ae("errorTitle","You do not have any lessons")("errorContent","You can add one by clicking on the icon above")("customClass","warning")("closable",!1))}var J6=function(){return{width:"100%"}};function eW(e,r){if(1&e&&(ve(0,"div",4)(1,"div",5),Qe(2,q6,4,1,"div",1),Qe(3,K6,12,5,"div",6),Qe(4,$6,8,4,"mat-card",7),Qe(5,X6,2,4,"div",6),Qe(6,Z6,2,4,"div",6),pe()()),2&e){var t=He();we(1),xi("xs",tu(7,J6)),we(1),Ae("ngIf",!t.addingLesson),we(1),Ae("ngIf",t.addingLesson),we(1),Ae("ngForOf",t.lessons),we(1),Ae("ngIf",0===t.lessons.length&&t.authenticationService.isStudent()&&!t.addingLesson),we(1),Ae("ngIf",0===t.lessons.length&&t.authenticationService.isTeacher()&&!t.addingLesson)}}var tW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.videoSessionService=n,this.router=i,this.authenticationService=a,this.snackBar=o,this.dialog=s}return f(r,[{key:"ngOnInit",value:function(){this.authenticationService.checkCredentials(),this.getLessons()}},{key:"logout",value:function(){this.authenticationService.logOut()}},{key:"getLessons",value:function(){var n=this;this.lessonService.getLessons(this.authenticationService.getCurrentUser()).subscribe(function(i){console.log("User's lessons: "),console.log(i),n.lessons=i,n.authenticationService.updateUserLessons(n.lessons)},function(i){return console.log(i)})}},{key:"goToLesson",value:function(n){var a,i=this;this.videoSessionService.lesson=n,this.authenticationService.isTeacher()?((a=this.dialog.open(U6)).componentInstance.myReference=a,a.afterClosed().subscribe(function(o){o&&(console.log("Joining session with options:"),console.log(o),i.videoSessionService.cameraOptions=o,i.router.navigate(["/lesson/"+n.id]))})):this.router.navigate(["/lesson/"+n.id])}},{key:"goToLessonDetails",value:function(n){this.router.navigate(["/lesson-details/"+n.id])}},{key:"newLesson",value:function(){var n=this;this.submitNewLesson=!0,this.lessonService.newLesson(new jg(this.lessonTitle)).subscribe(function(i){console.log("New lesson added: "),console.log(i),n.lessons.push(i),n.authenticationService.updateUserLessons(n.lessons),n.submitNewLesson=!1,n.snackBar.open("Lesson added!",void 0,{duration:3e3}),n.addingLesson=!1},function(i){console.log(i),n.submitNewLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(Ug),U(Gg),U(Tn),U(bi),U(_g),U(od))},e.\u0275cmp=Bt({type:e,selectors:[["app-dashboard"]],decls:2,vars:2,consts:[["class","cssload-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxFlex","80%"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click"],[3,"ngSubmit"],["newLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","id","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","10px"],["fxFlex","70%",1,"title"],["fxFlex","70%","class","teacher",4,"ngIf"],["fxFlex","15%",3,"title","click",4,"ngIf"],["fxFlex","15%",3,"title","click"],["fxFlex","70%",1,"teacher"],[3,"errorTitle","errorContent","customClass","closable"]],template:function(t,n){1&t&&(Qe(0,z6,2,0,"div",0),Qe(1,eW,7,8,"div",1)),2&t&&(Ae("ngIf",!n.lessons),we(1),Ae("ngIf",n.lessons))},directives:[Jr,Jo,es,Qc,Nu,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,wv,Kp,Lp,zg],styles:["mat-card[_ngcontent-%COMP%]{margin-top:20px}mat-card[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{text-align:center}span.teacher[_ngcontent-%COMP%]{font-size:12px}"]}),e}(),nW=f(function e(r){d(this,e),this.id=r.id,this.name=r.name,this.nickName=r.nickName,this.roles=r.roles,this.lessons=[]});function rW(e,r){if(1&e){var t=Lt();ve(0,"div",1)(1,"mat-icon",19),Be("click",function(){return gt(t),He(2).router.navigate(["/lessons"])}),Te(2,"keyboard_arrow_left"),pe(),ve(3,"h2",20),Te(4),pe(),ve(5,"mat-icon",21),Be("click",function(){gt(t);var a=He(2);return a.editingTitle=!0,a.titleEdited=a.lesson.title}),Te(6,"mode_edit"),pe()()}if(2&e){var n=He(2);we(1),Ae("title","Back to lessons"),we(3),bn(n.lesson.title),we(1),Ae("title","Edit lesson")}}function iW(e,r){if(1&e){var t=Lt();ve(0,"div",22)(1,"form",4,23),Be("ngSubmit",function(){gt(t);var a=Qn(2);return He(2).editLesson(),a.reset()}),ve(3,"mat-form-field")(4,"input",24),Be("ngModelChange",function(a){return gt(t),He(2).titleEdited=a}),pe()(),ve(5,"div",8)(6,"button",9),Te(7,"Send"),pe(),ve(8,"button",10),Be("click",function(){gt(t);var a=He(2);return a.editingTitle=!1,a.titleEdited=""}),Te(9,"Cancel"),pe(),ve(10,"button",10),Be("click",function(){return gt(t),He(2).deleteLesson()}),Te(11,"Delete lesson"),pe()()()()}if(2&e){var n=He(2);we(1),Rt("filtered",n.sumbitEditLesson),we(3),Ae("ngModel",n.titleEdited),we(2),Ae("disabled",n.sumbitEditLesson),we(2),Ae("disabled",n.sumbitEditLesson),we(2),Ae("disabled",n.sumbitEditLesson)}}function aW(e,r){if(1&e){var t=Lt();ve(0,"app-error-message",25),Be("eventShowable",function(){return gt(t),He(2).addAttendersCorrect=!1}),pe()}if(2&e){var n=He(2);Ae("errorTitle",n.attCorrectTitle)("errorContent",n.attCorrectContent)("customClass","correct")("closable",!0)}}function oW(e,r){if(1&e){var t=Lt();ve(0,"app-error-message",25),Be("eventShowable",function(){return gt(t),He(2).addAttendersError=!1}),pe()}if(2&e){var n=He(2);Ae("errorTitle",n.attErrorTitle)("errorContent",n.attErrorContent)("customClass","fail")("closable",!0)}}function sW(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",31),Be("click",function(){gt(t);var i=He(2),a=i.index,o=i.$implicit;return He(2).deleteLessonAttender(a,o)}),Te(1,"clear"),pe()}2&e&&Ae("title","Remove attender")}function uW(e,r){1&e&&(ve(0,"mat-icon",32),Te(1,"cached"),pe())}function lW(e,r){if(1&e&&(ve(0,"div",27)(1,"div",28)(2,"div",14)(3,"div",15),Te(4),pe(),ve(5,"div",16),Te(6),pe()()(),ve(7,"div",17),Qe(8,sW,2,1,"mat-icon",29),Qe(9,uW,2,0,"mat-icon",30),pe()()),2&e){var t=He(),n=t.$implicit,i=t.index,a=He(2);we(4),bn(n.nickName),we(2),bn(n.name),we(2),Ae("ngIf",!a.arrayOfAttDels[i]),we(1),Ae("ngIf",a.arrayOfAttDels[i])}}function cW(e,r){if(1&e&&(ve(0,"div"),Qe(1,lW,10,4,"div",26),pe()),2&e){var t=r.$implicit,n=He(2);we(1),Ae("ngIf",t.id!=n.authenticationService.getCurrentUser().id)}}var dW=function(){return{width:"100%"}};function fW(e,r){if(1&e){var t=Lt();ve(0,"div",1)(1,"div",2),Qe(2,rW,7,3,"div",0),Qe(3,iW,12,6,"div",3),ve(4,"form",4,5),Be("ngSubmit",function(){gt(t);var a=Qn(5);return He().addLessonAttenders(),a.reset()}),ve(6,"h4",6),Te(7,"New attender"),pe(),ve(8,"mat-form-field")(9,"input",7),Be("ngModelChange",function(a){return gt(t),He().emailAttender=a}),pe()(),ve(10,"div",8)(11,"button",9),Te(12,"Send"),pe(),ve(13,"button",10),Be("click",function(){return gt(t),Qn(5).reset()}),Te(14,"Cancel"),pe()()(),Qe(15,aW,1,4,"app-error-message",11),Qe(16,oW,1,4,"app-error-message",11),ve(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15),Te(21),pe(),ve(22,"div",16),Te(23),pe()()(),Xt(24,"div",17),pe(),Qe(25,cW,2,1,"div",18),pe()()}if(2&e){var n=He();we(1),xi("xs",tu(14,dW)),we(1),Ae("ngIf",!n.editingTitle),we(1),Ae("ngIf",n.editingTitle),we(1),Rt("filtered",n.sumbitAddAttenders),we(5),Ae("ngModel",n.emailAttender),we(2),Ae("disabled",n.sumbitAddAttenders),we(2),Ae("disabled",n.sumbitAddAttenders||null==n.emailAttender),we(2),Ae("ngIf",n.addAttendersCorrect),we(1),Ae("ngIf",n.addAttendersError),we(5),bn(n.authenticationService.getCurrentUser().nickName),we(2),bn(n.authenticationService.getCurrentUser().name),we(2),Ae("ngForOf",n.lesson.attenders)}}var hW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.authenticationService=n,this.router=i,this.route=a,this.location=o,this.snackBar=s,this.editingTitle=!1,this.sumbitEditLesson=!1,this.sumbitAddAttenders=!1,this.arrayOfAttDels=[],this.addAttendersCorrect=!1,this.addAttendersError=!1}return f(r,[{key:"ngOnInit",value:function(){var n=this;this.route.params.subscribe(function(i){n.lesson=n.lessonService.obtainLocalLesson(+i.id)})}},{key:"editLesson",value:function(){var n=this;if(this.titleEdited!==this.lesson.title){this.sumbitEditLesson=!0;var i=new jg(this.titleEdited);i.id=this.lesson.id,this.lessonService.editLesson(i).subscribe(function(a){console.log("Lesson edited: "),console.log(a),n.lesson=a,n.sumbitEditLesson=!1,n.editingTitle=!1,n.snackBar.open("Lesson edited!",void 0,{duration:3e3})},function(a){console.log(a),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}else this.editingTitle=!1}},{key:"deleteLesson",value:function(){var n=this;this.sumbitEditLesson=!0,this.lessonService.deleteLesson(this.lesson.id).subscribe(function(i){console.log("Lesson deleted"),console.log(i),n.sumbitEditLesson=!1,n.router.navigate(["/lessons"]),n.snackBar.open("Lesson deleted!",void 0,{duration:3e3})},function(i){console.log(i),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"addLessonAttenders",value:function(){var n=this;this.sumbitAddAttenders=!0,this.lessonService.addLessonAttenders(this.lesson.id,[this.emailAttender]).subscribe(function(i){console.log("Attender added"),console.log(i),n.sumbitAddAttenders=!1,n.lesson.attenders=n.lesson.attenders.concat(i.attendersAdded),n.handleAttendersMessage(i)},function(i){console.log(i),n.sumbitAddAttenders=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"deleteLessonAttender",value:function(n,i){var a=this;this.arrayOfAttDels[n]=!0;var o=new jg(this.lesson.title);o.id=this.lesson.id;for(var s=0;s0){var s,o=z(n.attendersAdded);try{for(o.s();!(s=o.n()).done;)this.attCorrectContent+=""}catch(te){o.e(te)}finally{o.f()}a=!0}if(n.attendersAlreadyAdded.length>0){this.attErrorContent+="The following users were already added to the lesson";var c,l=z(n.attendersAlreadyAdded);try{for(l.s();!(c=l.n()).done;)this.attErrorContent+=""}catch(te){l.e(te)}finally{l.f()}i=!0}if(n.emailsValidNotRegistered.length>0){this.attErrorContent+="The following users are not registered";var y,v=z(n.emailsValidNotRegistered);try{for(v.s();!(y=v.n()).done;)this.attErrorContent+=""}catch(te){v.e(te)}finally{v.f()}i=!0}if(n.emailsInvalid&&n.emailsInvalid.length>0){this.attErrorContent+="These are not valid emails";var re,J=z(n.emailsInvalid);try{for(J.s();!(re=J.n()).done;)this.attErrorContent+=""}catch(te){J.e(te)}finally{J.f()}i=!0}i?(this.attErrorTitle="There have been some problems",this.addAttendersError=!0):0===n.attendersAdded.length&&(this.attErrorTitle="No emails there!",this.addAttendersError=!0),a&&(this.attCorrectTitle="The following users where properly added",this.addAttendersCorrect=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(Ug),U(bi),U(Tn),U(za),U(Aa),U(_g))},e.\u0275cmp=Bt({type:e,selectors:[["app-lesson-details"]],decls:1,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[3,"ngSubmit"],["addAttendersForm",""],["id","new-attender-title"],["matInput","","placeholder","Email","name","attenderEmail","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start",1,"attender-row"],["fxFlex","90%",1,"no-margin-bottom"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start","fxLayoutGap","20px"],["fxFlex","",1,"no-margin-bottom"],["fxFlex","",1,"attender-email"],["fxFlex","10%"],[4,"ngFor","ngForOf"],["fxFlex","15%","fxLayoutAlign","start center",3,"title","click"],["fxFlex","70%"],["fxFlex","15%","fxLayoutAlign","end center",3,"title","click"],["fxLayout","row","fxLayoutAlign","start center"],["editLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px","class","attender-row",4,"ngIf"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px",1,"attender-row"],["fxFlex","90%"],[3,"title","click",4,"ngIf"],["class","rotating",4,"ngIf"],[3,"title","click"],[1,"rotating"]],template:function(t,n){1&t&&Qe(0,fW,26,15,"div",0),2&t&&Ae("ngIf",n.lesson)},directives:[Jr,Jo,es,Nu,Qc,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,zg,Lp,wv],styles:[".attender-email[_ngcontent-%COMP%]{font-size:11px}.no-margin-bottom[_ngcontent-%COMP%]{margin-bottom:0!important}.attender-row[_ngcontent-%COMP%]{width:100%;margin-top:20px;min-height:27px}#new-attender-title[_ngcontent-%COMP%]{margin-bottom:5px}@keyframes rotating{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.rotating[_ngcontent-%COMP%]{animation:rotating 1s linear infinite;cursor:default!important}.rotating[_ngcontent-%COMP%]:hover{color:inherit!important}"]}),e}(),tx=function(){var e=function(){function r(t){d(this,r),this.http=t,this.url="api-users"}return f(r,[{key:"newUser",value:function(n,i,a,o){var s=this,u=JSON.stringify([n,i,a,o]);return this.http.post(this.url+"/new",u,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Ye(function(l){return l}),vn(function(l){return s.handleError(l)}))}},{key:"handleError",value:function(n){return mi(n.status)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(ue(Ra))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function vW(e,r){1&e&&(ve(0,"div",14),Xt(1,"div",15),pe())}function pW(e,r){if(1&e){var t=Lt();ve(0,"div")(1,"mat-form-field")(2,"input",16),Be("ngModelChange",function(a){return gt(t),He().nickName=a}),pe()()()}if(2&e){var n=He();we(2),Ae("ngModel",n.nickName)}}function gW(e,r){if(1&e){var t=Lt();ve(0,"div")(1,"mat-form-field")(2,"input",17),Be("ngModelChange",function(a){return gt(t),He().confirmPassword=a}),pe()()()}if(2&e){var n=He();we(2),Ae("ngModel",n.confirmPassword)}}function mW(e,r){if(1&e){var t=Lt();ve(0,"div",18)(1,"span",19),Te(2,"Sign up as..."),pe(),ve(3,"mat-radio-group",20),Be("ngModelChange",function(a){return gt(t),He().roleUserSignup=a}),ve(4,"mat-radio-button",21),Te(5,"Student"),pe(),ve(6,"mat-radio-button",22),Te(7,"Teacher"),pe()()()}if(2&e){var n=He();we(3),Ae("ngModel",n.roleUserSignup)}}function yW(e,r){if(1&e){var t=Lt();ve(0,"app-error-message",23),Be("eventShowable",function(){return gt(t),He().fieldsIncorrect=!1}),pe()}if(2&e){var n=He();Ae("errorTitle",n.errorTitle)("errorContent",n.errorContent)("customClass",n.customClass)("closable",!0)}}function _W(e,r){1&e&&(ve(0,"button",24),Te(1,"Log in"),pe())}function bW(e,r){1&e&&(ve(0,"button",25),Te(1,"Sign up"),pe())}function CW(e,r){1&e&&(ve(0,"div")(1,"table")(2,"tr")(3,"th"),Te(4,"Email"),pe(),ve(5,"th"),Te(6,"Password"),pe()(),ve(7,"tr")(8,"td"),Te(9,"teacher@gmail.com"),pe(),ve(10,"td"),Te(11,"pass"),pe()(),ve(12,"tr")(13,"td"),Te(14,"student1@gmail.com"),pe(),ve(15,"td"),Te(16,"pass"),pe()(),ve(17,"tr")(18,"td"),Te(19,"student2@gmail.com"),pe(),ve(20,"td"),Te(21,"pass"),pe()()()())}function wW(e,r){if(1&e){var t=Lt();ve(0,"div"),Te(1,"Not registered yet?"),ve(2,"button",26),Be("click",function(){gt(t);var i=He(),a=Qn(9);return i.setLoginView(!1),a.reset()}),Te(3,"Sign up"),pe()()}}function EW(e,r){if(1&e){var t=Lt();ve(0,"div"),Te(1,"Already registered?"),ve(2,"button",26),Be("click",function(){gt(t);var i=He(),a=Qn(9);return i.setLoginView(!0),a.reset()}),Te(3,"Log in"),pe()()}}var kW=function(){return{width:"100%"}},SW=function(){var e=function(){function r(t,n,i){d(this,r),this.authenticationService=t,this.userService=n,this.router=i,this.loginView=!0,this.roleUserSignup="student"}return f(r,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewChecked",value:function(){this.authenticationService.isLoggedIn()&&this.router.navigate(["/lessons"])}},{key:"setLoginView",value:function(n){this.fieldsIncorrect=!1,this.loginView=n}},{key:"onSubmit",value:function(){console.log("Submit: email = "+this.email+" , password = "+this.password+", confirmPassword = "+this.confirmPassword),this.submitProcessing=!0,this.loginView?(console.log("Logging in..."),this.logIn(this.email,this.password)):(console.log("Signing up..."),this.signUp())}},{key:"logIn",value:function(n,i){var a=this;this.authenticationService.logIn(n,i).subscribe(function(o){a.submitProcessing=!1,console.log("Login succesful! LOGGED AS "+a.authenticationService.getCurrentUser().name),a.fieldsIncorrect=!1,a.router.navigate(["/lessons"])},function(o){console.log("Login failed (error): "+o),a.errorTitle="Invalid field",a.errorContent="Please check your email or password",a.customClass="fail",a.handleError()})}},{key:"signUp",value:function(){var n=this;if(this.password!==this.confirmPassword)this.errorTitle="Your passwords don't match!",this.errorContent="",this.customClass="fail",this.handleError();else{var i=this.email,a=this.password;this.userService.newUser(i,a,this.nickName,this.roleUserSignup).subscribe(function(o){n.logIn(i,a),console.log("Sign up succesful!")},function(o){console.log("Sign up failed (error): "+o),409===o?(n.errorTitle="Invalid email",n.errorContent="That email is already in use",n.customClass="fail"):403===o&&(n.errorTitle="Invalid email format",n.errorContent="Our server has rejected that email",n.customClass="fail"),n.handleError()})}}},{key:"handleError",value:function(){this.submitProcessing=!1,this.fieldsIncorrect=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(bi),U(tx),U(Tn))},e.\u0275cmp=Bt({type:e,selectors:[["app-presentation"]],decls:27,vars:17,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","column","fxLayoutAlign","space-around center"],["class","cssload-container",4,"ngIf"],[3,"ngSubmit"],["myForm",""],["matInput","","placeholder","Email","name","email","id","email","type","email","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","Password","name","password","id","password","type","password","required","",3,"ngModel","ngModelChange"],["class","radio-button-div",4,"ngIf"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],[1,"btn-container"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn",4,"ngIf"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["matInput","","placeholder","Name","name","nickName","id","nickName","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm password","name","confirmPassword","id","confirmPassword","type","password","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"radio-button-div"],["id","sign-up-as"],["name","roleUserSignup","id","roleUserSignup",3,"ngModel","ngModelChange"],["value","student"],["value","teacher"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn"],["mat-button","",1,"card-button",3,"click"]],template:function(t,n){1&t&&(ve(0,"div",0)(1,"div",1)(2,"h1"),Te(3,"OpenVidu Classroom Demo"),pe(),ve(4,"div",2)(5,"mat-card")(6,"mat-card-content"),Qe(7,vW,2,0,"div",3),ve(8,"form",4,5),Be("ngSubmit",function(){return n.onSubmit()}),ve(10,"div")(11,"mat-form-field")(12,"input",6),Be("ngModelChange",function(a){return n.email=a}),pe()()(),Qe(13,pW,3,1,"div",7),ve(14,"div")(15,"mat-form-field")(16,"input",8),Be("ngModelChange",function(a){return n.password=a}),pe()()(),Qe(17,gW,3,1,"div",7),Qe(18,mW,8,1,"div",9),Qe(19,yW,1,4,"app-error-message",10),ve(20,"div",11),Qe(21,_W,2,0,"button",12),Qe(22,bW,2,0,"button",13),pe()(),Qe(23,CW,22,0,"div",7),pe(),ve(24,"mat-card-actions"),Qe(25,wW,4,0,"div",7),Qe(26,EW,4,0,"div",7),pe()()()()()),2&t&&(we(1),xi("xs",tu(16,kW)),we(6),Ae("ngIf",n.submitProcessing),we(1),Rt("filtered",n.submitProcessing),we(4),Ae("ngModel",n.email),we(1),Ae("ngIf",!n.loginView),we(3),Ae("ngModel",n.password),we(1),Ae("ngIf",!n.loginView),we(1),Ae("ngIf",!n.loginView),we(1),Ae("ngIf",n.fieldsIncorrect),we(2),Ae("ngIf",n.loginView),we(1),Ae("ngIf",!n.loginView),we(1),Ae("ngIf",n.loginView),we(2),Ae("ngIf",n.loginView),we(1),Ae("ngIf",!n.loginView))},directives:[Jo,es,Kp,B4,Jr,mu,fu,ra,fg,hg,Uo,Wo,du,zo,vg,pg,zg,rs,U4],styles:["h1[_ngcontent-%COMP%]{text-align:center;display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card-actions[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;color:#9e9e9e}.btn-container[_ngcontent-%COMP%]{text-align:center;padding-top:20px}.card-button[_ngcontent-%COMP%]{margin-left:10px!important}.radio-button-div[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}#sign-up-as[_ngcontent-%COMP%]{color:#9e9e9e;display:block;margin-top:15px;margin-bottom:10px}table[_ngcontent-%COMP%]{margin:30px auto 0;text-align:left}"]}),e}(),DW=function(){return{width:"100%"}},AW=function(){var e=function(){function r(t){d(this,r),this.authenticationService=t}return f(r,[{key:"ngOnInit",value:function(){this.user=this.authenticationService.getCurrentUser()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(bi))},e.\u0275cmp=Bt({type:e,selectors:[["app-profile"]],decls:15,vars:5,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"]],template:function(t,n){1&t&&(ve(0,"div",0)(1,"div",1)(2,"div"),Te(3,"MY PROFILE"),pe(),ve(4,"table")(5,"tr")(6,"td"),Te(7,"Name"),pe(),ve(8,"th"),Te(9),pe()(),ve(10,"tr")(11,"td"),Te(12,"Email"),pe(),ve(13,"th"),Te(14),pe()()()()()),2&t&&(we(1),xi("xs",tu(4,DW)),we(8),bn(n.authenticationService.getCurrentUser().nickName),we(5),bn(n.authenticationService.getCurrentUser().name))},directives:[Jo,es],styles:["table[_ngcontent-%COMP%]{margin-top:15px;border-collapse:separate;border-spacing:15px 17px}th[_ngcontent-%COMP%]{text-align:left}"]}),e}(),xW=G(5039);function MW(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",2),Be("click",function(){return gt(t),He().toggleLocalVideo()}),Te(1),pe()}if(2&e){var n=He();Ae("title","Toggle video"),we(1),bn(n.videoIcon)}}function TW(e,r){if(1&e){var t=Lt();ve(0,"mat-icon",2),Be("click",function(){return gt(t),He().toggleLocalAudio()}),Te(1),pe()}if(2&e){var n=He();Ae("title","Toggle audio"),we(1),bn(n.audioIcon)}}var RW=function(){var e=function(){function r(t,n,i,a){d(this,r),this.location=t,this.authenticationService=n,this.videoSessionService=i,this.snackBar=a}return f(r,[{key:"OPEN_VIDU_CONNECTION",value:function(){var n=this;this.OV=new xW.Dn,this.session=this.OV.initSession(),this.session.on("streamCreated",function(i){console.warn("STREAM CREATED!"),console.warn(i.stream),n.session.subscribe(i.stream,"subscriber",{insertMode:"APPEND"})}),this.session.on("streamDestroyed",function(i){console.warn("STREAM DESTROYED!"),console.warn(i.stream)}),this.session.on("connectionCreated",function(i){i.connection.connectionId===n.session.connection.connectionId?console.warn("YOUR OWN CONNECTION CREATED!"):console.warn("OTHER USER'S CONNECTION CREATED!"),console.warn(i.connection)}),this.session.on("connectionDestroyed",function(i){console.warn("OTHER USER'S CONNECTION DESTROYED!"),console.warn(i.connection),n.authenticationService.connectionBelongsToTeacher(i.connection)&&n.location.back()}),this.session.connect(this.token,"CLIENT:"+this.authenticationService.getCurrentUser().name).then(function(){n.authenticationService.isTeacher()&&(n.publisher=n.OV.initPublisher("publisher",n.cameraOptions),n.publisher.on("accessAllowed",function(){console.warn("CAMERA ACCESS ALLOWED!")}),n.publisher.on("accessDenied",function(){console.warn("CAMERA ACCESS DENIED!")}),n.publisher.on("streamCreated",function(i){console.warn("STREAM CREATED BY PUBLISHER!"),console.warn(i.stream)}),n.session.publish(n.publisher))}).catch(function(i){console.log("There was an error connecting to the session:",i.code,i.message)})}},{key:"ngOnInit",value:function(){var n=this;this.previousConnectionStuff(),this.authenticationService.isTeacher()?this.videoSessionService.createSession(this.lesson.id).subscribe(function(){n.videoSessionService.generateToken(n.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i)})},function(i){console.log(i)}):this.videoSessionService.generateToken(this.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i),409===i.status&&(n.snackBar.open("The teacher has not opened the lesson yet!","Undo",{duration:3e3}),n.location.back())}),this.afterConnectionStuff()}},{key:"ngAfterViewInit",value:function(){this.toggleScrollPage("hidden")}},{key:"ngOnDestroy",value:function(){this.videoSessionService.removeUser(this.lesson.id).subscribe(function(n){console.warn("You have succesfully left the lesson")},function(n){console.log(n)}),this.toggleScrollPage("auto"),this.exitFullScreen(),this.OV&&this.session.disconnect()}},{key:"toggleScrollPage",value:function(n){document.getElementsByClassName("mat-sidenav-content")[0].style.overflow=n}},{key:"toggleLocalVideo",value:function(){this.localVideoActivated=!this.localVideoActivated,this.publisher.publishVideo(this.localVideoActivated),this.videoIcon=this.localVideoActivated?"videocam":"videocam_off"}},{key:"toggleLocalAudio",value:function(){this.localAudioActivated=!this.localAudioActivated,this.publisher.publishAudio(this.localAudioActivated),this.audioIcon=this.localAudioActivated?"mic":"mic_off"}},{key:"toggleFullScreen",value:function(){var n=window.document,i=n.getElementsByTagName("html")[0];n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?(console.log("exit FULLSCREEN!"),this.fullscreenIcon="fullscreen",n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()):(console.log("enter FULLSCREEN!"),this.fullscreenIcon="fullscreen_exit",i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen())}},{key:"exitFullScreen",value:function(){var n=window.document;n.getElementsByTagName("html"),n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()}},{key:"previousConnectionStuff",value:function(){this.lesson=this.videoSessionService.lesson,this.cameraOptions=this.videoSessionService.cameraOptions}},{key:"afterConnectionStuff",value:function(){this.authenticationService.isTeacher()&&(this.localVideoActivated=!1!==this.cameraOptions.publishVideo,this.localAudioActivated=!1!==this.cameraOptions.publishAudio,this.videoIcon=this.localVideoActivated?"videocam":"videocam_off",this.audioIcon=this.localAudioActivated?"mic":"mic_off"),this.fullscreenIcon="fullscreen"}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(Aa),U(bi),U(Gg),U(_g))},e.\u0275cmp=Bt({type:e,selectors:[["app-video-session"]],decls:11,vars:6,consts:[["id","header-div"],["id","back-btn",3,"title","click"],[1,"right-btn",3,"title","click"],["class","right-btn",3,"title","click",4,"ngIf"],["id","publisher"],["id","subscriber"]],template:function(t,n){1&t&&(ve(0,"div",0)(1,"mat-icon",1),Be("click",function(){return n.location.back()}),Te(2,"keyboard_arrow_left"),pe(),ve(3,"mat-icon",2),Be("click",function(){return n.toggleFullScreen()}),Te(4),pe(),Qe(5,MW,2,2,"mat-icon",3),Qe(6,TW,2,2,"mat-icon",3),ve(7,"h1"),Te(8),pe()(),Xt(9,"div",4)(10,"div",5)),2&t&&(we(1),Ae("title","Back to lessons"),we(2),Ae("title","Fullscreen"),we(1),bn(n.fullscreenIcon),we(1),Ae("ngIf",n.authenticationService.isTeacher()),we(1),Ae("ngIf",n.authenticationService.isTeacher()),we(2),bn(null==n.lesson?null:n.lesson.title))},directives:[Nu,Jr],styles:["h1[_ngcontent-%COMP%]{text-align:center;margin:0;color:#fff}#header-div[_ngcontent-%COMP%]{position:absolute;z-index:1000;width:100%;background:rgba(0,0,0,.4);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}mat-icon[_ngcontent-%COMP%]{font-size:38px;width:38px;height:38px;color:#fff;transition:color .2s linear}mat-icon[_ngcontent-%COMP%]:hover{color:#ffd740}#back-btn[_ngcontent-%COMP%]{float:left}.right-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),IW=R6.forRoot([{path:"",component:SW,pathMatch:"full",data:{state:"presentation"}},{path:"lessons",component:tW,canActivate:[Yu],data:{state:"lessons"}},{path:"lesson-details/:id",component:hW,canActivate:[Yu],data:{state:"lesson-details"}},{path:"profile",component:AW,canActivate:[Yu],data:{state:"profile"}},{path:"lesson/:id",component:RW,canActivate:[Yu],data:{state:"session"}}],{useHash:!0}),FW=_u("routerTransition",[ia("* <=> *",[ap(":enter, :leave",Ln({position:"fixed",width:"100%"}),{optional:!0}),function P2(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:r}}([ap(":enter",[Ln({opacity:"0"}),Pi("0.4s ease-in-out",Ln({opacity:"1"}))],{optional:!0}),ap(":leave",[Ln({opacity:"1"}),Pi("0.2s cubic-bezier(0.000, 0.900, 0.495, 0.990)",Ln({opacity:"0"}))],{optional:!0})])])]);function PW(e,r){if(1&e){var t=Lt();ve(0,"div",10)(1,"button",11),Te(2,"Lessons"),pe(),ve(3,"button",12),Te(4,"Profile"),pe(),ve(5,"button",13),Be("click",function(){return gt(t),He(2).authenticationService.directLogOut()}),Te(6,"LOGOUT"),pe()()}}function LW(e,r){if(1&e){var t=Lt();ve(0,"button",14),Be("click",function(){return gt(t),He(2),Qn(2).open()}),ve(1,"mat-icon"),Te(2,"menu"),pe()()}}function NW(e,r){if(1&e&&(ve(0,"header")(1,"mat-toolbar",5)(2,"button",6),Te(3," OpenVidu Classroom Demo "),pe(),Xt(4,"span",7),Qe(5,PW,7,0,"div",8),Qe(6,LW,3,0,"button",9),pe()()),2&e){var t=He();we(5),Ae("ngIf",t.authenticationService.isLoggedIn()),we(1),Ae("ngIf",t.authenticationService.isLoggedIn())}}function VW(e,r){1&e&&(ve(0,"footer",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"h2"),Te(5,"This is a sample application"),pe(),ve(6,"p",19),Te(7,"Implementing a secure real time app with OpenVidu"),pe()(),ve(8,"div",18)(9,"div",20)(10,"div",21)(11,"h2"),Te(12,"Technologies"),pe(),ve(13,"ul")(14,"li")(15,"a",22),Te(16,"OpenVidu"),pe()(),ve(17,"li")(18,"a",23),Te(19,"Angular"),pe()(),ve(20,"li")(21,"a",24),Te(22,"Angular Material"),pe()(),ve(23,"li")(24,"a",25),Te(25,"Spring Framework"),pe()()()(),ve(26,"div",21)(27,"h2"),Te(28,"Connect"),pe(),ve(29,"ul")(30,"li")(31,"a",26),Te(32,"GitHub repository"),pe()()()()()()()()())}var BW=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"isVideoSessionUrl",value:function(){return"/lesson/"===this.router.url.substring(0,8)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(U(Tn),U(bi))},e.\u0275cmp=Bt({type:e,selectors:[["app-root"]],decls:14,vars:3,consts:[["sidenav",""],["mat-button","",1,"sidenav-button",3,"click"],[4,"ngIf"],["o","outlet"],["class","page-footer back-primary color-secondary mat-elevation-z5",4,"ngIf"],["color","primary",1,"mat-elevation-z6"],["mat-button","","routerLink","/","id","navbar-logo"],[1,"fill-remaining-space"],["fxLayout","row","fxShow","false","fxShow.gt-sm","",4,"ngIf"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click",4,"ngIf"],["fxLayout","row","fxShow","false","fxShow.gt-sm",""],["mat-button","","routerLink","/lessons"],["mat-button","","routerLink","/profile"],["mat-button","",3,"click"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click"],[1,"page-footer","back-primary","color-secondary","mat-elevation-z5"],[1,"container"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutAlign.xs","start"],["fxFlex","50%","fxFlex.xs","100%"],[1,"grey-text","text-lighten-4"],["fxLayout","row","fxLayoutAlign","end start","fxLayoutAlign.xs","start"],["fxFlex","50%"],["href","https://www.openvidu.io/","target","_blank",1,"hover-link"],["href","https://angular.io/","target","_blank",1,"hover-link"],["href","https://material.angular.io/","target","_blank",1,"hover-link"],["href","https://spring.io/","target","_blank",1,"hover-link"],["href","https://github.com/OpenVidu","target","_blank",1,"hover-link"]],template:function(t,n){if(1&t){var i=Lt();ve(0,"mat-sidenav-container")(1,"mat-sidenav",null,0)(3,"button",1),Be("click",function(){gt(i);var s=Qn(2);return n.router.navigate(["/lessons"]),s.close()}),Te(4,"Lessons"),pe(),ve(5,"button",1),Be("click",function(){gt(i);var s=Qn(2);return n.router.navigate(["/profile"]),s.close()}),Te(6,"Profile"),pe(),ve(7,"button",1),Be("click",function(){return gt(i),Qn(2).close(),n.authenticationService.directLogOut()}),Te(8,"Logout"),pe()(),Qe(9,NW,7,2,"header",2),ve(10,"main"),Xt(11,"router-outlet",null,3),pe(),Qe(13,VW,33,0,"footer",4),pe()}if(2&t){var a=Qn(12);we(9),Ae("ngIf",!n.isVideoSessionUrl()),we(1),Ae("@routerTransition",a.isActivated&&a.activatedRoute.routeConfig.path),we(3),Ae("ngIf",!n.isVideoSessionUrl())}},directives:[UD,jD,rs,Jr,T8,Td,Jo,JS,Nu,Ig,es,Qc],styles:["mat-sidenav[_ngcontent-%COMP%]{width:250px}mat-sidenav-container[_ngcontent-%COMP%]{height:100%}footer.page-footer[_ngcontent-%COMP%]{margin:0}footer[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px}.sidenav-button[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}header[_ngcontent-%COMP%] #navbar-logo[_ngcontent-%COMP%]{font-weight:700}footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}"],data:{animation:[FW]}}),e}(),HW=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e,bootstrap:[BW]}),e.\u0275inj=ht({providers:[bi,tx,Ug,Gg,Yu],imports:[[wE,RH,y2,I2,R8,WU,IW]]}),e}();(function WP(){false})(),rV().bootstrapModule(HW)},9069:function(_e){"use strict";var E,$="object"==typeof Reflect?Reflect:null,G=$&&"function"==typeof $.apply?$.apply:function(T,w,_){return Function.prototype.apply.call(T,w,_)};E=$&&"function"==typeof $.ownKeys?$.ownKeys:Object.getOwnPropertySymbols?function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:function(T){return Object.getOwnPropertyNames(T)};var O=Number.isNaN||function(T){return T!=T};function F(){F.init.call(this)}_e.exports=F,_e.exports.once=function z(W,T){return new Promise(function(w,_){function k(H){W.removeListener(T,X),_(H)}function X(){"function"==typeof W.removeListener&&W.removeListener("error",k),w([].slice.call(arguments))}b(W,T,X,{once:!0}),"error"!==T&&function M(W,T,w){"function"==typeof W.on&&b(W,"error",T,w)}(W,k,{once:!0})})},F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var f=10;function d(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function j(W){return void 0===W._maxListeners?F.defaultMaxListeners:W._maxListeners}function p(W,T,w,_){var k,X,H;if(d(w),void 0===(X=W._events)?(X=W._events=Object.create(null),W._eventsCount=0):(void 0!==X.newListener&&(W.emit("newListener",T,w.listener?w.listener:w),X=W._events),H=X[T]),void 0===H)H=X[T]=w,++W._eventsCount;else if("function"==typeof H?H=X[T]=_?[w,H]:[H,w]:_?H.unshift(w):H.push(w),(k=j(W))>0&&H.length>k&&!H.warned){H.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=W,R.type=T,R.count=H.length,function q(W){console&&console.warn&&console.warn(W)}(R)}return W}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 x(W,T,w){var _={fired:!1,wrapFn:void 0,target:W,type:T,listener:w},k=D.bind(_);return k.listener=w,_.wrapFn=k,k}function Q(W,T,w){var _=W._events;if(void 0===_)return[];var k=_[T];return void 0===k?[]:"function"==typeof k?w?[k.listener||k]:[k]:w?function ne(W){for(var T=new Array(W.length),w=0;w0&&(H=w[0]),H instanceof Error)throw H;var R=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw R.context=H,R}var K=X[T];if(void 0===K)return!1;if("function"==typeof K)G(K,this,w);else{var m=K.length,V=g(K,m);for(_=0;_=0;H--)if(_[H]===w||_[H].listener===w){R=_[H].listener,X=H;break}if(X<0)return this;0===X?_.shift():function N(W,T){for(;T+1=0;k--)this.removeListener(T,w[k]);return this},F.prototype.listeners=function(T){return Q(this,T,!0)},F.prototype.rawListeners=function(T){return Q(this,T,!1)},F.listenerCount=function(W,T){return"function"==typeof W.listenerCount?W.listenerCount(T):ee.call(W,T)},F.prototype.listenerCount=ee,F.prototype.eventNames=function(){return this._eventsCount>0?E(this._events):[]}},4491:function(_e,$,G){"use strict";var E=G(1897);_e.exports=function(F){var p,f={stun:(F||{}).stun||G(8808),turn:(F||{}).turn||G(4576)},j=(F||{}).turnCount||0;function D(x,Q){for(var N,ee=[],g=[].concat(f[x]);g.length&&ee.lengthj&&d[p]<0&&(j=d[p]);return j}(M,z);j.emit("volume_change",w,Q);var _=0;if(w>Q&&!j.speaking){for(var k=j.speakingHistory.length-3;k=2&&(j.speaking=!0,j.emit("speaking"))}else if(wQ)),T()}},x)}(),j}},3894:function(_e){_e.exports="function"==typeof Object.create?function(G,E){E&&(G.super_=E,G.prototype=Object.create(E.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}))}:function(G,E){if(E){G.super_=E;var q=function(){};q.prototype=E.prototype,G.prototype=new q,G.prototype.constructor=G}}},8659:function(_e,$){var O,G=this&&this.__extends||(O=function(f,d){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,p){j.__proto__=p}||function(j,p){for(var D in p)Object.prototype.hasOwnProperty.call(p,D)&&(j[D]=p[D])})(f,d)},function(F,f){function d(){this.constructor=F}O(F,f),F.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)});function E(O){if(!O)return E.__;Array.prototype.reduce||(Array.prototype.reduce=function(d,j){for(var p=j,D=0;D=this.maxBatchSize)this.nbrLogItemsSkipped+=C.length;else{if(null!=O.maxMessages){if(O.maxMessages<1)return;O.maxMessages-=C.length}this.batchBuffer=this.batchBuffer.concat(C);var P=this;X(this.batchTimeoutTimer,this.batchTimeout,function(){P.sendBatch.call(P)})}},S.prototype.batchBufferHasOverdueMessages=function(){for(var C=0;Cthis.batchTimeout)return!0;return!1},S.prototype.batchBufferHasStrandedMessage=function(){return null!=O.maxMessages&&O.maxMessages<1&&this.batchBuffer.length>0},S.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},S.prototype.onSendingEnded=function(){k(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},S.prototype.setOptions=function(C){if(F("level",C,this),F("ipRegex",C,this),F("userAgentRegex",C,this),F("disallow",C,this),F("sendWithBufferLevel",C,this),F("storeInBufferLevel",C,this),F("bufferSize",C,this),F("batchSize",C,this),F("maxBatchSize",C,this),F("batchTimeout",C,this),F("sendTimeout",C,this),this.bufferSize0&&(this.buffer.push(je),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([je]),ge>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},S.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(k(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var C=this;X(this.sendTimeoutTimer,this.sendTimeout,function(){C.onSendingEnded.call(C)}),this.sendLogItems(this.batchBuffer,function(){C.batchBuffer.splice(0,C.nbrLogItemsBeingSent),C.nbrLogItemsSkipped>0&&(C.batchBuffer.push(_(4e3,"Lost "+C.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",C.appenderName)),C.nbrLogItemsSkipped=0),C.onSendingEnded.call(C)})}},S}();O.Appender=H;var R=function(S){function C(P){return S.call(this,P,C.prototype.sendLogItemsAjax)||this}return G(C,S),C.prototype.setOptions=function(P){return F("url",P,this),F("beforeSend",P,this),S.prototype.setOptions.call(this,P),this},C.prototype.sendLogItemsAjax=function(P,Y){try{if(!f(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=O._createXMLHttpRequest();var le="/jsnlog.logger";null!=O.defaultAjaxUrl&&(le=O.defaultAjaxUrl),this.url&&(le=this.url),this.xhr.open("POST",le),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",O.requestId);var ge=this;this.xhr.onreadystatechange=function(){4==ge.xhr.readyState&&ge.xhr.status>=200&&ge.xhr.status<300&&Y()};var ke={r:O.requestId,lg:P};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,ke):"function"==typeof O.defaultBeforeSend&&O.defaultBeforeSend.call(this,this.xhr,ke);var Ie=JSON.stringify(ke);this.xhr.send(Ie)}catch(je){}},C}(H);O.AjaxAppender=R;var K=function(S){function C(P){return S.call(this,P,C.prototype.sendLogItemsConsole)||this}return G(C,S),C.prototype.clog=function(P){O._console.log(P)},C.prototype.cerror=function(P){O._console.error?O._console.error(P):this.clog(P)},C.prototype.cwarn=function(P){O._console.warn?O._console.warn(P):this.clog(P)},C.prototype.cinfo=function(P){O._console.info?O._console.info(P):this.clog(P)},C.prototype.cdebug=function(P){O._console.debug?O._console.debug(P):this.cinfo(P)},C.prototype.sendLogItemsConsole=function(P,Y){try{if(!f(this)||!O._console)return;var le;for(le=0;le=this.level&&f(this)&&(Y?(ke=this.buildExceptionObject(Y)).logData=j(P):ke=P,d(this,(ge=D(ke)).finalString))){if(this.onceOnly)for(le=this.onceOnly.length-1;le>=0;){if(new RegExp(this.onceOnly[le]).test(ge.finalString)){if(this.seenRegexes[le])return this;this.seenRegexes[le]=!0}le--}for(ge.meta=ge.meta||{},le=this.appenders.length-1;le>=0;)this.appenders[le].log(W(C),ge.msg,ge.meta,function(){},C,ge.finalString,this.loggerName),le--}return this},S.prototype.trace=function(C){return this.log(1e3,C)},S.prototype.debug=function(C){return this.log(2e3,C)},S.prototype.info=function(C){return this.log(3e3,C)},S.prototype.warn=function(C){return this.log(4e3,C)},S.prototype.error=function(C){return this.log(5e3,C)},S.prototype.fatal=function(C){return this.log(6e3,C)},S.prototype.fatalException=function(C,P){return this.log(6e3,C,P)},S}();O.Logger=m,O.createAjaxAppender=function V(S){return new R(S)},O.createConsoleAppender=function L(S){return new K(S)},B="undefined"!=typeof window?new R(""):new K(""),O.__=new O.Logger(""),O.__.setOptions({level:O.getDebugLevel(),appenders:[B]})})(E||(E={})),$.__esModule=!0,$.JL=E,"function"==typeof __jsnlog_configure&&__jsnlog_configure(E),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(O,F,f,d,j){return E("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:O?O.message||O:"",url:F,"line number":f,column:d},j),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(O){E("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:O.reason?O.reason.message:O.message||null},O.reason)})},1897:function(_e){var $=["stun:","turn:"];_e.exports=function(G){var q,O,E=(G||{}).url||G,F={};return("string"==typeof E||E instanceof String)&&(E=E.trim(),q=$[$.indexOf(E.slice(0,5))])?(O=(E=E.slice(5)).split("@"),F.username=G.username,F.credential=G.credential,O.length>1&&(E=O[1],O=O[0].split(":"),F.username=O[0],F.credential=(G||{}).credential||O[1]||""),F.url=q+E,F.urls=[F.url],F):G}},7490:function(_e,$,G){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Connection=void 0;var E=G(2096),q=G(6946),O=G(7507),F=q.OpenViduLogger.getInstance(),f=function(){function d(j,p){this.session=j,this.disposed=!1;var D="'Connection' created ";p.role?(this.localOptions=p,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,D+="(local)"):(this.remoteOptions=p,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),D+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),F.info(D)}return d.prototype.sendIceCandidate=function(j){var p=this;F.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,j),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:j.candidate,sdpMid:j.sdpMid,sdpMLineIndex:j.sdpMLineIndex},function(D,x){D&&(F.error("Error sending ICE candidate: "+JSON.stringify(D)),p.session.emitEvent("exception",[new O.ExceptionEvent(p.session,O.ExceptionEventName.ICE_CANDIDATE_ERROR,p.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",D)]))})},d.prototype.initRemoteStreams=function(j){var p=this;j.forEach(function(D){var x={id:D.id,createdAt:D.createdAt,connection:p,hasAudio:D.hasAudio,hasVideo:D.hasVideo,audioActive:D.audioActive,videoActive:D.videoActive,typeOfVideo:D.typeOfVideo,frameRate:D.frameRate,videoDimensions:D.videoDimensions?JSON.parse(D.videoDimensions):void 0,filter:D.filter?D.filter:void 0},Q=new E.Stream(p.session,x);p.addStream(Q)}),F.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},d.prototype.addStream=function(j){j.connection=this,this.stream=j},d.prototype.removeStream=function(j){delete this.stream},d.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},d}();$.Connection=f},8074:function(_e,$,G){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.EventDispatcher=void 0;var E=G(940),O=G(6946).OpenViduLogger.getInstance(),F=function(){function f(){this.userHandlerArrowHandler=new WeakMap,this.ee=new E}return f.prototype.onAux=function(d,j,p){var D=function(Q){Q?O.info(j,Q):O.info(j),p(Q)};return this.userHandlerArrowHandler.set(p,D),this.ee.on(d,D),this},f.prototype.onceAux=function(d,j,p){var D=this,x=function(ee){ee?O.info(j,ee):O.info(j),p(ee),D.userHandlerArrowHandler.delete(p)};return this.userHandlerArrowHandler.set(p,x),this.ee.once(d,x),this},f.prototype.offAux=function(d,j){if(j){var p=this.userHandlerArrowHandler.get(j);p&&this.ee.off(d,p),this.userHandlerArrowHandler.delete(j)}else this.ee.removeAllListeners(d);return this},f}();$.EventDispatcher=F},4540:function(_e,$,G){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Filter=void 0;var E=G(2798),q=G(4103),F=G(6946).OpenViduLogger.getInstance(),f=function(){function d(j,p){this.handlers=new Map,this.type=j,this.options=p}return d.prototype.execMethod=function(j,p){var D=this;return new Promise(function(x,Q){var ee;F.info("Executing filter method to stream "+D.stream.streamId);var g,N=function(b){F.info("Filter method successfully executed on Stream "+D.stream.streamId);var W=Object.assign({},D.stream.filter);return D.stream.filter.lastExecMethod={method:j,params:g},b&&(D.stream.session.emitEvent("streamPropertyChanged",[new E.StreamPropertyChangedEvent(D.stream.session,D.stream,"filter",D.stream.filter,W,"execFilterMethod")]),D.stream.streamManager.emitEvent("streamPropertyChanged",[new E.StreamPropertyChangedEvent(D.stream.streamManager,D.stream,"filter",D.stream.filter,W,"execFilterMethod")])),x()};if(D.type.startsWith("VB:")){if("string"==typeof p)try{p=JSON.parse(p)}catch(M){return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+M))}if(g=p,"update"!==j)return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(j,'"')));if(!(null===(ee=D.stream.virtualBackgroundSinkElements)||void 0===ee?void 0:ee.VB))return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));D.stream.virtualBackgroundSinkElements.VB.updateValues(p).then(function(){return N(!1)}).catch(function(M){return Q(M.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(M.name,M.message):new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+M))})}else{var ne=void 0;if("string"!=typeof p)try{ne=JSON.stringify(p)}catch(M){var z="'params' property must be a JSON formatted object";return F.error(z),Q(z)}else ne=p;g=ne,D.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:D.stream.streamId,method:j,params:ne},function(M,b){return M?(F.error("Error executing filter method for Stream "+D.stream.streamId,M),Q(401===M.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):M)):N(!0)})}})},d.prototype.addEventListener=function(j,p){var D=this;return new Promise(function(x,Q){F.info("Adding filter event listener to event "+j+" to stream "+D.stream.streamId),D.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:D.stream.streamId,eventType:j},function(ee,g){return ee?(F.error("Error adding filter event listener to event "+j+"for Stream "+D.stream.streamId,ee),Q(401===ee.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):ee)):(D.handlers.set(j,p),F.info("Filter event listener to event "+j+" successfully applied on Stream "+D.stream.streamId),x())})})},d.prototype.removeEventListener=function(j){var p=this;return new Promise(function(D,x){F.info("Removing filter event listener to event "+j+" to stream "+p.stream.streamId),p.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:p.stream.streamId,eventType:j},function(Q,ee){return Q?(F.error("Error removing filter event listener to event "+j+"for Stream "+p.stream.streamId,Q),x(401===Q.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):Q)):(p.handlers.delete(j),F.info("Filter event listener to event "+j+" successfully removed on Stream "+p.stream.streamId),D())})})},d}();$.Filter=f},4289:function(_e,$,G){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.LocalRecorder=void 0;var d,E=G(5156),q=G(6946),O=G(543),F=G(8946),f=q.OpenViduLogger.getInstance(),j=function(){function p(D){this.stream=D,this.chunks=[],d=O.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=E.LocalRecorderState.READY}return p.prototype.record=function(D){var x=this;return new Promise(function(Q,ee){try{if("string"==typeof D||D instanceof String)return ee("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(D,'" }'));if("undefined"==typeof MediaRecorder)throw f.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(x.state!==E.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+x.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");f.log("Starting local recording of stream '"+x.stream.streamId+"' of connection '"+x.connectionId+"'"),D?D.mimeType||(D.mimeType="video/webm"):D={mimeType:"video/webm"},x.mediaRecorder=new MediaRecorder(x.stream.getMediaStream(),D),x.mediaRecorder.start()}catch(g){return ee(g)}return x.mediaRecorder.ondataavailable=function(g){g.data.size>0&&x.chunks.push(g.data)},x.mediaRecorder.onerror=function(g){f.error("MediaRecorder error: ",g)},x.mediaRecorder.onstart=function(){f.log("MediaRecorder started (state="+x.mediaRecorder.state+")")},x.mediaRecorder.onstop=function(){x.onStopDefault()},x.mediaRecorder.onpause=function(){f.log("MediaRecorder paused (state="+x.mediaRecorder.state+")")},x.mediaRecorder.onresume=function(){f.log("MediaRecorder resumed (state="+x.mediaRecorder.state+")")},x.state=E.LocalRecorderState.RECORDING,Q()})},p.prototype.stop=function(){var D=this;return new Promise(function(x,Q){try{if(D.state===E.LocalRecorderState.READY||D.state===E.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+D.state+"'). Call 'LocalRecorder.start()' before");D.mediaRecorder.onstop=function(){return D.onStopDefault(),x()},D.mediaRecorder.stop()}catch(ee){return Q(ee)}})},p.prototype.pause=function(){var D=this;return new Promise(function(x,Q){try{return D.state!==E.LocalRecorderState.RECORDING?Q(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+D.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(D.mediaRecorder.pause(),D.state=E.LocalRecorderState.PAUSED,x())}catch(ee){return Q(ee)}})},p.prototype.resume=function(){var D=this;return new Promise(function(x,Q){try{if(D.state!==E.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+D.state+"'). Call 'LocalRecorder.pause()' before");return D.mediaRecorder.resume(),D.state=E.LocalRecorderState.RECORDING,x()}catch(ee){return Q(ee)}})},p.prototype.preview=function(D){if(this.state!==E.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,d.isSafariBrowser()&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof D){var x=document.getElementById(D);x&&(this.videoPreview=x.appendChild(this.videoPreview))}else this.videoPreview=D.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},p.prototype.clean=function(){var D=this,x=function(){delete D.blob,D.chunks=[],D.state=E.LocalRecorderState.READY};this.state===E.LocalRecorderState.RECORDING||this.state===E.LocalRecorderState.PAUSED?this.stop().then(function(){return x()}).catch(function(){return x()}):x()},p.prototype.download=function(){if(this.state!==E.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var D=document.createElement("a");D.style.display="none",document.body.appendChild(D);var x=window.URL.createObjectURL(this.blob);D.href=x,D.download=this.id+"."+F.getExtension(this.blob.type),D.click(),window.URL.revokeObjectURL(x),document.body.removeChild(D)},p.prototype.getBlob=function(){if(this.state!==E.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},p.prototype.uploadAsBinary=function(D,x){var Q=this;return new Promise(function(ee,g){if(Q.state!==E.LocalRecorderState.FINISHED)return g(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+Q.state+"'). Call 'LocalRecorder.stop()' before"));var N=new XMLHttpRequest;if(N.open("POST",D,!0),"object"==typeof x)for(var ne=0,z=Object.keys(x);nek&&clearTimeout(m),T.getVideoDimensions().then(function(V){(V.width!==R||V.height!==K)&&(clearTimeout(m),X.sendVideoDimensionsChangedEvent(T,w,R,K,V.width,V.height))})},_)},W.prototype.sendVideoDimensionsChangedEvent=function(T,w,_,k,X,H){var R=this;T.stream.videoDimensions={width:X||0,height:H||0},this.sendRequest("streamPropertyChanged",{streamId:T.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(T.stream.videoDimensions),reason:w},function(K,m){K?z.error("Error sending 'streamPropertyChanged' event",K):(R.session.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(R.session,T.stream,"videoDimensions",T.stream.videoDimensions,{width:_,height:k},w)]),T.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(T,T.stream,"videoDimensions",T.stream.videoDimensions,{width:_,height:k},w)]),R.session.sendVideoData(T))})},W.prototype.generateMediaConstraints=function(T){var w=this;return new Promise(function(_,k){var X={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},H=T.audioSource,R=T.videoSource;if((null===H||!1===H)&&(X.constraints.audio=!1),(null===R||!1===R)&&(X.constraints.video=!1),!1===X.constraints.audio&&!1===X.constraints.video)return k(new d.OpenViduError(d.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&H instanceof MediaStreamTrack&&(X.audioTrack=H),"undefined"!=typeof MediaStreamTrack&&R instanceof MediaStreamTrack&&(X.videoTrack=R),void 0===H&&(X.constraints.audio=!0),void 0===R&&(X.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==R&&!1!==R){if(T.resolution){var K=T.resolution.toLowerCase().split("x"),m=Number(K[0]),V=Number(K[1]);X.constraints.video={width:{ideal:m},height:{ideal:V}}}T.frameRate&&(X.constraints.video.frameRate={ideal:T.frameRate})}return w.configureDeviceIdOrScreensharing(X,T,_,k),_(X)})},W.prototype.startWs=function(T){var w={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:T,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,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),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new N.clients.JsonRpcClient(w)},W.prototype.onMasterNodeCrashedNotification=function(T){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},W.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},W.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},W.prototype.sendRequest=function(T,w,_){w&&w instanceof Function&&(_=w,w={}),z.debug('Sending request: {method:"'+T+'", params: '+JSON.stringify(w)+"}"),this.jsonRpcClient.send(T,w,_)},W.prototype.getWsUri=function(){return this.wsUri},W.prototype.getSecret=function(){return this.secret},W.prototype.getRecorder=function(){return this.recorder},W.prototype.generateAudioDeviceError=function(T,w){var _,k;switch("Error"===T.name&&(T.name=T.constructor.name),T.name.toLowerCase()){case"notfounderror":return _=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,k=T.toString(),new d.OpenViduError(_,k);case"notallowederror":return _=d.OpenViduErrorName.DEVICE_ACCESS_DENIED,k=T.toString(),new d.OpenViduError(_,k);case"overconstrainederror":return"deviceid"===T.constraint.toLowerCase()?(_=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,k="Audio input device with deviceId '"+w.audio.deviceId.exact+"' not found"):(_=d.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,k="Audio input device doesn't support the value passed for constraint '"+T.constraint+"'"),new d.OpenViduError(_,k);case"notreadableerror":return _=d.OpenViduErrorName.DEVICE_ALREADY_IN_USE,k=T.toString(),new d.OpenViduError(_,k);default:return new d.OpenViduError(d.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,T.toString())}},W.prototype.addAlreadyProvidedTracks=function(T,w,_){return T.videoTrack&&(w.addTrack(T.videoTrack),_&&(_.lastVideoTrackConstraints=T.constraints.video?T.constraints.video:T.videoTrack.getConstraints())),T.audioTrack&&w.addTrack(T.audioTrack),w},W.prototype.configureDeviceIdOrScreensharing=function(T,w,_,k){var X=this,H=w.audioSource,R=w.videoSource;if("string"==typeof H&&(T.constraints.audio={deviceId:{exact:H}}),"string"==typeof R){if(this.isScreenShare(R)){if(this.checkScreenSharingCapabilities()){if(M.isElectron()){var m="screen:",L=R.substr(R.indexOf(m)+m.length);return T.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:L}},_(T)}if(!this.advancedConfiguration.screenShareChromeExtension||M.isFirefoxBrowser()||M.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return _(T);var B=M.isFirefoxBrowser()||M.isFirefoxMobileBrowser()?w.videoSource:void 0;return void x.getScreenId(B,function(S,C,P){if(S){if("not-installed"===S){var le=new d.OpenViduError(d.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,X.advancedConfiguration.screenShareChromeExtension?X.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return z.error(le),k(le)}return"installed-disabled"===S?(le=new d.OpenViduError(d.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),z.error(le),k(le)):"permission-denied"===S?(le=new d.OpenViduError(d.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),z.error(le),k(le)):(le=new d.OpenViduError(d.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),z.error(le),z.error(S),k(le))}return T.constraints.video=P.video,_(T)})}return void Q.getScreenConstraints(function(S,C){if(!(S||C.mandatory&&"screen"===C.mandatory.chromeMediaSource))return T.constraints.video=C,_(T);if("permission-denied"===S||"PermissionDeniedError"===S){var P=new d.OpenViduError(d.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return z.error(P),k(P)}var Y=X.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();Q.getChromeExtensionStatus(Y,function(le){if("installed-disabled"===le){var ge=new d.OpenViduError(d.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return z.error(ge),k(ge)}if("not-installed"===le){var ke=new d.OpenViduError(d.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,X.advancedConfiguration.screenShareChromeExtension);return z.error(ke),k(ke)}})})}var K=new d.OpenViduError(d.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+M.getName()+" "+M.getVersion());return z.error(K),k(K)}this.setVideoSource(T,R)}},W.prototype.setVideoSource=function(T,w){T.constraints.video||(T.constraints.video={}),T.constraints.video.deviceId={exact:w}},W.prototype.disconnectCallback=function(){z.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},W.prototype.reconnectingCallback=function(){z.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},W.prototype.reconnectWebsocketThroughRpcConnectMethod=function(T){var w=this;this.sendRequest("connect",{sessionId:T,reconnect:!0},function(_,k){if(_)if(w.isMasterNodeCrashed())z.warn("Master Node has crashed!");else{z.error(_);var X=function(K,m){z.warn(m),w.session.onLostConnection(K),w.jsonRpcClient.close(4101,"Reconnection fault: "+m)};40007===_.code&&"reconnection error"===_.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===w.life?X("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):w.sendRequest("sessionStatus",{sessionId:w.session.sessionId},function(K,m){null!=K?console.error("Error checking session status",K):w.life===m.life?X("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):X("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else w.jsonRpcClient.resetPing(),w.session.onRecoveredConnection()})},W.prototype.reconnectedCallback=function(){if(z.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{z.warn("There was no previous connection when running reconnection callback");var T=new F.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[T]),T.callDefaultBehavior()}else alert("Connection error. Please reload page.")},W.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},W.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof O.Session||(z.warn("Session instance not found"),!1)},W.prototype.isScreenShare=function(T){return"screen"===T||"window"===T||M.isElectron()&&T.startsWith("screen:")},W}();$.OpenVidu=b},4259:function(_e,$,G){"use strict";var z,E=this&&this.__extends||(z=function(b,W){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,w){T.__proto__=w}||function(T,w){for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_])})(b,W)},function(M,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function W(){this.constructor=M}z(M,b),M.prototype=null===b?Object.create(b):(W.prototype=b.prototype,new W)}),q=this&&this.__awaiter||function(z,M,b,W){return new(b||(b=Promise))(function(w,_){function k(R){try{H(W.next(R))}catch(K){_(K)}}function X(R){try{H(W.throw(R))}catch(K){_(K)}}function H(R){R.done?w(R.value):function T(w){return w instanceof b?w:new b(function(_){_(w)})}(R.value).then(k,X)}H((W=W.apply(z,M||[])).next())})},O=this&&this.__generator||function(z,M){var W,T,w,_,b={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return _={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(_[Symbol.iterator]=function(){return this}),_;function k(H){return function(R){return function X(H){if(W)throw new TypeError("Generator is already executing.");for(;b;)try{if(W=1,T&&(w=2&H[0]?T.return:H[0]?T.throw||((w=T.return)&&w.call(T),0):T.next)&&!(w=w.call(T,H[1])).done)return w;switch(T=0,w&&(H=[2&H[0],w.value]),H[0]){case 0:case 1:w=H;break;case 4:return b.label++,{value:H[1],done:!1};case 5:b.label++,T=H[1],H=[0];continue;case 7:H=b.ops.pop(),b.trys.pop();continue;default:if(!(w=(w=b.trys).length>0&&w[w.length-1])&&(6===H[0]||2===H[0])){b=0;continue}if(3===H[0]&&(!w||H[1]>w[0]&&H[1]=1?k():(b.videoReference.addEventListener("loadedmetadata",_=function(){if(b.videoReference.videoWidth)k();else var H=setInterval(function(){b.videoReference.videoWidth&&(clearInterval(H),k())},40)}),w&&document.body.appendChild(b.videoReference))})},M.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},M.prototype.initializeVideoReference=function(b){this.videoReference=document.createElement("video"),this.videoReference.setAttribute("muted","true"),this.videoReference.style.display="none",(N.isSafariBrowser()||N.isIPhoneOrIPad()&&(N.isChromeMobileBrowser()||N.isEdgeMobileBrowser()||N.isOperaMobileBrowser()||N.isFirefoxMobileBrowser()))&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(b),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=b},M.prototype.replaceTrackInMediaStream=function(b,W){return q(this,void 0,void 0,function(){var T,w;return O(this,function(_){return T=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),"video"===b.kind?(w=T.getVideoTracks()[0],W&&(this.stream.lastVideoTrackConstraints=b.getConstraints())):w=T.getAudioTracks()[0],T.removeTrack(w),w.stop(),T.addTrack(b),"video"===b.kind&&this.stream.isLocalStreamPublished&&W&&(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.session.sendVideoData(this.stream.streamManager,5,!0,5)),[2]})})},M.prototype.setPermissionDialogTimer=function(b){var W=this;this.permissionDialogTimeout=setTimeout(function(){W.emitEvent("accessDialogOpened",[])},b)},M.prototype.clearPermissionDialogTimer=function(b,W){clearTimeout(this.permissionDialogTimeout),Date.now()-b>W&&this.emitEvent("accessDialogClosed",[])},M.prototype.replaceTrackInRtcRtpSender=function(b){return q(this,void 0,void 0,function(){var W,T;return O(this,function(w){switch(w.label){case 0:if(W=this.stream.getRTCPeerConnection().getSenders(),"video"===b.kind){if(!(T=W.find(function(_){return!!_.track&&"video"===_.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==b.kind)throw new Error("Unknown track kind "+b.kind);if(!(T=W.find(function(_){return!!_.track&&"audio"===_.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,T.replaceTrack(b)];case 1:return w.sent(),[2]}})})},M}(d.StreamManager);$.Publisher=ne},8402:function(_e,$,G){"use strict";var R,E=this&&this.__extends||(R=function(m,V){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,B){L.__proto__=B}||function(L,B){for(var S in B)Object.prototype.hasOwnProperty.call(B,S)&&(L[S]=B[S])})(m,V)},function(K,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function V(){this.constructor=K}R(K,m),K.prototype=null===m?Object.create(m):(V.prototype=m.prototype,new V)}),q=this&&this.__awaiter||function(R,K,m,V){return new(m||(m=Promise))(function(B,S){function C(le){try{Y(V.next(le))}catch(ge){S(ge)}}function P(le){try{Y(V.throw(le))}catch(ge){S(ge)}}function Y(le){le.done?B(le.value):function L(B){return B instanceof m?B:new m(function(S){S(B)})}(le.value).then(C,P)}Y((V=V.apply(R,K||[])).next())})},O=this&&this.__generator||function(R,K){var V,L,B,S,m={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return S={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(S[Symbol.iterator]=function(){return this}),S;function C(Y){return function(le){return function P(Y){if(V)throw new TypeError("Generator is already executing.");for(;m;)try{if(V=1,L&&(B=2&Y[0]?L.return:Y[0]?L.throw||((B=L.return)&&B.call(L),0):L.next)&&!(B=B.call(L,Y[1])).done)return B;switch(L=0,B&&(Y=[2&Y[0],B.value]),Y[0]){case 0:case 1:B=Y;break;case 4:return m.label++,{value:Y[1],done:!1};case 5:m.label++,L=Y[1],Y=[0];continue;case 7:Y=m.ops.pop(),m.trys.pop();continue;default:if(!(B=(B=m.trys).length>0&&B[B.length-1])&&(6===Y[0]||2===Y[0])){m=0;continue}if(3===Y[0]&&(!B||Y[1]>B[0]&&Y[1]0){var C=[];m.to.forEach(function(Y){Y.connectionId&&C.push(Y.connectionId)}),S.to=C}else S.to=[];S.data=m.data?m.data:"";var P=m.type?m.type:"signal";P&&"signal:"!==P.substring(0,7)&&(P="signal:"+P),S.type=P,V.openvidu.sendRequest("sendMessage",{message:JSON.stringify(S)},function(Y,le){return Y?B(Y):L()})})},K.prototype.on=function(m,V){var L,B,S,C;return R.prototype.onAux.call(this,m,"Event '"+m+"' triggered by 'Session'",V),"publisherStartSpeaking"===m&&(this.remoteConnections.forEach(function(P){var Y;(null===(Y=P.stream)||void 0===Y?void 0:Y.hasAudio)&&P.stream.enableHarkSpeakingEvent()}),(null===(B=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===B?void 0:B.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===m&&(this.remoteConnections.forEach(function(P){var Y;(null===(Y=P.stream)||void 0===Y?void 0:Y.hasAudio)&&P.stream.enableHarkStoppedSpeakingEvent()}),(null===(C=null===(S=this.connection)||void 0===S?void 0:S.stream)||void 0===C?void 0:C.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},K.prototype.once=function(m,V){var L,B,S,C;return R.prototype.onceAux.call(this,m,"Event '"+m+"' triggered once by 'Session'",V),"publisherStartSpeaking"===m&&(this.remoteConnections.forEach(function(P){var Y;(null===(Y=P.stream)||void 0===Y?void 0:Y.hasAudio)&&P.stream.enableOnceHarkSpeakingEvent()}),(null===(B=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===B?void 0:B.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===m&&(this.remoteConnections.forEach(function(P){var Y;(null===(Y=P.stream)||void 0===Y?void 0:Y.hasAudio)&&P.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(C=null===(S=this.connection)||void 0===S?void 0:S.stream)||void 0===C?void 0:C.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},K.prototype.off=function(m,V){var B,S,C,P,L=this;return R.prototype.offAux.call(this,m,V),"publisherStartSpeaking"===m&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(Y){var le;(null===(le=Y.stream)||void 0===le?void 0:le.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,Y.stream.streamManager)||Y.stream.disableHarkSpeakingEvent(!1))}),(null===(S=null===(B=this.connection)||void 0===B?void 0:B.stream)||void 0===S?void 0:S.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===m&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(Y){var le;(null===(le=Y.stream)||void 0===le?void 0:le.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,Y.stream.streamManager)||Y.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(P=null===(C=this.connection)||void 0===C?void 0:C.stream)||void 0===P?void 0:P.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},K.prototype.onParticipantJoined=function(m){var V=this;this.getConnection(m.id,"").then(function(L){k.warn("Connection "+L.connectionId+" already exists in connections list")}).catch(function(L){var B=new F.Connection(V,m);V.remoteConnections.set(m.id,B),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",B,"")])})},K.prototype.onParticipantLeft=function(m){var V=this;this.getRemoteConnection(m.connectionId,"onParticipantLeft").then(function(L){if(L.stream){var B=L.stream,S=new g.StreamEvent(!0,V,"streamDestroyed",B,m.reason);V.ee.emitEvent("streamDestroyed",[S]),S.callDefaultBehavior(),V.remoteStreamsCreated.delete(B.streamId)}V.remoteConnections.delete(L.connectionId),V.ee.emitEvent("connectionDestroyed",[new p.ConnectionEvent(!1,V,"connectionDestroyed",L,m.reason)])}).catch(function(L){k.error(L)})},K.prototype.onParticipantPublished=function(m){var B,V=this,L=function(C){V.remoteConnections.set(C.connectionId,C),V.remoteStreamsCreated.get(C.stream.streamId)||V.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,V,"streamCreated",C.stream,"")]),V.remoteStreamsCreated.set(C.stream.streamId,!0)};this.getRemoteConnection(m.id,"onParticipantPublished").then(function(S){B=S,m.metadata=S.data,B.remoteOptions=m,B.initRemoteStreams(m.streams),L(B)}).catch(function(S){B=new F.Connection(V,m),L(B)})},K.prototype.onParticipantUnpublished=function(m){var V=this;m.connectionId===this.connection.connectionId?this.stopPublisherStream(m.reason):this.getRemoteConnection(m.connectionId,"onParticipantUnpublished").then(function(L){var B=new g.StreamEvent(!0,V,"streamDestroyed",L.stream,m.reason);V.ee.emitEvent("streamDestroyed",[B]),B.callDefaultBehavior();var S=L.stream.streamId;V.remoteStreamsCreated.delete(S),L.removeStream(S)}).catch(function(L){k.error(L)})},K.prototype.onParticipantEvicted=function(m){m.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,m.reason)},K.prototype.onNewMessage=function(m){var V=this;k.info("New signal: "+JSON.stringify(m));var L=m.type?m.type.replace(/^(signal:)/,""):void 0;m.from?this.getConnection(m.from,"Connection '"+m.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(B){V.ee.emitEvent("signal",[new ee.SignalEvent(V,L,m.data,B)]),m.type&&"signal"!==m.type&&V.ee.emitEvent(m.type,[new ee.SignalEvent(V,L,m.data,B)])}).catch(function(B){k.error(B)}):(this.ee.emitEvent("signal",[new ee.SignalEvent(this,L,m.data,void 0)]),m.type&&"signal"!==m.type&&this.ee.emitEvent(m.type,[new ee.SignalEvent(this,L,m.data,void 0)]))},K.prototype.onStreamPropertyChanged=function(m){var V=this,L=function(S){if(S.stream&&S.stream.streamId===m.streamId){var C=S.stream,P=void 0;switch(m.property){case"audioActive":P=C.audioActive,m.newValue="true"===m.newValue,C.audioActive=m.newValue;break;case"videoActive":P=C.videoActive,m.newValue="true"===m.newValue,C.videoActive=m.newValue;break;case"videoDimensions":P=C.videoDimensions,m.newValue=JSON.parse(JSON.parse(m.newValue)),C.videoDimensions=m.newValue;break;case"filter":P=C.filter,m.newValue=Object.keys(m.newValue).length>0?m.newValue:void 0,void 0!==m.newValue?(C.filter=new f.Filter(m.newValue.type,m.newValue.options),C.filter.stream=C,m.newValue.lastExecMethod&&(C.filter.lastExecMethod=m.newValue.lastExecMethod)):delete C.filter,m.newValue=C.filter}V.ee.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(V,C,m.property,m.newValue,P,m.reason)]),C.streamManager&&C.streamManager.emitEvent("streamPropertyChanged",[new N.StreamPropertyChangedEvent(C.streamManager,C,m.property,m.newValue,P,m.reason)])}else k.error("No stream with streamId '"+m.streamId+"' found for connection '"+m.connectionId+"' on 'streamPropertyChanged' event")};m.connectionId===this.connection.connectionId?L(this.connection):this.getRemoteConnection(m.connectionId,"onStreamPropertyChanged").then(function(B){L(B)}).catch(function(B){k.error(B)})},K.prototype.onConnectionPropertyChanged=function(m){var V;switch(m.property){case"role":V=this.connection.role.slice(),this.connection.role=m.newValue,this.connection.localOptions.role=m.newValue;break;case"record":V=this.connection.record,m.newValue="true"===m.newValue,this.connection.record=m.newValue,this.connection.localOptions.record=m.newValue}this.ee.emitEvent("connectionPropertyChanged",[new ne.ConnectionPropertyChangedEvent(this,this.connection,m.property,m.newValue,V)])},K.prototype.onNetworkQualityLevelChangedChanged=function(m){var V=this;m.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new z.NetworkQualityLevelChangedEvent(this,m.newValue,m.oldValue,this.connection)]):this.getConnection(m.connectionId,"Connection not found for connectionId "+m.connectionId).then(function(L){V.ee.emitEvent("networkQualityLevelChanged",[new z.NetworkQualityLevelChangedEvent(V,m.newValue,m.oldValue,L)])}).catch(function(L){k.error(L)})},K.prototype.recvIceCandidate=function(m){var L=new RTCIceCandidate({candidate:m.candidate,sdpMLineIndex:m.sdpMLineIndex,sdpMid:m.sdpMid});this.getConnection(m.senderConnectionId,"Connection not found for connectionId "+m.senderConnectionId+" owning endpoint "+m.endpointName+". Ice candidate will be ignored: "+L).then(function(B){var S=B.stream;S.getWebRtcPeer().addIceCandidate(L).catch(function(C){k.error("Error adding candidate for "+S.streamId+" stream of endpoint "+m.endpointName+": "+C)})}).catch(function(B){k.error(B)})},K.prototype.onSessionClosed=function(m){k.info("Session closed: "+JSON.stringify(m));var V=m.sessionId;void 0!==V?this.ee.emitEvent("session-closed",[{session:V}]):k.warn("Session undefined on session closed",m)},K.prototype.onLostConnection=function(m){k.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,m)},K.prototype.onRecoveredConnection=function(){k.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},K.prototype.onMediaError=function(m){k.error("Media error: "+JSON.stringify(m));var V=m.error;V?this.ee.emitEvent("error-media",[{error:V}]):k.warn("Received undefined media error:",m)},K.prototype.onRecordingStarted=function(m){this.ee.emitEvent("recordingStarted",[new x.RecordingEvent(this,"recordingStarted",m.id,m.name)])},K.prototype.onRecordingStopped=function(m){this.ee.emitEvent("recordingStopped",[new x.RecordingEvent(this,"recordingStopped",m.id,m.name,m.reason)])},K.prototype.onFilterEventDispatched=function(m){var V=this,L=m.connectionId;this.getConnection(L,"No connection found for connectionId "+L).then(function(B){k.info('Filter event of type "'.concat(m.eventType,'" dispatched'));var S=B.stream;if(!S||!S.filter)return k.error('Filter event of type "'.concat(m.eventType,'" dispatched for stream ').concat(S.streamId," but there is no ").concat(S?"filter":"stream"," defined"));var C=S.filter.handlers.get(m.eventType);if(!C||"function"!=typeof C){var P=Array.from(S.filter.handlers.keys());return k.error('Filter event of type "'.concat(m.eventType,'" not handled or not a function! Active filter events: ').concat(P.join(",")))}C.call(V,new D.FilterEvent(S.filter,m.eventType,m.data))})},K.prototype.onForciblyReconnectSubscriber=function(m){var V=this;return new Promise(function(L,B){V.getRemoteConnection(m.connectionId,"onForciblyReconnectSubscriber").then(function(S){if(!S.stream||S.stream.streamId!==m.streamId){var Y="No stream with streamId '"+m.streamId+"' found for connection '"+m.connectionId+"' on 'streamPropertyChanged' event";return k.error(Y),B(Y)}var C=S.stream;if(C.setupReconnectionEventEmitter(L,B)){if(null!=C.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return C.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=m,B("Ongoing forced subscriber reconnection");C.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=m;var P=function(){var ge=C.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete C.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,V.onForciblyReconnectSubscriber(ge)};return C.reconnectionEventEmitter.once("success",function(){P()}),void C.reconnectionEventEmitter.once("error",function(){P()})}C.completeWebRtcPeerReceive(!0,!0,m.sdpOffer).then(function(){return C.finalResolveForSubscription(!0,L)}).catch(function(le){return C.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(m.streamId,": ").concat(le.toString()),B)})}).catch(function(S){return k.error(S),B(S)})})},K.prototype.reconnectBrokenStreams=function(){k.info("Re-establishing media connections...");var m=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(k.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),m=!0),this.remoteConnections.forEach(function(V){V.stream&&V.stream.streamIceConnectionStateBroken()&&(k.warn("Re-establishing Subscriber "+V.stream.streamId),V.stream.initWebRtcPeerReceive(!0),m=!0)}),m||k.info("There were no media streams in need of a reconnection")},K.prototype.emitEvent=function(m,V){this.ee.emitEvent(m,V)},K.prototype.leave=function(m,V){var L=this;if(k.info("Leaving Session (forced="+(m=!!m)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||m?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(S,C){S&&k.error("leaveRoom error: ".concat(JSON.stringify(S))),L.openvidu.closeWs()}),this.stopPublisherStream(V),!this.connection.disposed){var B=new Q.SessionDisconnectedEvent(this,V);this.ee.emitEvent("sessionDisconnected",[B]),B.callDefaultBehavior()}}else k.warn("You were not connected to the session "+this.sessionId);k.flush()},K.prototype.initializeParams=function(m){return{token:m||"",session:this.sessionId,platform:X.getDescription()?X.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},K.prototype.sendVideoData=function(m,V,L,B){var C,P,S=this;if(void 0===V&&(V=1),void 0===L&&(L=!1),void 0===B&&(B=1),X.isChromeBrowser()||X.isChromeMobileBrowser()||X.isOperaBrowser()||X.isOperaMobileBrowser()||X.isEdgeBrowser()||X.isEdgeMobileBrowser()||X.isElectron()||X.isSafariBrowser()&&!X.isIonicIos()||X.isAndroidBrowser()||X.isSamsungBrowser()||X.isIonicAndroid()||X.isIOSWithSafari()){var Y=function(){return q(S,void 0,void 0,function(){var ke,Ie,je;return O(this,function(Ue){switch(Ue.label){case 0:return"connected"!==(ke=m.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,ke.getStats()];case 1:Ie=Ue.sent(),je=[],Ie.forEach(function(Ke){"frameWidth"in Ke&&"frameHeight"in Ke&&0===je.length&&je.push(Ke)}),je.length>0&&this.openvidu.sendRequest("videoData",{height:je[0].frameHeight,width:je[0].frameWidth,videoActive:null!=m.stream.videoActive&&m.stream.videoActive,audioActive:null!=m.stream.audioActive&&m.stream.audioActive},function(Ke,Je){Ke&&k.error("Error sending 'videoData' event",Ke)}),Ue.label=2;case 2:return[2]}})})};if(L){var le=1;this.videoDataInterval=setInterval(function(){le0)return!0;var C=0;if(L){var P=L.ee.getListeners(m);V&&(P=P.filter(function(Y){return Y.once})),C=P.length}return C>0},K.prototype.getTokenParams=function(m){var V=m.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(V){var L={protocol:V[1],host:V[2],hostname:V[3],port:V[4],pathname:V[5],search:V[6],hash:V[7]},B=m.split("?"),S=decodeURI(B[1]).split("&").map(function(C){return C.split("=")}).reduce(function(C,P){return C[P[0]]=P[1],C},{});return{sessionId:S.sessionId,secret:S.secret,recorder:S.recorder,webrtcStatsInterval:S.webrtcStatsInterval,sendBrowserLogs:S.sendBrowserLogs,edition:S.edition,wsUri:"wss://"+L.host+"/openvidu",httpUri:"https://"+L.host}}throw new Error('Token not valid: "'.concat(m,'"'))},K.prototype.connectAux=function(m){var V=this;return new Promise(function(L,B){V.openvidu.startWs(function(S){if(S)return B(S);var C=V.initializeParams(m);V.openvidu.sendRequest("joinRoom",C,function(P,Y){if(P)return B(P);V.processJoinRoomResponse(Y,m),V.connection=new F.Connection(V,Y);var le={connections:new Array,streams:new Array};return Y.value.forEach(function(ke){var Ie=new F.Connection(V,ke);V.remoteConnections.set(Ie.connectionId,Ie),le.connections.push(Ie),Ie.stream&&(V.remoteStreamsCreated.set(Ie.stream.streamId,!0),le.streams.push(Ie.stream))}),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",V.connection,"")]),le.connections.forEach(function(ke){V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",ke,"")])}),le.streams.forEach(function(ke){V.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,V,"streamCreated",ke,"")])}),L()})})})},K.prototype.stopPublisherStream=function(m){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[m]))},K.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},K.prototype.stringClientMetadata=function(m){return"string"!=typeof m?JSON.stringify(m):m},K.prototype.getConnection=function(m,V){var L=this;return new Promise(function(B,S){var C=L.remoteConnections.get(m);return C?B(C):L.connection.connectionId===m?B(L.connection):S(new M.OpenViduError(M.OpenViduErrorName.GENERIC_ERROR,V))})},K.prototype.getRemoteConnection=function(m,V){var L=this;return new Promise(function(B,S){var C=L.remoteConnections.get(m);if(C)return B(C);var P="Remote connection "+m+" unknown when '"+V+"'. Existing remote connections: "+JSON.stringify(L.remoteConnections.keys());return S(new M.OpenViduError(M.OpenViduErrorName.GENERIC_ERROR,P))})},K.prototype.processToken=function(m){var V=this.getTokenParams(m);this.sessionId=V.sessionId,V.secret&&(this.openvidu.secret=V.secret),V.recorder&&(this.openvidu.recorder=!0),V.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=V.webrtcStatsInterval),V.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=V.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===V.edition||"enterprise"===V.edition,this.openvidu.isEnterprise="enterprise"===V.edition,this.openvidu.wsUri=V.wsUri,this.openvidu.httpUri=V.httpUri},K.prototype.processJoinRoomResponse=function(m,V){if(this.sessionId=m.session,null!=m.customIceServers&&m.customIceServers.length>0){this.openvidu.iceServers=[];for(var L=0,B=m.customIceServers;L0&&R[R.length-1])&&(6===L[0]||2===L[0])){k=0;continue}if(3===L[0]&&(!R||L[1]>R[0]&&L[1]0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=k,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ee.TypeOfVideo.CUSTOM:this.isSendScreen()?ee.TypeOfVideo.SCREEN:ee.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var H;X.streamManager.updateMediaStream(X.mediaStream),b.debug("Video srcObject ["+(null===(H=X.mediaStream)||void 0===H?void 0:H.id)+"] updated in stream ["+X.streamId+"]")})}return w.prototype.reconnect=function(){return this.reconnectStream("API")},w.prototype.applyFilter=function(_,k){var X=this;return new Promise(function(H,R){return E(X,void 0,void 0,function(){var K,m,V,L,B,S,C=this;return q(this,function(P){if(this.filter)return[2,R(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(K=function(le,ge){if(le)return b.error("Error applying filter for Stream "+C.streamId,le),R(401===le.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):le);b.info("Filter successfully applied on Stream "+C.streamId);var ke=C.filter;return C.filter=new O.Filter(_,k),C.filter.stream=C,ge&&(C.session.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(C.session,C,"filter",C.filter,ke,"applyFilter")]),C.streamManager.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(C.streamManager,C,"filter",C.filter,ke,"applyFilter")])),H(C.filter)},_.startsWith("VB:")){if(!this.hasVideo)return[2,R(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,R(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(m=this.session.token?this.session.token:k.token))return[2,R(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(V=this.session.getTokenParams(m)).edition&&"enterprise"!==V.edition)return[2,R(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];m=encodeURIComponent(btoa(m)),b.info("Applying Virtual Background to stream "+this.streamId),L=function(){return E(C,void 0,void 0,function(){var le,ge,ke,Ie,je,Ke;return q(this,function(Je){switch(Je.label){case 0:return Je.trys.push([0,8,,9]),le=this.streamId+"_"+(0,ne.v4)(),ge=this.mediaStream.clone(),(ke=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+le,ke.srcObject=ge,ke.muted=!0,this.virtualBackgroundSourceElements={videoClone:ke,mediaStreamClone:ge},VirtualBackground.VirtualBackground.hideHtmlElement(ke,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(ke,le),[4,ke.play()];case 1:switch(Je.sent(),Ie=new VirtualBackground.VirtualBackground({id:le,openviduServerUrl:new URL(V.httpUri),openviduToken:m,inputVideo:ke,inputResolution:"160x96",outputFramerate:24}),je=void 0,_){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,Ie.backgroundBlur(k)];case 3:case 5:return je=Je.sent(),[3,7];case 4:return[4,Ie.backgroundImage(k)];case 6:throw new Error("Unknown Virtual Background filter: "+_);case 7:return this.virtualBackgroundSinkElements={VB:Ie,video:je},ke.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),K(void 0,!1),[3,9];case 8:return Ke=Je.sent(),K(Ke.name===Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Ke.message):Ke,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((B=document.createElement("script")).type="text/javascript",B.src=V.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+m,B.onload=function(){return E(C,void 0,void 0,function(){var Y;return q(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,,3]),[4,L()];case 1:return le.sent(),H(new O.Filter(_,k)),[3,3];case 2:return Y=le.sent(),R(Y),[3,3];case 3:return[2]}})})},document.body.appendChild(B)):L().then(function(){return H(new O.Filter(_,k))}).catch(function(Y){return R(Y)})}else{if(!this.session.sessionConnected())return[2,R(this.session.notConnectedError())];b.info("Applying server filter to stream "+this.streamId),"string"!=typeof(S=k=null!=k?k:{})&&(S=JSON.stringify(S)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:_,options:S},function(Y,le){K(Y,!0)})}return[2]})})})},w.prototype.removeFilter=function(){return E(this,void 0,void 0,function(){return q(this,function(_){switch(_.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,_.sent()]}})})},w.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},w.prototype.getMediaStream=function(){return this.mediaStream},w.prototype.removeFilterAux=function(_){var k=this;return new Promise(function(X,H){return E(k,void 0,void 0,function(){var R,K,m,L,V=this;return q(this,function(B){switch(B.label){case 0:if(R=function(C,P){if(C)return delete V.filter,b.error("Error removing filter for Stream "+V.streamId,C),H(401===C.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):C);b.info("Filter successfully removed from Stream "+V.streamId);var Y=V.filter;return delete V.filter,P&&(V.session.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(V.session,V,"filter",V.filter,Y,"applyFilter")]),V.streamManager.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(V.streamManager,V,"filter",V.filter,Y,"applyFilter")])),X()},!this.filter)return[3,12];if(!(null===(L=this.filter)||void 0===L?void 0:L.type.startsWith("VB:")))return[3,10];B.label=1;case 1:return B.trys.push([1,8,,9]),K=this.virtualBackgroundSourceElements.mediaStreamClone,_?[3,6]:this.streamManager.remote?[4,this.streamManager.replaceTrackInMediaStream(K.getVideoTracks()[0],!1)]:[3,3];case 2:return B.sent(),[3,5];case 3:return[4,this.streamManager.replaceTrackAux(K.getVideoTracks()[0],!1)];case 4:B.sent(),B.label=5;case 5:return[3,7];case 6:K.getTracks().forEach(function(S){return S.stop()}),B.label=7;case 7:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,R(void 0,!1)];case 8:return m=B.sent(),[2,R(m,!1)];case 9:return[3,11];case 10:if(!this.session.sessionConnected())return[2,H(this.session.notConnectedError())];b.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(S,C){return R(S,!0)}),B.label=11;case 11:return[3,13];case 12:return[2,H(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 13:return[2]}})})})},w.prototype.setMediaStream=function(_){this.mediaStream=_},w.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},w.prototype.getWebRtcPeer=function(){return this.webRtcPeer},w.prototype.subscribeToMyRemote=function(_){this.isSubscribeToRemote=_},w.prototype.setOutboundStreamOptions=function(_){this.outboundStreamOpts=_},w.prototype.subscribe=function(){var _=this;return new Promise(function(k,X){_.initWebRtcPeerReceive(!1).then(function(){return k()}).catch(function(H){return X(H)})})},w.prototype.publish=function(){var _=this;return new Promise(function(k,X){_.isLocalStreamReadyToPublish?_.initWebRtcPeerSend(!1).then(function(){return k()}).catch(function(H){return X(H)}):_.ee.once("stream-ready-to-publish",function(){_.publish().then(function(){return k()}).catch(function(H){return X(H)})})})},w.prototype.disposeWebRtcPeer=function(){var _;this.webRtcPeer&&(this.webRtcPeer.dispose(),_=this.webRtcPeer.getId()),this.stopWebRtcStats(),b.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+_+"] from 'Stream' with id ["+this.streamId+"] is now closed")},w.prototype.disposeMediaStream=function(){return E(this,void 0,void 0,function(){var _;return q(this,function(k){switch(k.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];k.label=1;case 1:return k.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return k.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return _=k.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),_),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(X){X.stop()}),this.mediaStream.getVideoTracks().forEach(function(X){X.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(X){X.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(X){X.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),b.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},w.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},w.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},w.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},w.prototype.isSendScreen=function(){var _="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return W.isElectron()&&(_="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&_},w.prototype.enableHarkSpeakingEvent=function(){var _=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){_.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(_.session,"publisherStartSpeaking",_.connection,_.streamId)]),_.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(_.streamManager,"publisherStartSpeaking",_.connection,_.streamId)]),_.harkSpeakingEnabledOnce=!1}))},w.prototype.enableOnceHarkSpeakingEvent=function(){var _=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){_.harkSpeakingEnabledOnce&&(_.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(_.session,"publisherStartSpeaking",_.connection,_.streamId)]),_.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(_.streamManager,"publisherStartSpeaking",_.connection,_.streamId)])),_.disableHarkSpeakingEvent(!0)}))},w.prototype.disableHarkSpeakingEvent=function(_){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,_){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},w.prototype.enableHarkStoppedSpeakingEvent=function(){var _=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){_.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(_.session,"publisherStopSpeaking",_.connection,_.streamId)]),_.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(_.streamManager,"publisherStopSpeaking",_.connection,_.streamId)]),_.harkStoppedSpeakingEnabledOnce=!1}))},w.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var _=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){_.harkStoppedSpeakingEnabledOnce&&(_.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(_.session,"publisherStopSpeaking",_.connection,_.streamId)]),_.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(_.streamManager,"publisherStopSpeaking",_.connection,_.streamId)])),_.disableHarkStoppedSpeakingEvent(!0)}))},w.prototype.disableHarkStoppedSpeakingEvent=function(_){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,_){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},w.prototype.enableHarkVolumeChangeEvent=function(_){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||_)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(X){var R={newValue:X,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=X,k.streamManager.emitEvent("streamAudioVolumeChange",[new D.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",R)])})):this.harkVolumeChangeEnabled=!0},w.prototype.enableOnceHarkVolumeChangeEvent=function(_){var k=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||_)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(X){var R={newValue:X,oldValue:k.speechEvent.oldVolumeValue};k.speechEvent.oldVolumeValue=X,k.disableHarkVolumeChangeEvent(!0),k.streamManager.emitEvent("streamAudioVolumeChange",[new D.StreamManagerEvent(k.streamManager,"streamAudioVolumeChange",R)])})):this.harkVolumeChangeEnabledOnce=!0},w.prototype.disableHarkVolumeChangeEvent=function(_){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,_){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},w.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},w.prototype.getSelectedIceCandidate=function(){var _=this;return new Promise(function(k,X){_.webRtcStats.getSelectedIceCandidateInfo().then(function(H){return k(H)}).catch(function(H){return X(H)})})},w.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},w.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},w.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return b.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var _=this.getRTCPeerConnection().iceConnectionState;return"connected"!==_&&"completed"!==_},w.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var _=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};_.interval="number"==typeof _.interval?_.interval:100,_.threshold="number"==typeof _.threshold?_.threshold:-50,this.speechEvent=z(this.mediaStream,_)}return!0}return!1},w.prototype.setupReconnectionEventEmitter=function(_,k){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new M,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return _()}),this.reconnectionEventEmitter.once("error",function(X){return k(X)}),!0)},w.prototype.initWebRtcPeerSend=function(_){var k=this;return new Promise(function(X,H){var R;if(_){if(k.setupReconnectionEventEmitter(X,H))return}else k.initHarkEvents();var m=function(S){var C;return _&&(null===(C=k.reconnectionEventEmitter)||void 0===C||C.emitEvent("error",[S]),delete k.reconnectionEventEmitter),H(S)},L={mediaConstraints:{audio:k.hasAudio,video:k.hasVideo},simulcast:null!==(R=k.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==R?R:k.session.openvidu.videoSimulcast,onIceCandidate:k.connection.sendIceCandidate.bind(k.connection),onIceConnectionStateException:function(S,C,P){k.session.emitEvent("exception",[new j.ExceptionEvent(k.session,S,k,C,P)])},iceServers:k.getIceServersConf(),mediaStream:k.mediaStream,mediaServer:k.session.openvidu.mediaServer,typeOfVideo:k.typeOfVideo?ee.TypeOfVideo[k.typeOfVideo]:void 0};"mediasoup"!==k.session.openvidu.mediaServer&&(L.simulcast=!1),_&&k.disposeWebRtcPeer(),k.webRtcPeer=k.displayMyRemote()?new f.WebRtcPeerSendrecv(L):new f.WebRtcPeerSendonly(L),k.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+k.connection.connectionId),k.webRtcPeer.createOffer().then(function(B){k.webRtcPeer.processLocalOffer(B).then(function(){!function(S){b.debug("Sending SDP offer to publish as "+k.streamId,S);var P,C=_?"reconnectStream":"publishVideo";if(_)P={stream:k.streamId,sdpString:S};else{var Y=void 0;k.isSendVideo()&&(Y="undefined"!=typeof MediaStreamTrack&&k.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ee.TypeOfVideo.CUSTOM:k.isSendScreen()?ee.TypeOfVideo.SCREEN:ee.TypeOfVideo.CAMERA),P={doLoopback:k.displayMyRemote()||!1,hasAudio:k.isSendAudio(),hasVideo:k.isSendVideo(),audioActive:k.audioActive,videoActive:k.videoActive,typeOfVideo:Y,frameRate:k.frameRate?k.frameRate:-1,videoDimensions:JSON.stringify(k.videoDimensions),filter:k.outboundStreamOpts.publisherProperties.filter,sdpOffer:S}}k.session.openvidu.sendRequest(C,P,function(le,ge){le?m(401===le.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(le)):k.webRtcPeer.processRemoteAnswer(ge.sdpAnswer).then(function(){k.streamId=ge.id,k.creationTime=ge.createdAt,k.isLocalStreamPublished=!0,k.publishedOnce=!0,k.displayMyRemote()&&(k.localMediaStreamWhenSubscribedToRemote=k.mediaStream,k.remotePeerSuccessfullyEstablished(_)),k.ee.emitEvent(_?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),k.initWebRtcStats(),b.info("'Publisher' ("+k.streamId+") successfully "+(_?"reconnected":"published")+" to session"),function(){var S;_&&(null===(S=k.reconnectionEventEmitter)||void 0===S||S.emitEvent("success"),delete k.reconnectionEventEmitter),X()}()}).catch(function(ke){m(ke)})})}(B.sdp)}).catch(function(S){m(new Error("(publish) SDP process local offer error: "+JSON.stringify(S)))})}).catch(function(B){m(new Error("(publish) SDP create offer error: "+JSON.stringify(B)))})})},w.prototype.finalResolveForSubscription=function(_,k){var X;return b.info("'Subscriber' ("+this.streamId+") successfully "+(_?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(_),this.initWebRtcStats(),_&&(null===(X=this.reconnectionEventEmitter)||void 0===X||X.emitEvent("success"),delete this.reconnectionEventEmitter),k()},w.prototype.finalRejectForSubscription=function(_,k,X){var H;return b.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(_?"reconnect":"subscribe")+": "+k.toString()),_&&(null===(H=this.reconnectionEventEmitter)||void 0===H||H.emitEvent("error",[k]),delete this.reconnectionEventEmitter),X(k)},w.prototype.initWebRtcPeerReceive=function(_){var k=this;return new Promise(function(X,H){_&&k.setupReconnectionEventEmitter(X,H)||("mediasoup"===k.session.openvidu.mediaServer?k.initWebRtcPeerReceiveFromServer(_).then(function(){return k.finalResolveForSubscription(_,X)}).catch(function(R){return k.finalRejectForSubscription(_,R,H)}):k.initWebRtcPeerReceiveFromClient(_).then(function(){return k.finalResolveForSubscription(_,X)}).catch(function(R){return k.finalRejectForSubscription(_,R,H)}))})},w.prototype.initWebRtcPeerReceiveFromClient=function(_){var k=this;return new Promise(function(X,H){k.completeWebRtcPeerReceive(_,!1).then(function(R){k.webRtcPeer.processRemoteAnswer(R.sdpAnswer).then(function(){return X()}).catch(function(K){return H(K)})}).catch(function(R){return H(R)})})},w.prototype.initWebRtcPeerReceiveFromServer=function(_){var k=this;return new Promise(function(X,H){k.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:k.streamId,reconnect:_},function(R,K){if(R)return H(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(R)));k.completeWebRtcPeerReceive(_,!1,K.sdpOffer).then(function(){return X()}).catch(function(m){return H(m)})})})},w.prototype.completeWebRtcPeerReceive=function(_,k,X){var H=this;return new Promise(function(R,K){b.debug("'Session.subscribe(Stream)' called");var m=function(B){b.debug("Sending local SDP ".concat(X?"answer":"offer"," to subscribe to ").concat(H.streamId),B);var S=_?"reconnectStream":"receiveVideoFrom",C={};C[_?"stream":"sender"]=H.streamId,X?C[_?"sdpString":"sdpAnswer"]=B:C.sdpOffer=B,_&&(C.forciblyReconnect=k),H.session.openvidu.sendRequest(S,C,function(P,Y){return P?K(new Error("Error on "+S+" : "+JSON.stringify(P))):R(Y)})},V={mediaConstraints:{audio:H.hasAudio,video:H.hasVideo},simulcast:!1,onIceCandidate:H.connection.sendIceCandidate.bind(H.connection),onIceConnectionStateException:function(B,S,C){H.session.emitEvent("exception",[new j.ExceptionEvent(H.session,B,H,S,C)])},iceServers:H.getIceServersConf(),mediaServer:H.session.openvidu.mediaServer,typeOfVideo:H.typeOfVideo?ee.TypeOfVideo[H.typeOfVideo]:void 0};_&&H.disposeWebRtcPeer(),H.webRtcPeer=new f.WebRtcPeerRecvonly(V),H.webRtcPeer.addIceConnectionStateChangeListener(H.streamId),X?H.webRtcPeer.processRemoteOffer(X).then(function(){H.webRtcPeer.createAnswer().then(function(L){H.webRtcPeer.processLocalAnswer(L).then(function(){m(L.sdp)}).catch(function(B){return K(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(B)))})}).catch(function(L){return K(new Error("(subscribe) SDP create answer error: "+JSON.stringify(L)))})}).catch(function(L){return K(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(L)))}):H.webRtcPeer.createOffer().then(function(L){H.webRtcPeer.processLocalOffer(L).then(function(){m(L.sdp)}).catch(function(B){return K(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(B)))})}).catch(function(L){return K(new Error("(subscribe) SDP create offer error: "+JSON.stringify(L)))})})},w.prototype.remotePeerSuccessfullyEstablished=function(_){_&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var k,X=0,H=this.webRtcPeer.pc.getReceivers();X0},w}();$.Stream=T},8613:function(_e,$,G){"use strict";var ee,E=this&&this.__extends||(ee=function(N,ne){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,M){z.__proto__=M}||function(z,M){for(var b in M)Object.prototype.hasOwnProperty.call(M,b)&&(z[b]=M[b])})(N,ne)},function(g,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function ne(){this.constructor=g}ee(g,N),g.prototype=null===N?Object.create(N):(ne.prototype=N.prototype,new ne)});Object.defineProperty($,"__esModule",{value:!0}),$.StreamManager=void 0;var x,q=G(8074),O=G(4006),F=G(4281),f=G(7507),d=G(6274),j=G(6946),p=G(543),D=j.OpenViduLogger.getInstance(),Q=function(ee){function g(N,ne){var z=ee.call(this)||this;if(z.videos=[],z.lazyLaunchVideoElementCreatedEvent=!1,x=p.PlatformUtils.getInstance(),z.stream=N,z.stream.streamManager=z,z.remote=!z.stream.isLocal(),ne){var M=void 0;"string"==typeof ne?M=document.getElementById(ne):ne instanceof HTMLElement&&(M=ne),M&&(z.firstVideoElement={targetElement:M,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(x.isSafariBrowser()||x.isIPhoneOrIPad()&&(x.isChromeMobileBrowser()||x.isEdgeMobileBrowser()||x.isOperaMobileBrowser()||x.isFirefoxMobileBrowser()))&&z.firstVideoElement.video.setAttribute("playsinline","true"),z.targetElement=M,z.element=M)}return z.canPlayListener=function(){z.deactivateStreamPlayingEventExceptionTimeout(),z.ee.emitEvent("streamPlaying",[new O.StreamManagerEvent(z,"streamPlaying",void 0)])},z}return E(g,ee),g.prototype.on=function(N,ne){return ee.prototype.onAux.call(this,N,"Event '"+N+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",ne),"videoElementCreated"===N&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new F.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===N&&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 O.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===N&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===N&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===N&&this.stream.enableHarkVolumeChangeEvent(!1)),this},g.prototype.once=function(N,ne){return ee.prototype.onceAux.call(this,N,"Event '"+N+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",ne),"videoElementCreated"===N&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new F.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===N&&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 O.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===N&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===N&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===N&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},g.prototype.off=function(N,ne){return ee.prototype.offAux.call(this,N,ne),"publisherStartSpeaking"===N&&0===this.ee.getListeners(N).length+this.stream.session.ee.getListeners(N).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===N&&0===this.ee.getListeners(N).length+this.stream.session.ee.getListeners(N).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===N&&0===this.ee.getListeners(N).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},g.prototype.addVideoElement=function(N){this.initializeVideoProperties(N),!this.remote&&this.stream.displayMyRemote()&&N.srcObject!==this.stream.getMediaStream()&&(N.srcObject=this.stream.getMediaStream());for(var ne=0,z=this.videos;ne=0;--ne)this.stream.session.streamManagers[ne]===this&&this.stream.session.streamManagers.splice(ne,1);this.videos.forEach(function(z){!!z.video&&!!z.video.removeEventListener&&z.video.removeEventListener("canplay",N.canPlayListener),z.canplayListenerAdded=!1,z.targetElement&&(z.video.parentNode.removeChild(z.video),N.ee.emitEvent("videoElementDestroyed",[new F.VideoElementEvent(z.video,N,"videoElementDestroyed")])),N.removeSrcObject(z),N.videos.filter(function(M){return!M.targetElement})})},g.prototype.disassociateVideo=function(N){for(var ne=!1,z=0;z0&&g[g.length-1])&&(6===M[0]||2===M[0])){x=0;continue}if(3===M[0]&&(!g||M[1]>g[0]&&M[1]=0;--Q)g[Q].id===this.stream.streamId&&g.splice(Q,1)}}},D}(q.Event);$.StreamEvent=j},4006:function(_e,$,G){"use strict";var F,E=this&&this.__extends||(F=function(d,j){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,D){p.__proto__=D}||function(p,D){for(var x in D)Object.prototype.hasOwnProperty.call(D,x)&&(p[x]=D[x])})(d,j)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function j(){this.constructor=f}F(f,d),f.prototype=null===d?Object.create(d):(j.prototype=d.prototype,new j)});Object.defineProperty($,"__esModule",{value:!0}),$.StreamManagerEvent=void 0;var O=function(F){function f(d,j,p){var D=F.call(this,!1,d,j)||this;return D.value=p,D}return E(f,F),f.prototype.callDefaultBehavior=function(){},f}(G(2345).Event);$.StreamManagerEvent=O},2798:function(_e,$,G){"use strict";var F,E=this&&this.__extends||(F=function(d,j){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,D){p.__proto__=D}||function(p,D){for(var x in D)Object.prototype.hasOwnProperty.call(D,x)&&(p[x]=D[x])})(d,j)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function j(){this.constructor=f}F(f,d),f.prototype=null===d?Object.create(d):(j.prototype=d.prototype,new j)});Object.defineProperty($,"__esModule",{value:!0}),$.StreamPropertyChangedEvent=void 0;var O=function(F){function f(d,j,p,D,x,Q){var ee=F.call(this,!1,d,"streamPropertyChanged")||this;return ee.stream=j,ee.changedProperty=p,ee.newValue=D,ee.oldValue=x,ee.reason=Q,ee}return E(f,F),f.prototype.callDefaultBehavior=function(){},f}(G(2345).Event);$.StreamPropertyChangedEvent=O},4281:function(_e,$,G){"use strict";var F,E=this&&this.__extends||(F=function(d,j){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,D){p.__proto__=D}||function(p,D){for(var x in D)Object.prototype.hasOwnProperty.call(D,x)&&(p[x]=D[x])})(d,j)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function j(){this.constructor=f}F(f,d),f.prototype=null===d?Object.create(d):(j.prototype=d.prototype,new j)});Object.defineProperty($,"__esModule",{value:!0}),$.VideoElementEvent=void 0;var O=function(F){function f(d,j,p){var D=F.call(this,!1,j,p)||this;return D.element=d,D}return E(f,F),f.prototype.callDefaultBehavior=function(){},f}(G(2345).Event);$.VideoElementEvent=O},6842:function(_e){function $(){var G={};this.forEach=function(E){for(var q in G){var O=G[q];for(var F in O)E(O[F])}},this.get=function(E,q){var O=G[q];if(null!=O)return O[E]},this.remove=function(E,q){var O=G[q];if(null!=O){for(var F in delete O[E],O)return!1;delete G[q]}},this.set=function(E,q,O){if(null==E)return this.remove(q,O);var F=G[O];null==F&&(G[O]=F={}),F[q]=E}}$.prototype.pop=function(G,E){var q=this.get(G,E);if(null!=q)return this.remove(G,E),q},_e.exports=$},5150:function(_e,$,G){var E=G(245);$.JsonRpcClient=E},245:function(_e,$,G){var E=G(3031),q=G(7182),O=G(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var f="RECONNECTING",d="CONNECTED",j="DISCONNECTED",p=O.getInstance();_e.exports=function D(x){var M,Q=this,ee=x.ws,g=-1,N=0,ne=!0,z=!1,b=j,W=ee.onreconnecting,T=ee.onreconnected,w=ee.onconnected,_=ee.onerror;x.rpc.pull=function(L,B){B.reply(null,"push")},ee.onreconnecting=function(){p.debug("--------- ONRECONNECTING -----------"),b!==f?(V(),b=f,W&&W()):p.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},ee.onreconnected=function(){p.debug("--------- ONRECONNECTED -----------"),b!==d?(b=d,R(),T&&T()):p.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},ee.onconnected=function(){p.debug("--------- ONCONNECTED -----------"),b!==d?(b=d,ne=!0,m(),w&&w()):p.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},ee.onerror=function(L){p.debug("--------- ONERROR -----------"),b=j,V(),_&&_(L)};var k=new q(ee);p.debug("Connecting websocket to URI: "+ee.uri);var H=new E(E.packers.JsonRPC,{request_timeout:x.rpc.requestTimeout,ping_request_timeout:x.rpc.heartbeatRequestTimeout},k,function(L){p.debug("Received request: "+JSON.stringify(L));try{var B=x.rpc[L.method];void 0===B?p.error("Method "+L.method+" not registered in client"):B(L.params,L)}catch(S){p.error("Exception processing request: "+JSON.stringify(L)),p.error(S)}});function R(){p.debug("notReconnectIfNumLessThan = "+N+" (old="+g+")"),g=N}function K(){if(ne){var L=null;(0==N||N==g)&&(L={interval:x.heartbeat||5e3}),N++,Q.send("ping",L,(B=N,function(S,C){S&&(p.debug("Error in ping request #"+B+" ("+S.message+")"),B>g&&(ne=!1,R(),p.debug("Server did not respond to ping message #"+B+". Reconnecting... "),k.reconnectWs()))}))}else p.debug("Trying to send ping, but ping is not enabled");var B}function m(){z||(p.debug("Starting ping (if configured)"),z=!0,null!=x.heartbeat&&(M=setInterval(K,x.heartbeat),K()))}function V(){clearInterval(M),z=!1,ne=!1,N=-1,H.cancel()}this.send=function(L,B,S){var C=Date.now();H.encode(L,B,function(P,Y){if(P){try{p.error("ERROR:"+P.message+" in Request: method:"+L+" params:"+JSON.stringify(B)+" request:"+P.request),P.data&&p.error("ERROR DATA:"+JSON.stringify(P.data))}catch(le){}P.requestTime=C}S&&(null!=Y&&"pong"!==Y.value&&p.debug("Response: "+JSON.stringify(Y)),S(P,Y))})},this.close=function(L,B){p.debug("Closing with code: "+L+" because: "+B),null!=M&&(p.debug("Clearing ping interval"),clearInterval(M)),z=!1,ne=!1,k.close(L,B)},this.reconnect=function(){k.reconnectWs()},this.resetPing=function(){ne=!0,N=0,m()},this.getReadyState=function(){return k.getReadyState()}}},593:function(_e,$,G){var E=G(7182);$.WebSocketWithReconnection=E},7182:function(_e,$,G){"use strict";var q=G(6946).OpenViduLogger.getInstance();_e.exports=function D(x){var ee,Q=!1,g=x.uri,N=!1,ne=new WebSocket(g);ne.onopen=function(){q.debug("WebSocket connected to "+g),x.onconnected&&x.onconnected()},ne.onerror=function(T){q.error("Could not connect to "+g+" (invoking onerror if defined)",T),x.onerror&&x.onerror(T)};var z=function(){3===ne.readyState?Q?q.debug("Connection closed by user"):x.ismasternodecrashed()?q.error("Master Node has crashed. Stopping reconnection process"):(q.debug("Connection closed unexpectedly. Reconnecting..."),M(2e3,1)):q.debug("Close callback from previous websocket. Ignoring it")};function M(T,w){if(q.debug("reconnect (attempt #"+w+", max="+T+")"),1===w){if(N)return void q.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");N=!0,x.onreconnecting&&x.onreconnecting()}!function W(T,w){q.debug("Reconnection attempt #"+w),ne.close(4104,"Connection closed for reconnection"),g=function b(T){var w=new URLSearchParams(new URL(T).search);return w.has("reconnect")||(T=Array.from(w).length>0?T+"&reconnect=true":T+"?reconnect=true"),T}(g),(ne=new WebSocket(g)).onopen=function(){q.debug("Reconnected to "+g+" after "+w+" attempts..."),N=!1,ee(),x.onreconnected()&&x.onreconnected(),ne.onclose=z},ne.onerror=function(_){q.warn("Reconnection error: ",_),w===T?x.ondisconnect&&x.ondisconnect():setTimeout(function(){M(T,w+1)},3e3)}}(T,w)}ne.onclose=z,this.close=function(T,w){Q=!0,ne.close(T,w)},this.reconnectWs=function(){q.debug("reconnectWs"),M(2e3,1)},this.send=function(T){ne.send(T)},this.addEventListener=function(T,w){(ee=function(){ne.addEventListener(T,w)})()},this.getReadyState=function(){return ne.readyState}}},3031:function(_e,$,G){var E=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(g){E=!0}Function.prototype.bind||(Function.prototype.bind=function(g){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var N=Array.prototype.slice.call(arguments,1),ne=this,z=function(){},M=function(){return ne.apply(this instanceof z&&g?this:g,N.concat(Array.prototype.slice.call(arguments)))};return z.prototype=this.prototype,M.prototype=new z,M});var q=G(9069).EventEmitter,O=G(3894),F=G(8080),f=G(6842),d=5e3;function p(g){if(g){if(g instanceof Function)return{send:g};if(g.send instanceof Function)return g;if(g.postMessage instanceof Function)return g.send=g.postMessage,g;if(g.write instanceof Function)return g.send=g.write,g;if(void 0===g.onmessage&&!(g.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function D(g,N){E?(this.method=g,this.params=N):(Object.defineProperty(this,"method",{value:g,enumerable:!0}),Object.defineProperty(this,"params",{value:N,enumerable:!0}))}function x(g,N,ne,z){var M=this;if(!g)throw new SyntaxError("Packer is not defined");if(!g.pack||!g.unpack)throw new SyntaxError("Packer is invalid");var b=function j(g){if(!g)return{};for(var N in g){var ne=g[N];"string"==typeof ne&&(g[N]={response:ne})}return g}(g.responseMethods);if(N instanceof Function){if(null!=ne)throw new SyntaxError("There can't be parameters after onRequest");z=N,ne=void 0,N=void 0}if(N&&N.send instanceof Function){if(ne&&!(ne instanceof Function))throw new SyntaxError("Only a function can be after transport");z=ne,ne=N,N=void 0}if(ne instanceof Function){if(null!=z)throw new SyntaxError("There can't be parameters after onRequest");z=ne,ne=void 0}if(ne&&ne.send instanceof Function&&z&&!(z instanceof Function))throw new SyntaxError("Only a function can be after transport");N=N||{},q.call(this),z&&this.on("request",z),E?this.peerID=N.peerID:Object.defineProperty(this,"peerID",{value:N.peerID});var W=N.max_retries||0;function T(P){M.decode(P.data||P)}this.getTransport=function(){return ne},this.setTransport=function(P){ne&&(ne.removeEventListener?ne.removeEventListener("message",T):ne.removeListener&&ne.removeListener("data",T)),P&&(P.addEventListener?P.addEventListener("message",T):P.addListener&&P.addListener("data",T)),ne=p(P)},E||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(ne);var w=N.request_timeout||d,_=N.ping_request_timeout||w,k=N.response_timeout||d,X=N.duplicates_timeout||d,H=0,R=new f,K=new f,m=new f,V={};function B(P,Y){var le=setTimeout(function(){m.remove(P,Y)},X);m.set(le,P,Y)}function S(P,Y,le,ge,ke){D.call(this,P,Y),this.getTransport=function(){return ke},this.setTransport=function(Ue){ke=p(Ue)},E||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var Ie=K.get(le,ge);ke||M.getTransport()||(E?this.duplicated=Boolean(Ie):Object.defineProperty(this,"duplicated",{value:Boolean(Ie)}));var je=b[P];this.pack=g.pack.bind(g,this,le),this.reply=function(Ue,Ke,Je){if(Ue instanceof Function||Ue&&Ue.send instanceof Function){if(null!=Ke)throw new SyntaxError("There can't be parameters after callback");Je=Ue,Ke=null,Ue=void 0}else if(Ke instanceof Function||Ke&&Ke.send instanceof Function){if(null!=Je)throw new SyntaxError("There can't be parameters after callback");Je=Ke,Ke=null}var ut;return Je=p(Je),Ie&&clearTimeout(Ie.timeout),null!=ge&&(Ue&&(Ue.dest=ge),Ke&&(Ke.dest=ge)),Ue||null!=Ke?(null!=M.peerID&&(Ue?Ue.from=M.peerID:Ke.from=M.peerID),ut=g.pack(ut=je?null==je.error&&Ue?{error:Ue}:{method:Ue?je.error:je.response,params:Ue||Ke}:{error:Ue,result:Ke},le)):ut=Ie?Ie.message:g.pack({result:null},le),function L(P,Y,le){var ge={message:P,timeout:setTimeout(function(){K.remove(Y,le)},k)};K.set(ge,Y,le)}(ut,le,ge),(Je=Je||this.getTransport()||M.getTransport())?Je.send(ut):ut}}function C(P){var Y=V[P];if(Y){delete V[P];var le=R.pop(Y.id,Y.dest);!le||(clearTimeout(le.timeout),B(Y.id,Y.dest))}}O(S,D),this.cancel=function(P){if(P)return C(P);for(var P in V)C(P)},this.close=function(){var P=this.getTransport();P&&P.close&&P.close(4003,"Cancel request"),this.cancel(),m.forEach(clearTimeout),K.forEach(function(Y){clearTimeout(Y.timeout)})},this.encode=function(P,Y,le,ge,ke){if(Y instanceof Function){if(null!=le)throw new SyntaxError("There can't be parameters after callback");ke=Y,ge=void 0,le=void 0,Y=void 0}else if(le instanceof Function){if(null!=ge)throw new SyntaxError("There can't be parameters after callback");ke=le,ge=void 0,le=void 0}else if(ge instanceof Function){if(null!=ke)throw new SyntaxError("There can't be parameters after callback");ke=ge,ge=void 0}null!=M.peerID&&((Y=Y||{}).from=M.peerID),null!=le&&((Y=Y||{}).dest=le);var Ie={method:P,params:Y};if(ke){var je=function(ae,fe){M.cancel(Ie),ke(ae,fe)},Ue=function(ae){return Qt.timeout=setTimeout(Je,("ping"===P?_:w)*Math.pow(2,de++)),V[Ie]={id:ut,dest:le},R.set(Qt,ut,le),(ae=ae||qe||M.getTransport())?ae.send(Ie):Ie},Ke=function(ae){ae=p(ae),console.warn(de+" retry for request message:",Ie);var fe=m.pop(ut,le);return clearTimeout(fe),Ue(ae)},Je=function(){if(dep.instance.MAX_LENGTH_STRING_JSON&&(z="".concat(z.substring(0,p.instance.MAX_LENGTH_STRING_JSON),"...")),window.LOG_JSNLOG_RESULTS&&console.log(z),z},enabled:!0}),(0,E.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=x,this.instance.info("JSNLog configured.")}}catch(g){console.error("Error configuring JSNLog: "),console.error(g),this.instance.disableLogger()}},f.getInstance=function(){return f.instance||(f.instance=new f),f.instance},f.isInvalidResponse=function(d){return 401==d.status||403==d.status||404==d.status||0==d.status},f.prototype.canConfigureJSNLog=function(d,j){return d.session.sessionId!=j.loggingSessionId},f.prototype.isOpenViduBrowserLogsDebugActive=function(d){return d.sendBrowserLogs===O.OpenViduLoggerConfiguration.debug||d.sendBrowserLogs===O.OpenViduLoggerConfiguration.debug_app},f.prototype.getConsoleWithJSNLog=function(){return d=this,{log:function(){for(var p=[],D=0;D1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return j&&(p.audio={mandatory:{chromeMediaSource:f?"screen":"desktop"},optional:[]}),d&&(p.video.mandatory.chromeMediaSourceId=d,p.audio&&p.audio.mandatory&&(p.audio.mandatory.chromeMediaSourceId=d)),p}function E(f){q?q.isLoaded?q.contentWindow.postMessage(f?f.forEach?{captureCustomSourceId:f}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){E(f)},100):O(function(){E(f)})}var q;function O(f){q?f():((q=document.createElement("iframe")).onload=function(){q.isLoaded=!0,f()},q.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",q.style.display="none",(document.body||document.documentElement).appendChild(q))}function F(){q?q.isLoaded?q.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(F,100):O(F)}window.getScreenId=function(f,d,j){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?d(null,"firefox",{video:{mozMediaSource:f,mediaSource:f}}):(window.addEventListener("message",function p(D){!D.data||(D.data.chromeMediaSourceId&&("PermissionDeniedError"===D.data.chromeMediaSourceId?d("permission-denied"):d(null,D.data.chromeMediaSourceId,G(null,D.data.chromeMediaSourceId,D.data.canRequestAudioTrack)),window.removeEventListener("message",p)),D.data.chromeExtensionStatus&&(d(D.data.chromeExtensionStatus,null,G(D.data.chromeExtensionStatus)),window.removeEventListener("message",p)))}),setTimeout(j?function(){E(j)}:E,100)):d({video:!0})},window.getScreenConstraints=function(f){O(function(){getScreenId(function(d,j,p){p||(p={video:!0}),f(d,p.video)})})},window.getChromeExtensionStatus=function(f){navigator.mozGetUserMedia?f("installed-enabled"):(window.addEventListener("message",function d(j){!j.data||j.data.chromeExtensionStatus&&(f(j.data.chromeExtensionStatus),window.removeEventListener("message",d))}),setTimeout(F,100))},$.getScreenId=window.getScreenId},4627:function(_e,$){var E,q,G="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(N){N.origin==window.location.origin&&function d(N){if("PermissionDeniedError"==N){if(q)return q("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==N&&(G="desktop"),N.sourceId&&q&&q(E=N.sourceId,!0===N.canRequestAudioTrack)}(N.data)})}function p(N){if(!N)throw'"callback" parameter is mandatory.';if(E)return N(E);q=N,window.postMessage("get-sourceId","*")}function g(N,ne){if(E="",O)return N(null,{mozMediaSource:"window",mediaSource:"window"});var M={mandatory:{chromeMediaSource:G,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=G||E?("desktop"==G&&(M.mandatory.chromeMediaSourceId=E),N(null,M)):ne?function x(N){if(!N)throw'"callback" parameter is mandatory.';if(E)return N(E);q=N,window.postMessage("audio-plus-tab","*")}(function(b,W){M.mandatory.chromeMediaSourceId=b,W&&(M.canRequestAudioTrack=!0),N("PermissionDeniedError"==b?b:null,M)}):p(function(b){M.mandatory.chromeMediaSourceId=b,N("PermissionDeniedError"==b?b:null,M)})}$.getScreenConstraints=g,$.getScreenConstraintsWithAudio=function ee(N){g(N,!0)},$.isChromeExtensionAvailable=function j(N){if(N){if("desktop"==G)return N(!0);window.postMessage("are-you-there","*"),setTimeout(function(){N("screen"!=G)},2e3)}},$.getChromeExtensionStatus=function Q(N,ne){if(O)return ne("not-chrome");2!=arguments.length&&(ne=N,N="lfcgfepafnobdloecchnfaclibenjold");var z=document.createElement("img");z.src="chrome-extension://"+N+"/icon.png",z.onload=function(){G="screen",window.postMessage("are-you-there","*"),setTimeout(function(){ne("screen"==G?"installed-disabled":"installed-enabled")},2e3)},z.onerror=function(){ne("not-installed")}},$.getSourceId=p},543:function(_e,$,G){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.PlatformUtils=void 0;var E=G(2437),q=function(){function O(){}return O.getInstance=function(){return this.instance||(this.instance=new O),O.instance},O.prototype.isChromeBrowser=function(){return"Chrome"===E.name},O.prototype.isSafariBrowser=function(){return"Safari"===E.name},O.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===E.name},O.prototype.isFirefoxBrowser=function(){return"Firefox"===E.name},O.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===E.name||"Firefox for iOS"===E.name},O.prototype.isOperaBrowser=function(){return"Opera"===E.name},O.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===E.name},O.prototype.isEdgeBrowser=function(){var F=(null==E?void 0:E.version)?parseFloat(E.version):-1;return"Microsoft Edge"===E.name&&F>=80},O.prototype.isEdgeMobileBrowser=function(){var F,f,d=(null==E?void 0:E.version)?parseFloat(E.version):-1;return"Microsoft Edge"===E.name&&("Android"===(null===(F=E.os)||void 0===F?void 0:F.family)||"iOS"===(null===(f=E.os)||void 0===f?void 0:f.family))&&d>45},O.prototype.isAndroidBrowser=function(){return"Android Browser"===E.name},O.prototype.isElectron=function(){return"Electron"===E.name},O.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===E.name||"Samsung Internet"===E.name},O.prototype.isIPhoneOrIPad=function(){var F=E.ua?E.ua:navigator.userAgent,f="ontouchend"in document,d=/\b(\w*Macintosh\w*)\b/.test(F)&&f,j=/\b(\w*iPhone\w*)\b/.test(F)&&/\b(\w*Mobile\w*)\b/.test(F)&&f;return d||j},O.prototype.isIOSWithSafari=function(){var F=E.ua?E.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(F)&&!/\b(\w*CriOS\w*)\b/.test(F)&&!/\b(\w*FxiOS\w*)\b/.test(F)},O.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===E.ua.indexOf("Safari")},O.prototype.isIonicAndroid=function(){return"Android"===E.os.family&&"Android Browser"==E.name},O.prototype.isMobileDevice=function(){return"iOS"===E.os.family||"Android"===E.os.family},O.prototype.isReactNative=function(){return!1},O.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},O.prototype.canScreenShare=function(){var F=(null==E?void 0:E.version)?parseFloat(E.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&F>=13)},O.prototype.getName=function(){return E.name||""},O.prototype.getVersion=function(){return E.version||""},O.prototype.getFamily=function(){return E.os.family||""},O.prototype.getDescription=function(){return E.description||""},O}();$.PlatformUtils=q},4641:function(_e,$,G){"use strict";var z,E=this&&this.__extends||(z=function(b,W){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,w){T.__proto__=w}||function(T,w){for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_])})(b,W)},function(M,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function W(){this.constructor=M}z(M,b),M.prototype=null===b?Object.create(b):(W.prototype=b.prototype,new W)}),q=this&&this.__assign||function(){return q=Object.assign||function(z){for(var M,b=1,W=arguments.length;b0&&w[w.length-1])&&(6===H[0]||2===H[0])){b=0;continue}if(3===H[0]&&(!w||H[1]>w[0]&&H[1]0?M.iceServers:f(),mediaStream:void 0!==M.mediaStream?M.mediaStream:null,mode:M.mode?M.mode:"sendrecv",id:M.id?M.id:this.generateUniqueId()}),x.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(W){if(null!==W.candidate){var w=new RTCIceCandidate(W.candidate);b.configuration.onIceCandidate(w),""!==w.candidate&&b.localCandidatesQueue.push(w)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===b.pc.signalingState)for(;b.iceCandidateList.length>0;){var W=b.iceCandidateList.shift();b.pc.addIceCandidate(W)}})}return z.prototype.getId=function(){return this.configuration.id},z.prototype.dispose=function(){if(x.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},z.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var W={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return x.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(W)),this.pc.createOffer(W)},z.prototype.createOffer=function(){var M,b,W,T,w,_,k,X;return O(this,void 0,void 0,function(){var H,R,K,m,V,L,B,S,C,P,Y,le,ge,ke,Ie,je,Ue,Ke,Je,ut,de,Qt,qe;return F(this,function(Ft){switch(Ft.label){case 0:if(!("addTransceiver"in this.pc))return x.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(x.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,7];if(!this.configuration.mediaStream)throw new Error("[WebRtcPeer.createOffer] Direction is '".concat(this.configuration.mode,"', but no stream was configured to be sent"));H=0,R=this.configuration.mediaStream.getTracks(),Ft.label=1;case 1:if(!(H=518400?3:C>=129600?2:1,m.sendEncodings=[],Y=0;Y0&&g[g.length-1])&&(6===M[0]||2===M[0])){x=0;continue}if(3===M[0]&&(!g||M[1]>g[0]&&M[1]=0||Y.candidate.indexOf(H.address)>=0)&&Y.candidate.indexOf(H.port)>=0}),H.raw=[],R=0,K=L;R=0||Y.candidate.indexOf(m.address)>=0)&&Y.candidate.indexOf(m.port)>=0}),m.raw=[],B=0,S=L;B-1&&(w="video"),null!=X&&null!=w&&null!=H&&null!=N[X][w]?N[X][w][H]=Number(T[H]):null!=X&&null!=H&&z.includes(H)&&(N[X][H]=Number(T[H])))};switch(T.type){case"outbound-rtp":_("outbound","bytesSent"),_("outbound","packetsSent"),_("outbound","framesEncoded"),_("outbound","nackCount"),_("outbound","firCount"),_("outbound","pliCount"),_("outbound","qpSum");break;case"inbound-rtp":_("inbound","bytesReceived"),_("inbound","packetsReceived"),_("inbound","packetsLost"),_("inbound","jitter"),_("inbound","framesDecoded"),_("inbound","nackCount"),_("inbound","firCount"),_("inbound","pliCount");break;case"track":_("inbound","jitterBufferDelay"),_("inbound","framesReceived"),_("outbound","framesDropped"),_("outbound","framesSent"),_(b.stream.isLocal()?"outbound":"inbound","frameHeight"),_(b.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":_("candidatepair","currentRoundTripTime"),_("candidatepair","availableOutgoingBitrate")}}),(!(null==N?void 0:N.candidatepair)||0===Object.keys(N.candidatepair).length)&&delete N.candidatepair,[2,Q(N)];case 2:return M=W.sent(),f.error("Error getting common stats: ",M),[2,ee(M)];case 3:return[2]}})})})]})})},p.prototype.generateJSONStatsResponse=function(D){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:d.getName(),platform_description:d.getDescription(),stream:"webRTC",webrtc_stats:D}},p.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},p}();$.WebRtcStats=j},5039:function(_e,$,G){"use strict";$.Dn=void 0;var q=G(8659),O=G(763);Object.defineProperty($,"Dn",{enumerable:!0,get:function(){return O.OpenVidu}});G(8402),G(4259),G(1758),G(8613),G(2096),G(7490),G(4289),G(4540),G(5156),G(4103),G(5913),G(6274),G(2345),G(8702),G(805),G(7936),G(1018),G(5785),G(2299),G(4006),G(4281),G(2798),G(865),G(2156),G(6237),G(7507),G(8074);q.JL.setOptions({enabled:!1})},835:function(_e){"use strict";function $(){this._types=Object.create(null),this._extensions=Object.create(null);for(var G=0;G-1&&V<=p)for(;++m3?"WebKit":/\bOpera\b/.test(ie)&&(/\bOPR\b/.test(R)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(R)&&!/^(?:Trident|EdgeHTML)$/.test(ce)&&"WebKit"||!ce&&/\bMSIE\b/i.test(R)&&("Mac OS"==De?"Tasman":"Trident")||"WebKit"==ce&&/\bPlayStation\b(?! Vita\b)/i.test(ie)&&"NetFront")&&(ce=[de]),"IE"==ie&&(de=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(R)||0)[1])?(ie+=" Mobile",De="Windows Phone "+(/\+$/.test(de)?de:de+".x"),qe.unshift("desktop mode")):/\bWPDesktop\b/i.test(R)?(ie="IE Mobile",De="Windows Phone 8.x",qe.unshift("desktop mode"),fe||(fe=(/\brv:([\d.]+)/.exec(R)||0)[1])):"IE"!=ie&&"Trident"==ce&&(de=/\brv:([\d.]+)/.exec(R))&&(ie&&qe.push("identifying as "+ie+(fe?" "+fe:"")),ie="IE",fe=de[1]),ae){if(function T(R,K){var m=null!=R?typeof R[K]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(m)||"object"==m&&!R[K])}(K,"global"))if(ke&&(Qt=(de=ke.lang.System).getProperty("os.arch"),De=De||de.getProperty("os.name")+" "+de.getProperty("os.version")),Ie){try{fe=K.require("ringo/engine").version.join("."),ie="RingoJS"}catch(un){(de=K.system)&&de.global.system==K.system&&(ie="Narwhal",De||(De=de[0].os||null))}ie||(ie="Rhino")}else"object"==typeof K.process&&!K.process.browser&&(de=K.process)&&("object"==typeof de.versions&&("string"==typeof de.versions.electron?(qe.push("Node "+de.versions.node),ie="Electron",fe=de.versions.electron):"string"==typeof de.versions.nw&&(qe.push("Chromium "+fe,"Node "+de.versions.node),ie="NW.js",fe=de.versions.nw)),ie||(ie="Node.js",Qt=de.arch,De=de.platform,fe=(fe=/[\d.]+/.exec(de.version))?fe[0]:null));else W(de=K.runtime)==P?(ie="Adobe AIR",De=de.flash.system.Capabilities.os):W(de=K.phantom)==ge?(ie="PhantomJS",fe=(de=de.version||null)&&de.major+"."+de.minor+"."+de.patch):"number"==typeof Ke.documentMode&&(de=/\bTrident\/(\d+)/i.exec(R))?((de=+de[1]+4)!=(fe=[fe,Ke.documentMode])[1]&&(qe.push("IE "+fe[1]+" mode"),ce&&(ce[1]=""),fe[1]=de),fe="IE"==ie?String(fe[1].toFixed(1)):fe[0]):"number"==typeof Ke.documentMode&&/^(?:Chrome|Firefox)\b/.test(ie)&&(qe.push("masking as "+ie+" "+fe),ie="IE",fe="11.0",ce=["Trident"],De="Windows");De=De&&M(De)}if(fe&&(de=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(R+";"+(ae&&V.appMinorVersion))||/\bMinefield\b/i.test(R)&&"a")&&(Ft=/b/i.test(de)?"beta":"alpha",fe=fe.replace(RegExp(de+"\\+?$"),"")+("beta"==Ft?Ue:je)+(/\d+\+?/.exec(de)||"")),"Fennec"==ie||"Firefox"==ie&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(De))ie="Firefox Mobile";else if("Maxthon"==ie&&fe)fe=fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))"Xbox 360"==he&&(De=null),"Xbox 360"==he&&/\bIEMobile\b/.test(R)&&qe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ie)&&(!ie||he||/Browser|Mobi/.test(ie))||"Windows CE"!=De&&!/Mobi/i.test(R))if("IE"==ie&&ae)try{null===K.external&&qe.unshift("platform preview")}catch(un){qe.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(R))&&(de=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(R)||0)[1]||fe)?(De=((de=[de,/BB10/.test(R)])[1]?(he=null,be="BlackBerry"):"Device Software")+" "+de[0],fe=null):this!=b&&"Wii"!=he&&(ae&&Je||/Opera/.test(ie)&&/\b(?:MSIE|Firefox)\b/i.test(R)||"Firefox"==ie&&/\bOS X (?:\d+\.){2,}/.test(De)||"IE"==ie&&(De&&!/^Win/.test(De)&&fe>5.5||/\bWindows XP\b/.test(De)&&fe>8||8==fe&&!/\bTrident\b/.test(R)))&&!D.test(de=X.call(b,R.replace(D,"")+";"))&&de.name&&(de="ing as "+de.name+((de=de.version)?" "+de:""),D.test(ie)?(/\bIE\b/.test(de)&&"Mac OS"==De&&(De=null),de="identify"+de):(de="mask"+de,ie=ut?M(ut.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(de)&&(De=null),ae||(fe=null)),ce=["Presto"],qe.push(de));else ie+=" Mobile";(de=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(R)||0)[1])&&(de=[parseFloat(de.replace(/\.(\d)$/,".0$1")),de],"Safari"==ie&&"+"==de[1].slice(-1)?(ie="WebKit Nightly",Ft="alpha",fe=de[1].slice(0,-1)):(fe==de[1]||fe==(de[2]=(/\bSafari\/([\d.]+\+?)/i.exec(R)||0)[1]))&&(fe=null),de[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(R)||0)[1],537.36==de[0]&&537.36==de[2]&&parseFloat(de[1])>=28&&"WebKit"==ce&&(ce=["Blink"]),ae&&(S||de[1])?(ce&&(ce[1]="like Chrome"),de=de[1]||((de=de[0])<530?1:de<532?2:de<532.05?3:de<533?4:de<534.03?5:de<534.07?6:de<534.1?7:de<534.13?8:de<534.16?9:de<534.24?10:de<534.3?11:de<535.01?12:de<535.02?"13+":de<535.07?15:de<535.11?16:de<535.19?17:de<536.05?18:de<536.1?19:de<537.01?20:de<537.11?"21+":de<537.13?23:de<537.18?24:de<537.24?25:de<537.36?26:"Blink"!=ce?"27":"28")):(ce&&(ce[1]="like Safari"),de=(de=de[0])<400?1:de<500?2:de<526?3:de<533?4:de<534?"4+":de<535?5:de<537?6:de<538?7:de<601?8:de<602?9:de<604?10:de<606?11:de<608?12:"12"),ce&&(ce[1]+=" "+(de+="number"==typeof de?".x":/[.+]/.test(de)?"":"+")),"Safari"==ie&&(!fe||parseInt(fe)>45)?fe=de:"Chrome"==ie&&/\bHeadlessChrome/i.test(R)&&qe.unshift("headless")),"Opera"==ie&&(de=/\bzbov|zvav$/.exec(De))?(ie+=" ",qe.unshift("desktop mode"),"zvav"==de?(ie+="Mini",fe=null):ie+="Mobile",De=De.replace(RegExp(" *"+de+"$"),"")):"Safari"==ie&&/\bChrome\b/.exec(ce&&ce[1])?(qe.unshift("desktop mode"),ie="Chrome Mobile",fe=null,/\bOS X\b/.test(De)?(be="Apple",De="iOS 4.3+"):De=null):/\bSRWare Iron\b/.test(ie)&&!fe&&(fe=lt("Chrome")),fe&&0==fe.indexOf(de=/[\d.]+$/.exec(De))&&R.indexOf("/"+de+"-")>-1&&(De=k(De.replace(de,""))),De&&-1!=De.indexOf(ie)&&!RegExp(ie+" OS").test(De)&&(De=De.replace(RegExp(" *"+w(ie)+" *"),"")),ce&&!/\b(?:Avant|Nook)\b/.test(ie)&&(/Browser|Lunascape|Maxthon/.test(ie)||"Safari"!=ie&&/^iOS/.test(De)&&/\bSafari\b/.test(ce[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ie)&&ce[1])&&(de=ce[ce.length-1])&&qe.push(de),qe.length&&(qe=["("+qe.join("; ")+")"]),be&&he&&he.indexOf(be)<0&&qe.push("on "+be),he&&qe.push((/^on /.test(qe[qe.length-1])?"":"on ")+he),De&&(de=/ ([\d.+]+)$/.exec(De),oe=de&&"/"==De.charAt(De.length-de[0].length-1),De={architecture:32,family:de&&!oe?De.replace(de[0],""):De,version:de?de[1]:null,toString:function(){var wt=this.version;return this.family+(wt&&!oe?" "+wt:"")+(64==this.architecture?" 64-bit":"")}}),(de=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Qt))&&!/\bi686\b/i.test(Qt)?(De&&(De.architecture=64,De.family=De.family.replace(RegExp(" *"+de),"")),ie&&(/\bWOW64\b/i.test(R)||ae&&/\w(?:86|32)$/.test(V.cpuClass||V.platform)&&!/\bWin64; x64\b/i.test(R))&&qe.unshift("32-bit")):De&&/^OS X/.test(De.family)&&"Chrome"==ie&&parseFloat(fe)>=39&&(De.architecture=64),R||(R=null);var sn={};return sn.description=R,sn.layout=ce&&ce[0],sn.manufacturer=be,sn.name=ie,sn.prerelease=Ft,sn.product=he,sn.ua=R,sn.version=ie&&fe,sn.os=De||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=X,sn.toString=function Cr(){return this.description||""},sn.version&&qe.unshift(fe),sn.name&&qe.unshift(ie),De&&ie&&!(De==String(De).split(" ")[0]&&(De==ie.split(" ")[0]||he))&&qe.push(he?"("+De+")":"on "+De),qe.length&&(sn.description=qe.join(" ")),sn}();O.platform=H,void 0!==(E=function(){return H}.call($,G,$,_e))&&(_e.exports=E)}.call(this)},7854:function(_e){var $=function(G){"use strict";var O,E=Object.prototype,q=E.hasOwnProperty,F="function"==typeof Symbol?Symbol:{},f=F.iterator||"@@iterator",d=F.asyncIterator||"@@asyncIterator",j=F.toStringTag||"@@toStringTag";function p(S,C,P){return Object.defineProperty(S,C,{value:P,enumerable:!0,configurable:!0,writable:!0}),S[C]}try{p({},"")}catch(S){p=function(P,Y,le){return P[Y]=le}}function D(S,C,P,Y){var ge=Object.create((C&&C.prototype instanceof z?C:z).prototype),ke=new V(Y||[]);return ge._invoke=function H(S,C,P){var Y=Q;return function(ge,ke){if(Y===g)throw new Error("Generator is already running");if(Y===N){if("throw"===ge)throw ke;return B()}for(P.method=ge,P.arg=ke;;){var Ie=P.delegate;if(Ie){var je=R(Ie,P);if(je){if(je===ne)continue;return je}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if(Y===Q)throw Y=N,P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);Y=g;var Ue=x(S,C,P);if("normal"===Ue.type){if(Y=P.done?N:ee,Ue.arg===ne)continue;return{value:Ue.arg,done:P.done}}"throw"===Ue.type&&(Y=N,P.method="throw",P.arg=Ue.arg)}}}(S,P,ke),ge}function x(S,C,P){try{return{type:"normal",arg:S.call(C,P)}}catch(Y){return{type:"throw",arg:Y}}}G.wrap=D;var Q="suspendedStart",ee="suspendedYield",g="executing",N="completed",ne={};function z(){}function M(){}function b(){}var W={};p(W,f,function(){return this});var T=Object.getPrototypeOf,w=T&&T(T(L([])));w&&w!==E&&q.call(w,f)&&(W=w);var _=b.prototype=z.prototype=Object.create(W);function k(S){["next","throw","return"].forEach(function(C){p(S,C,function(P){return this._invoke(C,P)})})}function X(S,C){function P(ge,ke,Ie,je){var Ue=x(S[ge],S,ke);if("throw"!==Ue.type){var Ke=Ue.arg,Je=Ke.value;return Je&&"object"==typeof Je&&q.call(Je,"__await")?C.resolve(Je.__await).then(function(ut){P("next",ut,Ie,je)},function(ut){P("throw",ut,Ie,je)}):C.resolve(Je).then(function(ut){Ke.value=ut,Ie(Ke)},function(ut){return P("throw",ut,Ie,je)})}je(Ue.arg)}var Y;this._invoke=function le(ge,ke){function Ie(){return new C(function(je,Ue){P(ge,ke,je,Ue)})}return Y=Y?Y.then(Ie,Ie):Ie()}}function R(S,C){var P=S.iterator[C.method];if(P===O){if(C.delegate=null,"throw"===C.method){if(S.iterator.return&&(C.method="return",C.arg=O,R(S,C),"throw"===C.method))return ne;C.method="throw",C.arg=new TypeError("The iterator does not provide a 'throw' method")}return ne}var Y=x(P,S.iterator,C.arg);if("throw"===Y.type)return C.method="throw",C.arg=Y.arg,C.delegate=null,ne;var le=Y.arg;return le?le.done?(C[S.resultName]=le.value,C.next=S.nextLoc,"return"!==C.method&&(C.method="next",C.arg=O),C.delegate=null,ne):le:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,ne)}function K(S){var C={tryLoc:S[0]};1 in S&&(C.catchLoc=S[1]),2 in S&&(C.finallyLoc=S[2],C.afterLoc=S[3]),this.tryEntries.push(C)}function m(S){var C=S.completion||{};C.type="normal",delete C.arg,S.completion=C}function V(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(K,this),this.reset(!0)}function L(S){if(S){var C=S[f];if(C)return C.call(S);if("function"==typeof S.next)return S;if(!isNaN(S.length)){var P=-1,Y=function le(){for(;++P=0;--le){var ge=this.tryEntries[le],ke=ge.completion;if("root"===ge.tryLoc)return Y("end");if(ge.tryLoc<=this.prev){var Ie=q.call(ge,"catchLoc"),je=q.call(ge,"finallyLoc");if(Ie&&je){if(this.prev=0;--Y){var le=this.tryEntries[Y];if(le.tryLoc<=this.prev&&q.call(le,"finallyLoc")&&this.prev=0;--P){var Y=this.tryEntries[P];if(Y.finallyLoc===C)return this.complete(Y.completion,Y.afterLoc),m(Y),ne}},catch:function(C){for(var P=this.tryEntries.length-1;P>=0;--P){var Y=this.tryEntries[P];if(Y.tryLoc===C){var le=Y.completion;if("throw"===le.type){var ge=le.arg;m(Y)}return ge}}throw new Error("illegal catch attempt")},delegateYield:function(C,P,Y){return this.delegate={iterator:L(C),resultName:P,nextLoc:Y},"next"===this.method&&(this.arg=O),ne}},G}(_e.exports);try{regeneratorRuntime=$}catch(G){"object"==typeof globalThis?globalThis.regeneratorRuntime=$:Function("r","regeneratorRuntime = r")($)}},1839:function(_e,$,G){var E=G(4575).default,q=G(3913).default,O=G(6070),F=G(1696),f=F.MAX_LENGTH,d=F.MAX_SAFE_INTEGER,j=G(1338),p=j.re,D=j.t,x=G(471),ee=G(7165).compareIdentifiers;_e.exports=function(){"use strict";function N(ne,z){if(E(this,N),z=x(z),ne instanceof N){if(ne.loose===!!z.loose&&ne.includePrerelease===!!z.includePrerelease)return ne;ne=ne.version}else if("string"!=typeof ne)throw new TypeError("Invalid Version: ".concat(ne));if(ne.length>f)throw new TypeError("version is longer than ".concat(f," characters"));O("SemVer",ne,z),this.options=z,this.loose=!!z.loose,this.includePrerelease=!!z.includePrerelease;var M=ne.trim().match(z.loose?p[D.LOOSE]:p[D.FULL]);if(!M)throw new TypeError("Invalid Version: ".concat(ne));if(this.raw=ne,this.major=+M[1],this.minor=+M[2],this.patch=+M[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=M[4]?M[4].split(".").map(function(b){if(/^[0-9]+$/.test(b)){var W=+b;if(W>=0&&W=0;)"number"==typeof this.prerelease[b]&&(this.prerelease[b]++,b=-2);-1===b&&this.prerelease.push(0)}M&&(this.prerelease[0]===M?isNaN(this.prerelease[1])&&(this.prerelease=[M,0]):this.prerelease=[M,0]);break;default:throw new Error("invalid increment argument: ".concat(z))}return this.format(),this.raw=this.version,this}}]),N}()},4303:function(_e,$,G){var E=G(1839);_e.exports=function(F,f){return new E(F,f).major}},7920:function(_e,$,G){var E=G(1839);_e.exports=function(F,f){return new E(F,f).minor}},1696:function(_e){_e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},6070:function(_e){var $="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var G,E=arguments.length,q=new Array(E),O=0;O)?=?)"),p("XRANGEIDENTIFIERLOOSE","".concat(f[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),p("XRANGEIDENTIFIER","".concat(f[d.NUMERICIDENTIFIER],"|x|X|\\*")),p("XRANGEPLAIN","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:".concat(f[d.PRERELEASE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGEPLAINLOOSE","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(f[d.PRERELEASELOOSE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAIN],"$")),p("XRANGELOOSE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAINLOOSE],"$")),p("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(q,"})")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:$|[^\\d])"),p("COERCERTL",f[d.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM","(\\s*)".concat(f[d.LONETILDE],"\\s+"),!0),$.tildeTrimReplace="$1~",p("TILDE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAIN],"$")),p("TILDELOOSE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("LONECARET","(?:\\^)"),p("CARETTRIM","(\\s*)".concat(f[d.LONECARET],"\\s+"),!0),$.caretTrimReplace="$1^",p("CARET","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAIN],"$")),p("CARETLOOSE","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("COMPARATORLOOSE","^".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],")$|^$")),p("COMPARATOR","^".concat(f[d.GTLT],"\\s*(").concat(f[d.FULLPLAIN],")$|^$")),p("COMPARATORTRIM","(\\s*)".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],"|").concat(f[d.XRANGEPLAIN],")"),!0),$.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE","^\\s*(".concat(f[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAIN],")")+"\\s*$"),p("HYPHENRANGELOOSE","^\\s*(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s*$"),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0.0.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},1464:function(_e,$,G){"use strict";G.r($),G.d($,{NIL:function(){return Qt},parse:function(){return b},stringify:function(){return x},v1:function(){return z},v3:function(){return ge},v4:function(){return Ie},v5:function(){return de},validate:function(){return d},version:function(){return Ft}});var E,q=new Uint8Array(16);function O(){if(!E&&!(E="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return E(q)}for(var F=/^(?:[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,d=function f(ae){return"string"==typeof ae&&F.test(ae)},j=[],p=0;p<256;++p)j.push((p+256).toString(16).substr(1));var Q,ee,x=function D(ae){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,oe=(j[ae[fe+0]]+j[ae[fe+1]]+j[ae[fe+2]]+j[ae[fe+3]]+"-"+j[ae[fe+4]]+j[ae[fe+5]]+"-"+j[ae[fe+6]]+j[ae[fe+7]]+"-"+j[ae[fe+8]]+j[ae[fe+9]]+"-"+j[ae[fe+10]]+j[ae[fe+11]]+j[ae[fe+12]]+j[ae[fe+13]]+j[ae[fe+14]]+j[ae[fe+15]]).toLowerCase();if(!d(oe))throw TypeError("Stringified UUID is invalid");return oe},g=0,N=0,z=function ne(ae,fe,oe){var ce=fe&&oe||0,ie=fe||new Array(16),he=(ae=ae||{}).node||Q,be=void 0!==ae.clockseq?ae.clockseq:ee;if(null==he||null==be){var De=ae.random||(ae.rng||O)();null==he&&(he=Q=[1|De[0],De[1],De[2],De[3],De[4],De[5]]),null==be&&(be=ee=16383&(De[6]<<8|De[7]))}var At=void 0!==ae.msecs?ae.msecs:Date.now(),gn=void 0!==ae.nsecs?ae.nsecs:N+1,en=At-g+(gn-N)/1e4;if(en<0&&void 0===ae.clockseq&&(be=be+1&16383),(en<0||At>g)&&void 0===ae.nsecs&&(gn=0),gn>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=At,N=gn,ee=be;var Nr=(1e4*(268435455&(At+=122192928e5))+gn)%4294967296;ie[ce++]=Nr>>>24&255,ie[ce++]=Nr>>>16&255,ie[ce++]=Nr>>>8&255,ie[ce++]=255&Nr;var Rn=At/4294967296*1e4&268435455;ie[ce++]=Rn>>>8&255,ie[ce++]=255&Rn,ie[ce++]=Rn>>>24&15|16,ie[ce++]=Rn>>>16&255,ie[ce++]=be>>>8|128,ie[ce++]=255&be;for(var lt=0;lt<6;++lt)ie[ce+lt]=he[lt];return fe||x(ie)},b=function M(ae){if(!d(ae))throw TypeError("Invalid UUID");var fe,oe=new Uint8Array(16);return oe[0]=(fe=parseInt(ae.slice(0,8),16))>>>24,oe[1]=fe>>>16&255,oe[2]=fe>>>8&255,oe[3]=255&fe,oe[4]=(fe=parseInt(ae.slice(9,13),16))>>>8,oe[5]=255&fe,oe[6]=(fe=parseInt(ae.slice(14,18),16))>>>8,oe[7]=255&fe,oe[8]=(fe=parseInt(ae.slice(19,23),16))>>>8,oe[9]=255&fe,oe[10]=(fe=parseInt(ae.slice(24,36),16))/1099511627776&255,oe[11]=fe/4294967296&255,oe[12]=fe>>>24&255,oe[13]=fe>>>16&255,oe[14]=fe>>>8&255,oe[15]=255&fe,oe};function _(ae,fe,oe){function ce(ie,he,be,De){if("string"==typeof ie&&(ie=function W(ae){ae=unescape(encodeURIComponent(ae));for(var fe=[],oe=0;oe>>9<<4)+1}function m(ae,fe){var oe=(65535&ae)+(65535&fe);return(ae>>16)+(fe>>16)+(oe>>16)<<16|65535&oe}function L(ae,fe,oe,ce,ie,he){return m(function V(ae,fe){return ae<>>32-fe}(m(m(fe,ae),m(ce,he)),ie),oe)}function B(ae,fe,oe,ce,ie,he,be){return L(fe&oe|~fe&ce,ae,fe,ie,he,be)}function S(ae,fe,oe,ce,ie,he,be){return L(fe&ce|oe&~ce,ae,fe,ie,he,be)}function C(ae,fe,oe,ce,ie,he,be){return L(fe^oe^ce,ae,fe,ie,he,be)}function P(ae,fe,oe,ce,ie,he,be){return L(oe^(fe|~ce),ae,fe,ie,he,be)}var ge=_("v3",48,function k(ae){if("string"==typeof ae){var fe=unescape(encodeURIComponent(ae));ae=new Uint8Array(fe.length);for(var oe=0;oe>5]>>>ie%32&255,be=parseInt(ce.charAt(he>>>4&15)+ce.charAt(15&he),16);fe.push(be)}return fe}(function R(ae,fe){ae[fe>>5]|=128<>5]|=(255&ae[ce/8])<>>32-fe}var de=_("v5",80,function Ke(ae){var fe=[1518500249,1859775393,2400959708,3395469782],oe=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ae){var ce=unescape(encodeURIComponent(ae));ae=[];for(var ie=0;ie>>0;On=Oe,Oe=wt,wt=Ue(un,30)>>>0,un=sn,sn=Gt}oe[0]=oe[0]+sn>>>0,oe[1]=oe[1]+un>>>0,oe[2]=oe[2]+wt>>>0,oe[3]=oe[3]+Oe>>>0,oe[4]=oe[4]+On>>>0}return[oe[0]>>24&255,oe[0]>>16&255,oe[0]>>8&255,255&oe[0],oe[1]>>24&255,oe[1]>>16&255,oe[1]>>8&255,255&oe[1],oe[2]>>24&255,oe[2]>>16&255,oe[2]>>8&255,255&oe[2],oe[3]>>24&255,oe[3]>>16&255,oe[3]>>8&255,255&oe[3],oe[4]>>24&255,oe[4]>>16&255,oe[4]>>8&255,255&oe[4]]}),Qt="00000000-0000-0000-0000-000000000000",Ft=function qe(ae){if(!d(ae))throw TypeError("Invalid UUID");return parseInt(ae.substr(14,1),16)}},2069:function(_e){function $(){}_e.exports=$,$.mixin=function(G){var E=G.prototype||G;E.isWildEmitter=!0,E.on=function(q,O,F){this.callbacks=this.callbacks||{};var f=3===arguments.length,d=f?arguments[1]:void 0,j=f?arguments[2]:arguments[1];return j._groupName=d,(this.callbacks[q]=this.callbacks[q]||[]).push(j),this},E.once=function(q,O,F){var f=this,d=3===arguments.length,j=d?arguments[1]:void 0,p=d?arguments[2]:arguments[1];function D(){f.off(q,D),p.apply(this,arguments)}return this.on(q,j,D),this},E.releaseGroup=function(q){var O,F,f,d;for(O in this.callbacks=this.callbacks||{},this.callbacks)for(F=0,f=(d=this.callbacks[O]).length;Fe.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},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 s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function j(e){if(Array.isArray(e))return e}function W(){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 K(e,r){return j(e)||function D(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(u){a=!0,s=u}finally{try{!i&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,r)||re(e,r)||W()}function S(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e){return function $(e){if(Array.isArray(e))return H(e)}(e)||m(e)||re(e)||function T(){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 G(e,r,t){return(G=w()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var l=new(Function.bind.apply(i,s));return o&&P(l,o.prototype),l}).apply(null,arguments)}function V(e){var r="function"==typeof Map?new Map:void 0;return V=function(n){if(null===n||!function g(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return G(n,arguments,k(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),P(i,n)},V(e)}function L(e){return"function"==typeof e}function N(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var x=N(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(n,i){return"".concat(i+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function b(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var e,F=function(){function e(r){d(this,e),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return f(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var a,i=Y(n);try{for(i.s();!(a=i.n()).done;)a.value.remove(this)}catch(v){i.e(v)}finally{i.f()}}else n.remove(this);var s=this.initialTeardown;if(L(s))try{s()}catch(v){t=v instanceof x?v.errors:[v]}var u=this._teardowns;if(u){this._teardowns=null;var c,l=Y(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;try{ve(h)}catch(v){t=null!=t?t:[],v instanceof x?t=[].concat(E(t),E(v.errors)):t.push(v)}}}catch(v){l.e(v)}finally{l.f()}}if(t)throw new x(t)}}},{key:"add",value:function(t){var n;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}},{key:"_hasParent",value:function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)}},{key:"_addParent",value:function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}},{key:"_removeParent",value:function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&b(n,t)}},{key:"remove",value:function(t){var n=this._teardowns;n&&b(n,t),t instanceof e&&t._removeParent(this)}}]),e}();F.EMPTY=((e=new F).closed=!0,e);var z=F.EMPTY;function de(e){return e instanceof F||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function ve(e){L(e)?e():e.unsubscribe()}var De={setTimeout:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=De.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=De.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function Me(e){De.setTimeout(function(){throw e})}function Fe(){}var Le=se("C",void 0,void 0);function se(e,r,t){return{kind:e,value:r,error:t}}function Ve(e){e()}var ae=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).isStopped=!1,n?(i.destination=n,de(n)&&n.add(Q(i))):i.destination=Mt,i}return f(t,[{key:"next",value:function(i){this.isStopped?Ae(function Qe(e){return se("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?Ae(function Ke(e){return se("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?Ae(Le,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,M(k(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,a,o){return new ne(i,a,o)}}]),t}(F);var ce=function(){function e(r){d(this,e),this.partialObserver=r}return f(e,[{key:"next",value:function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){he(i)}}},{key:"error",value:function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){he(i)}else he(t)}},{key:"complete",value:function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){he(n)}}}]),e}(),ne=function(e){p(t,e);var r=y(t);function t(n,i,a){var o,s;return d(this,t),o=r.call(this),L(n)||!n?s={next:null!=n?n:void 0,error:null!=i?i:void 0,complete:null!=a?a:void 0}:(Q(o),s=n),o.destination=new ce(s),o}return f(t)}(ae);function he(e){Me(e)}function Ae(e,r){var t=null;t&&De.setTimeout(function(){return t(e,r)})}var Mt={closed:!0,next:Fe,error:function Ce(e){throw e},complete:Fe},gn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(e){return e}function Rn(e){return 0===e.length?en:1===e.length?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var ct=function(){var e=function(){function r(t){d(this,r),t&&(this._subscribe=t)}return f(r,[{key:"lift",value:function(n){var i=new r;return i.source=this,i.operator=n,i}},{key:"subscribe",value:function(n,i,a){var o=this,s=function un(e){return e&&e instanceof ae||function sn(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}(e)&&de(e)}(n)?n:new ne(n,i,a);return Ve(function(){var u=o.operator,l=o.source;s.add(u?u.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(i){n.error(i)}}},{key:"forEach",value:function(n,i){var a=this;return new(i=Cr(i))(function(o,s){var u=new ne({next:function(c){try{n(c)}catch(h){s(h),u.unsubscribe()}},error:s,complete:o});a.subscribe(u)})}},{key:"_subscribe",value:function(n){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(n)}},{key:gn,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,i=new Array(n),a=0;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),M(k(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var u=this.observers;return this.hasError||this.isStopped?z:(u.push(a),new F(function(){return b(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var u=this.isStopped;this.hasError?a.error(this.thrownError):u&&a.complete()}},{key:"asObservable",value:function(){var a=new ct;return a.source=this,a}}]),n}(ct);return e.create=function(r,t){return new On(r,t)},e}(),On=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).destination=n,a.source=i,a}return f(t,[{key:"next",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,i)}},{key:"error",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,i)}},{key:"complete",value:function(){var i,a;null===(a=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===a||a.call(i)}},{key:"_subscribe",value:function(i){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(i))&&void 0!==o?o:z}}]),t}(Pe);function fa(e){return L(null==e?void 0:e.lift)}function Yt(e){return function(r){if(fa(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function zt(e,r,t,n,i){return new ux(e,r,t,n,i)}var ux=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s,u){var l,c,h,v;return d(this,t),(v=r.call(this,n)).onFinalize=s,v.shouldUnsubscribe=u,v._next=i?function(_){try{i(_)}catch(O){n.error(O)}}:M((l=Q(v),k(t.prototype)),"_next",l),v._error=o?function(_){try{o(_)}catch(O){n.error(O)}finally{this.unsubscribe()}}:M((c=Q(v),k(t.prototype)),"_error",c),v._complete=a?function(){try{a()}catch(_){n.error(_)}finally{this.unsubscribe()}}:M((h=Q(v),k(t.prototype)),"_complete",h),v}return f(t,[{key:"unsubscribe",value:function(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;M(k(t.prototype),"unsubscribe",this).call(this),!a&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}]),t}(ae);function Xe(e,r){return Yt(function(t,n){var i=0;t.subscribe(zt(n,function(a){n.next(e.call(r,a,i++))}))})}var lx=U(7757),Ju=U.n(lx);function ha(e){return this instanceof ha?(this.v=e,this):new ha(e)}function fx(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=t.apply(e,r||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(_){return new Promise(function(O,J){a.push([v,_,O,J])>1||s(v,_)})})}function s(v,_){try{!function u(v){v.value instanceof ha?Promise.resolve(v.value.v).then(l,c):h(a[0][2],v)}(n[v](_))}catch(O){h(a[0][3],O)}}function l(v){s("next",v)}function c(v){s("throw",v)}function h(v,_){v(_),a.shift(),a.length&&s(a[0][0],a[0][1])}}function hx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function tm(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,u){!function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}(s,u,(o=e[a](o)).done,o.value)})}}}var Ld=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function nm(e){return L(null==e?void 0:e.then)}function rm(e){return L(e[gn])}function im(e){return Symbol.asyncIterator&&L(null==e?void 0:e[Symbol.asyncIterator])}function am(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var om=function px(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sm(e){return L(null==e?void 0:e[om])}function um(e){return fx(this,arguments,Ju().mark(function r(){var t,n,i;return Ju().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=e.getReader(),s.prev=1;case 2:return s.next=5,ha(t.read());case 5:if(i=(n=s.sent).value,!n.done){s.next=12;break}return s.next=11,ha(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,ha(i);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function lm(e){return L(null==e?void 0:e.getReader)}function or(e){if(e instanceof ct)return e;if(null!=e){if(rm(e))return function gx(e){return new ct(function(r){var t=e[gn]();if(L(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ld(e))return function mx(e){return new ct(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function Ex(e,r,t,n,i,a,o,s){var u=[],l=0,c=0,h=!1,v=function(){h&&!u.length&&!l&&r.complete()},_=function(te){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return L(r)?Sn(function(n,i){return Xe(function(a,o){return r(n,a,i,o)})(or(e(n,i)))},t):("number"==typeof r&&(t=r),Yt(function(n,i){return Ex(n,i,e,t)}))}function hs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Sn(en,e)}var ri=new ct(function(e){return e.complete()});function dm(e){return e&&L(e.schedule)}function Nd(e){return e[e.length-1]}function fm(e){return L(Nd(e))?e.pop():void 0}function vs(e){return dm(Nd(e))?e.pop():void 0}function wx(e,r){return"number"==typeof Nd(e)?e.pop():r}function hm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){t.subscribe(zt(n,function(i){return Ci(n,e,function(){return n.next(i)},r)},function(){return Ci(n,e,function(){return n.complete()},r)},function(i){return Ci(n,e,function(){return n.error(i)},r)}))})}function vm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Yt(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},r))})}function pm(e,r){if(!e)throw new Error("Iterable cannot be null");return new ct(function(t){Ci(t,r,function(){var n=e[Symbol.asyncIterator]();Ci(t,r,function(){n.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function In(e,r){return r?function Tx(e,r){if(null!=e){if(rm(e))return function Sx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(Ld(e))return function Ax(e,r){return new ct(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}(e,r);if(nm(e))return function Dx(e,r){return or(e).pipe(vm(r),hm(r))}(e,r);if(im(e))return pm(e,r);if(sm(e))return function xx(e,r){return new ct(function(t){var n;return Ci(t,r,function(){n=e[om](),Ci(t,r,function(){var i,a;try{var o=n.next();i=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(i)},0,!0)}),function(){return L(null==n?void 0:n.return)&&n.return()}})}(e,r);if(lm(e))return function Mx(e,r){return pm(um(e),r)}(e,r)}throw am(e)}(e,r):or(e)}function Qa(){for(var e=arguments.length,r=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=e.connector,t=void 0===r?function(){return new Pe}:r,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,u=void 0===s||s;return function(l){var c=null,h=null,v=null,_=0,O=!1,J=!1,te=function(){null==h||h.unsubscribe(),h=null},ue=function(){te(),c=v=null,O=J=!1},ee=function(){var _e=c;ue(),null==_e||_e.unsubscribe()};return Yt(function(ye,_e){_++,!J&&!O&&te();var Te=v=null!=v?v:t();_e.add(function(){0==--_&&!J&&!O&&(h=Vd(ee,u))}),Te.subscribe(_e),c||(c=new ne({next:function(We){return Te.next(We)},error:function(We){J=!0,te(),h=Vd(ue,i,We),Te.error(We)},complete:function(){O=!0,te(),h=Vd(ue,o),Te.complete()}}),In(ye).subscribe(c))})(l)}}function Vd(e,r){if(!0===r)return e(),null;if(!1===r)return null;for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(n," ").concat(r," <=Actual]")))}(r,e,null,"!=")}function we(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ud(e){return ym(e,tl)||ym(e,bm)}function ym(e,r){return e.hasOwnProperty(r)?e[r]:null}function _m(e){return e&&(e.hasOwnProperty(Gd)||e.hasOwnProperty(Vx))?e[Gd]:null}var zd,tl=Vt({"\u0275prov":Vt}),Gd=Vt({"\u0275inj":Vt}),bm=Vt({ngInjectableDef:Vt}),Vx=Vt({ngInjectorDef:Vt}),tt=function(){return(tt=tt||{})[tt.Default=0]="Default",tt[tt.Host=1]="Host",tt[tt.Self=2]="Self",tt[tt.SkipSelf=4]="SkipSelf",tt[tt.Optional=8]="Optional",tt}();function Bx(){return zd}function zi(e){var r=zd;return zd=e,r}function Cm(e,r,t){var n=Ud(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&tt.Optional?null:void 0!==r?r:void el(Ot(e),"Injector")}function Wi(e){return{toString:e}.toString()}var Vr=function(){return(Vr=Vr||{})[Vr.OnPush=0]="OnPush",Vr[Vr.Default=1]="Default",Vr}(),Br=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Br||(Br={})),Br}(),Hx="undefined"!=typeof globalThis&&globalThis,jx="undefined"!=typeof window&&window,Ux="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gx="undefined"!=typeof global&&global,Lt=Hx||Gx||jx||Ux,Ya={},Bt=[],nl=Vt({"\u0275cmp":Vt}),Wd=Vt({"\u0275dir":Vt}),qd=Vt({"\u0275pipe":Vt}),Em=Vt({"\u0275mod":Vt}),ki=Vt({"\u0275fac":Vt}),ps=Vt({__NG_ELEMENT_ID__:Vt}),zx=0;function Ht(e){return Wi(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===Vr.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Bt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Br.Emulated,id:"c",styles:e.styles||Bt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,a=e.features,o=e.pipes;return n.id+=zx++,n.inputs=Dm(e.inputs,t),n.outputs=Dm(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(km)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(wm)}:null,n})}function km(e){return Gn(e)||function qi(e){return e[Wd]||null}(e)}function wm(e){return function va(e){return e[qd]||null}(e)}var Sm={};function gt(e){return Wi(function(){var r={type:e.type,bootstrap:e.bootstrap||Bt,declarations:e.declarations||Bt,imports:e.imports||Bt,exports:e.exports||Bt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Sm[e.id]=e.type),r})}function Dm(e,r){if(null==e)return Ya;var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),t[i]=n,r&&(r[i]=a)}return t}var Ee=Ht;function Gn(e){return e[nl]||null}function Er(e,r){var t=e[Em]||null;if(!t&&!0===r)throw new Error("Type ".concat(Ot(e)," does not have '\u0275mod' property."));return t}function ii(e){return Array.isArray(e)&&"object"==typeof e[1]}function jr(e){return Array.isArray(e)&&!0===e[1]}function Yd(e){return 0!=(8&e.flags)}function ol(e){return 2==(2&e.flags)}function sl(e){return 1==(1&e.flags)}function Ur(e){return null!==e.template}function $x(e){return 0!=(512&e[2])}function ya(e,r){return e.hasOwnProperty(ki)?e[ki]:null}var Jx=function(){function e(r,t,n){d(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}return f(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Wn(){return xm}function xm(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){var e=Tm(this),r=null==e?void 0:e.current;if(r){var t=e.previous;if(t===Ya)e.previous=r;else for(var n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function tM(e,r,t,n){var i=Tm(e)||function nM(e,r){return e[Mm]=r}(e,{previous:Ya,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[t],u=o[s];a[s]=new Jx(u&&u.currentValue,r,o===Ya),e[n]=r}Wn.ngInherit=!0;var Mm="__ngSimpleChanges__";function Tm(e){return e[Mm]||null}var ef=void 0;function tf(){return void 0!==ef?ef:"undefined"!=typeof document?document:void 0}function ln(e){return!!e.listen}var Rm={createRenderer:function(r,t){return tf()}};function _n(e){for(;Array.isArray(e);)e=e[0];return e}function ul(e,r){return _n(r[e])}function Sr(e,r){return _n(r[e.index])}function nf(e,r){return e.data[r]}function cr(e,r){var t=r[e];return ii(t)?t:t[0]}function Om(e){return 4==(4&e[2])}function rf(e){return 128==(128&e[2])}function Ki(e,r){return null==r?null:e[r]}function Im(e){e[18]=0}function af(e,r){e[5]+=r;for(var t=e,n=e[3];null!==n&&(1===r&&1===t[5]||-1===r&&0===t[5]);)n[5]+=r,t=n,n=n[3]}var nt={lFrame:jm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fm(){return nt.bindingsEnabled}function Se(){return nt.lFrame.lView}function St(){return nt.lFrame.tView}function yt(e){return nt.lFrame.contextLView=e,e[8]}function Dn(){for(var e=Pm();null!==e&&64===e.type;)e=e.parent;return e}function Pm(){return nt.lFrame.currentTNode}function ai(e,r){var t=nt.lFrame;t.currentTNode=e,t.isParent=r}function sf(){return nt.lFrame.isParent}function uf(){nt.lFrame.isParent=!1}function ll(){return nt.isInCheckNoChangesMode}function cl(e){nt.isInCheckNoChangesMode=e}function Xn(){var e=nt.lFrame,r=e.bindingRootIndex;return-1===r&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function to(){return nt.lFrame.bindingIndex++}function _M(e,r){var t=nt.lFrame;t.bindingIndex=t.bindingRootIndex=e,lf(r)}function lf(e){nt.lFrame.currentDirectiveIndex=e}function cf(e){var r=nt.lFrame.currentDirectiveIndex;return-1===r?null:e[r]}function Vm(){return nt.lFrame.currentQueryIndex}function df(e){nt.lFrame.currentQueryIndex=e}function CM(e){var r=e[1];return 2===r.type?r.declTNode:1===r.type?e[6]:null}function Bm(e,r,t){if(t&tt.SkipSelf){for(var n=r,i=e;!(null!==(n=n.parent)||t&tt.Host||null===(n=CM(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,e=i}var a=nt.lFrame=Hm();return a.currentTNode=r,a.lView=e,!0}function dl(e){var r=Hm(),t=e[1];nt.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Hm(){var e=nt.lFrame,r=null===e?null:e.child;return null===r?jm(e):r}function jm(e){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=r),r}function Um(){var e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Gm=Um;function fl(){var e=Um();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function EM(e){var r=nt.lFrame.contextLView=function kM(e,r){for(;e>0;)r=r[15],e--;return r}(e,nt.lFrame.contextLView);return r[8]}function Zn(){return nt.lFrame.selectedIndex}function Qi(e){nt.lFrame.selectedIndex=e}function cn(){var e=nt.lFrame;return nf(e.tView,e.selectedIndex)}function hl(e,r){for(var t=r.directiveStart,n=r.directiveEnd;t=n)break}else r[u]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===r){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var bs=f(function e(r,t,n){d(this,e),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function gl(e,r,t){for(var n=ln(e),i=0;ir){o=a-1;break}}}for(;a>16}(e),n=r;t>0;)n=n[15],t--;return n}var pf=!0;function yl(e){var r=pf;return pf=e,r}var PM=0;function Es(e,r){var t=mf(e,r);if(-1!==t)return t;var n=r[1];n.firstCreatePass&&(e.injectorIndex=r.length,gf(n.data,e),gf(r,null),gf(n.blueprint,null));var i=_l(e,r),a=e.injectorIndex;if(Ym(i))for(var o=no(i),s=ro(i,r),u=s[1].data,l=0;l<8;l++)r[a+l]=s[o+l]|u[o+l];return r[a+8]=i,a}function gf(e,r){e.push(0,0,0,0,0,0,0,0,r)}function mf(e,r){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===r[e.injectorIndex+8]?-1:e.injectorIndex}function _l(e,r){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function bl(e,r,t){!function LM(e,r,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ps)&&(n=t[ps]),null==n&&(n=t[ps]=PM++);var i=255&n;r.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=HM(t);if("function"==typeof a){if(!Bm(r,e,n))return n&tt.Host?Zm(i,t,n):Jm(r,t,n,i);try{var o=a(n);if(null!=o||n&tt.Optional)return o;el(t)}finally{Gm()}}else if("number"==typeof a){var s=null,u=mf(e,r),l=-1,c=n&tt.Host?r[16][6]:null;for((-1===u||n&tt.SkipSelf)&&(-1!==(l=-1===u?_l(e,r):r[u+8])&&ry(n,!1)?(s=r[1],u=no(l),r=ro(l,r)):u=-1);-1!==u;){var h=r[1];if(ny(a,u,h.data)){var v=BM(u,r,t,s,n,c);if(v!==ty)return v}-1!==(l=r[u+8])&&ry(n,r[1].data[u+8]===c)&&ny(a,u,r)?(s=h,u=no(l),r=ro(l,r)):u=-1}}}return Jm(r,t,n,i)}var ty={};function VM(){return new io(Dn(),Se())}function BM(e,r,t,n,i,a){var o=r[1],s=o.data[e+8],c=Cl(s,o,t,null==n?ol(s)&&pf:n!=o&&0!=(3&s.type),i&tt.Host&&a===s);return null!==c?ks(r,o,c,s):ty}function Cl(e,r,t,n,i){for(var a=e.providerIndexes,o=r.data,s=1048575&a,u=e.directiveStart,c=a>>20,v=i?s+c:e.directiveEnd,_=n?s:s+c;_=u&&O.type===t)return _}if(i){var J=o[u];if(J&&Ur(J)&&J.type===t)return u}return null}function ks(e,r,t,n){var i=e[t],a=r.data;if(function MM(e){return e instanceof bs}(i)){var o=i;o.resolving&&function Ox(e,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(e):"";throw new Ue(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}($n(a[t]));var s=yl(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?zi(o.injectImpl):null;Bm(e,n,tt.Default);try{i=e[t]=o.factory(void 0,a,e,n),r.firstCreatePass&&t>=n.directiveStart&&function AM(e,r,t){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=xm(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],r)}finally{null!==u&&zi(u),yl(s),o.resolving=!1,Gm()}}return i}function HM(e){if("string"==typeof e)return e.charCodeAt(0)||0;var r=e.hasOwnProperty(ps)?e[ps]:void 0;return"number"==typeof r?r>=0?255&r:VM:r}function ny(e,r,t){return!!(t[r+(e>>5)]&1<=e.length?e.push(t):e.splice(r,0,t)}function El(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function Ds(e,r){for(var t=[],n=0;n=0?e[1|n]=t:function WM(e,r,t,n){var i=e.length;if(i==r)e.push(t,n);else if(1===i)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;)e[i]=e[i-2],i--;e[r]=t,e[r+1]=n}}(e,n=~n,r,t),n}function Cf(e,r){var t=lo(e,r);if(t>=0)return e[1|t]}function lo(e,r){return function uy(e,r,t){for(var n=0,i=e.length>>t;i!==n;){var a=n+(i-n>>1),o=e[a<r?i=a:n=a+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:tt.Default;if(void 0===xs){var t="";throw new Ue(203,t)}return null===xs?Cm(e,void 0,r):xs.get(e,r&tt.Optional?null:void 0,r)}function le(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt.Default;return(Bx()||nT)(dt(e),r)}var co=le;function wf(e){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Ot(r);if(Array.isArray(r))i=r.map(Ot).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Ot(s)))}i="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(e.replace(JM,"\n "))}("\n"+e.message,i,t,n),e.ngTokenPath=i,e[wl]=null,e}var Al,xl,Sl=Ms(uo("Inject",function(e){return{token:e}}),-1),Gr=Ms(uo("Optional"),8),fo=Ms(uo("SkipSelf"),4);function vo(e){var r;return(null===(r=function Df(){if(void 0===Al&&(Al=null,Lt.trustedTypes))try{Al=Lt.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return Al}())||void 0===r?void 0:r.createHTML(e))||e}function my(e){var r;return(null===(r=function Af(){if(void 0===xl&&(xl=null,Lt.trustedTypes))try{xl=Lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return xl}())||void 0===r?void 0:r.createHTML(e))||e}var _a=function(){function e(r){d(this,e),this.changingThisBreaksApplicationSecurity=r}return f(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),gT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(_a),mT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(_a),yT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(_a),_T=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(_a),bT=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(_a);function fr(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function si(e,r){var t=by(e);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function by(e){return e instanceof _a&&e.getTypeName()||null}var DT=function(){function e(r){d(this,e),this.inertDocumentHelper=r}return f(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(vo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),e}(),AT=function(){function e(r){if(d(this,e),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return f(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=vo(t),n;var i=this.inertDocument.createElement("body");return i.innerHTML=vo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,i=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();xf.hasOwnProperty(n)&&!ky.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Ay(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),VT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BT=/([^\#-~ |!])/g;function Ay(e){return e.replace(/&/g,"&").replace(VT,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(BT,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function xy(e,r){var t=null;try{Ml=Ml||function Cy(e){var r=new AT(e);return function xT(){try{return!!(new window.DOMParser).parseFromString(vo(""),"text/html")}catch(e){return!1}}()?new DT(r):r}(e);var n=r?String(r):"";t=Ml.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=t.innerHTML,t=Ml.getInertBodyElement(n)}while(n!==a);return vo((new NT).sanitizeChildren(Rf(t)||t))}finally{if(t)for(var u=Rf(t)||t;u.firstChild;)u.removeChild(u.firstChild)}}function Rf(e){return"content"in e&&function HT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xt=function(){return(xt=xt||{})[xt.NONE=0]="NONE",xt[xt.HTML=1]="HTML",xt[xt.STYLE=2]="STYLE",xt[xt.SCRIPT=3]="SCRIPT",xt[xt.URL=4]="URL",xt[xt.RESOURCE_URL=5]="RESOURCE_URL",xt}();function My(e){var r=function Is(){var e=Se();return e&&e[12]}();return r?my(r.sanitize(xt.HTML,e)||""):si(e,"HTML")?my(fr(e)):xy(tf(),it(e))}var Oy="__ngContext__";function qn(e,r){e[Oy]=r}function Ff(e){var r=function Fs(e){return e[Oy]||null}(e);return r?Array.isArray(r)?r:r.lView:null}function Lf(e){return e.ngOriginalError}function n1(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&(e[t-1][4]=n[4]);var a=El(e,10+r);!function _1(e,r){Ls(e,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function zy(e,r){if(!(256&r[2])){var t=r[11];ln(t)&&t.destroyNode&&Ls(e,r,t,3,null,null),function E1(e){var r=e[13];if(!r)return zf(e[1],e);for(;r;){var t=null;if(ii(r))t=r[13];else{var n=r[10];n&&(t=n)}if(!t){for(;r&&!r[4]&&r!==e;)ii(r)&&zf(r[1],r),r=r[3];null===r&&(r=e),ii(r)&&zf(r[1],r),t=r&&r[4]}r=t}}(r)}}function zf(e,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function D1(e,r){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[i=l]():n[i=-l].unsubscribe(),a+=2}else{var c=n[i=t[a+1]];t[a].call(c)}if(null!==n){for(var h=i+1;ha?"":i[h+1].toLowerCase();var _=8&n?v:null;if(_&&-1!==r_(_,l,0)||2&n&&l!==v){if(zr(n))return!1;o=!0}}}}else{if(!o&&!zr(n)&&!zr(u))return!1;if(o&&zr(u))continue;o=!1,n=u|1&n}}return zr(n)||o}function zr(e){return 0==(1&e)}function P1(e,r,t,n){if(null===r)return-1;var i=0;if(n||!t){for(var a=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!zr(o)&&(r+=s_(a,i),i=""),n=o,a=a||!zr(n);t++}return""!==i&&(r+=s_(a,i)),r}var at={};function ke(e){u_(St(),Se(),Zn()+e,ll())}function u_(e,r,t,n){if(!n)if(3==(3&r[2])){var a=e.preOrderCheckHooks;null!==a&&vl(r,a,t)}else{var o=e.preOrderHooks;null!==o&&pl(r,o,0,t)}Qi(t)}function Il(e,r){return e<<17|r<<2}function Wr(e){return e>>17&32767}function Yf(e){return 2|e}function Di(e){return(131068&e)>>2}function $f(e,r){return-131069&e|r<<2}function Xf(e){return 1|e}function __(e,r){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&u_(e,r,20,ll()),t(n,i)}finally{Qi(a)}}function C_(e,r,t){if(Yd(r))for(var i=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Sr,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a0;){var t=e[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(n,i,o)}}function M_(e,r){null!==e.hostBindings&&e.hostBindings(1,r)}function T_(e,r){r.flags|=2,(e.components||(e.components=[])).push(r.index)}function pR(e,r,t){if(t){if(r.exportAs)for(var n=0;n0&&dh(t)}}function dh(e){for(var r=Bf(e);null!==r;r=Hf(r))for(var t=10;t0&&dh(n)}var o=e[1].components;if(null!==o)for(var s=0;s0&&dh(u)}}function ER(e,r){var t=cr(r,e),n=t[1];(function kR(e,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:As;if(n===As){var i=new Error("NullInjectorError: No provider for ".concat(Ot(t),"!"));throw i.name="NullInjectorError",i}return n}}]),e}(),mh=new Ne("Set Injector scope."),Bs={},TR={},yh=void 0;function j_(){return void 0===yh&&(yh=new H_),yh}function U_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=G_(e,r,t,n);return i._resolveInjectorDefTypes(),i}function G_(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new RR(e,t,r||j_(),n)}var RR=function(){function e(r,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;d(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&oi(t,function(u){return i.processProvider(u,r,t)}),oi([r],function(u){return i.processInjectorType(u,[],o)}),this.records.set(gh,bo(void 0,this));var s=this.records.get(mh);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:Ot(r))}return f(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:As,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;this.assertNotDestroyed();var a=dy(this),o=zi(void 0);try{if(!(i&tt.SkipSelf)){var s=this.records.get(t);if(void 0===s){var u=BR(t)&&Ud(t);s=u&&this.injectableDefInScope(u)?bo(_h(t),Bs):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var l=i&tt.Self?j_():this.parent;return l.get(t,n=i&tt.Optional&&n===As?null:n)}catch(h){if("NullInjectorError"===h.name){var c=h[wl]=h[wl]||[];if(c.unshift(Ot(t)),a)throw h;return iT(h,t,"R3InjectorError",this.source)}throw h}finally{zi(o),dy(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,a){return t.push(Ot(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Ue(205,!1)}},{key:"processInjectorType",value:function(t,n,i){var a=this;if(!(t=dt(t)))return!1;var o=_m(t),s=null==o&&t.ngModule||void 0,u=void 0===s?t:s,h=-1!==i.indexOf(u);if(void 0!==s&&(o=_m(s)),null==o)return!1;if(null!=o.imports&&!h){var v;i.push(u);try{oi(o.imports,function(ee){a.processInjectorType(ee,n,i)&&(void 0===v&&(v=[]),v.push(ee))})}finally{}if(void 0!==v)for(var _=function(ye){var _e=v[ye],Te=_e.ngModule,Ie=_e.providers;oi(Ie,function(We){return a.processProvider(We,Te,Ie||Bt)})},O=0;O0)throw Ds(r,"?"),new Ue(204,!1);var n=function Lx(e){var r=e&&(e[tl]||e[bm]);if(r){var t=function Nx(e){if(e.hasOwnProperty("name"))return e.name;var r=(""+e).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" 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(t,'" class.')),r}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Ue(204,!1)}function z_(e,r,t){var n=void 0;if(Co(e)){var i=dt(e);return ya(i)||_h(i)}if(W_(e))n=function(){return dt(e.useValue)};else if(function PR(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,E(wf(e.deps||[])))};else if(function FR(e){return!(!e||!e.useExisting)}(e))n=function(){return le(dt(e.useExisting))};else{var a=dt(e&&(e.useClass||e.provide));if(!function NR(e){return!!e.deps}(e))return ya(a)||_h(a);n=function(){return G(a,E(wf(e.deps)))}}return n}function bo(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:r,multi:t?[]:void 0}}function W_(e){return null!==e&&"object"==typeof e&&tT in e}function Co(e){return"function"==typeof e}function BR(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ne}var qt=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return U_({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return U_({name:o},n.parent,n.providers,o)}}]),r}();return e.THROW_IF_NOT_FOUND=As,e.NULL=new H_,e.\u0275prov=we({token:e,providedIn:"any",factory:function(){return le(gh)}}),e.__NG_ELEMENT_ID__=-1,e}();function $R(e,r){hl(Ff(e)[1],Dn())}function Re(e){for(var r=function J_(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];r;){var i=void 0;if(Ur(e))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Ue(903,"");i=r.\u0275dir}if(i){if(t){n.push(i);var o=e;o.inputs=Ch(e.inputs),o.declaredInputs=Ch(e.declaredInputs),o.outputs=Ch(e.outputs);var s=i.hostBindings;s&&eO(e,s);var u=i.viewQuery,l=i.contentQueries;if(u&&ZR(e,u),l&&JR(e,l),Bd(e.inputs,i.inputs),Bd(e.declaredInputs,i.declaredInputs),Bd(e.outputs,i.outputs),Ur(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var h=i.features;if(h)for(var v=0;v=0;n--){var i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=ml(i.hostAttrs,t=ml(t,i.hostAttrs))}}(n)}function Ch(e){return e===Ya?{}:e===Bt?[]:e}function ZR(e,r){var t=e.viewQuery;e.viewQuery=t?function(n,i){r(n,i),t(n,i)}:r}function JR(e,r){var t=e.contentQueries;e.contentQueries=t?function(n,i,a){r(n,i,a),t(n,i,a)}:r}function eO(e,r){var t=e.hostBindings;e.hostBindings=t?function(n,i){r(n,i),t(n,i)}:r}var Bl=null;function Eo(){if(!Bl){var e=Lt.Symbol;if(e&&e.iterator)Bl=e.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tt.Default,t=Se();if(null===t)return le(e,r);var n=Dn();return ey(n,t,dt(e),r)}function Us(){throw new Error("invalid")}function xe(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!1),xe}function Dh(e,r,t,n,i){var o=i?"class":"style";B_(e,t,r.inputs[o],o,n)}function pe(e,r,t,n){var i=Se(),a=St(),o=20+e,s=i[11],u=i[o]=Uf(s,r,function DM(){return nt.lFrame.currentNamespace}()),l=a.firstCreatePass?function DO(e,r,t,n,i,a,o){var s=r.consts,l=mo(r,e,2,i,Ki(s,a));return lh(r,t,l,Ki(s,o)),null!==l.attrs&&Vl(l,l.attrs,!1),null!==l.mergedAttrs&&Vl(l,l.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,l),l}(o,a,i,0,r,t,n):a.data[o];ai(l,!0);var c=l.mergedAttrs;null!==c&&gl(s,u,c);var h=l.classes;null!==h&&Qf(s,u,h);var v=l.styles;return null!==v&&n_(s,u,v),64!=(64&l.flags)&&Rl(a,i,u,l),0===function fM(){return nt.lFrame.elementDepthCount}()&&qn(u,i),function hM(){nt.lFrame.elementDepthCount++}(),sl(l)&&(sh(a,i,l),C_(a,l,i)),null!==n&&uh(i,l),pe}function ge(){var e=Dn();sf()?uf():ai(e=e.parent,!1);var r=e;!function vM(){nt.lFrame.elementDepthCount--}();var t=St();return t.firstCreatePass&&(hl(t,e),Yd(e)&&t.queries.elementEnd(e)),null!=r.classesWithoutHost&&function RM(e){return 0!=(16&e.flags)}(r)&&Dh(t,r,Se(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function OM(e){return 0!=(32&e.flags)}(r)&&Dh(t,r,Se(),r.stylesWithoutHost,!1),ge}function Xt(e,r,t,n){return pe(e,r,t,n),ge(),Xt}function Gs(e,r,t){var n=Se(),i=St(),a=e+20,o=i.firstCreatePass?function AO(e,r,t,n,i){var a=r.consts,o=Ki(a,n),s=mo(r,e,8,"ng-container",o);return null!==o&&Vl(s,o,!0),lh(r,t,s,Ki(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,t):i.data[a];ai(o,!0);var s=n[a]=n[11].createComment("");return Rl(i,n,s,o),qn(s,n),sl(o)&&(sh(i,n,o),C_(i,o,n)),null!=t&&uh(n,o),Gs}function zs(){var e=Dn(),r=St();return sf()?uf():ai(e=e.parent,!1),r.firstCreatePass&&(hl(r,e),Yd(e)&&r.queries.elementEnd(e)),zs}function Nt(){return Se()}function Ws(e){return!!e&&"function"==typeof e.then}var Ah=function Cb(e){return!!e&&"function"==typeof e.subscribe};function Ge(e,r,t,n){var i=Se(),a=St(),o=Dn();return Eb(a,i,i[11],o,e,r,!!t,n),Ge}function qs(e,r){var t=Dn(),n=Se(),i=St();return Eb(i,n,N_(cf(i.data),t,n),t,e,r,!1),qs}function Eb(e,r,t,n,i,a,o,s){var u=sl(n),c=e.firstCreatePass&&L_(e),h=r[8],v=P_(r),_=!0;if(3&n.type||s){var O=Sr(n,r),J=s?s(O):O,te=v.length,ue=s?function(Ui){return s(_n(Ui[n.index]))}:n.index;if(ln(t)){var ee=null;if(!s&&u&&(ee=function xO(e,r,t,n){var i=e.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}(e,r,i,n.index)),null!==ee)(ee.__ngLastListenerFn__||ee).__ngNextListenerFn__=a,ee.__ngLastListenerFn__=a,_=!1;else{a=xh(n,r,h,a,!1);var _e=t.listen(J,i,a);v.push(a,_e),c&&c.push(i,ue,te,te+1)}}else a=xh(n,r,h,a,!0),J.addEventListener(i,a,o),v.push(a),c&&c.push(i,ue,te,o)}else a=xh(n,r,h,a,!1);var Ie,Te=n.outputs;if(_&&null!==Te&&(Ie=Te[i])){var We=Ie.length;if(We)for(var bt=0;bt0&&void 0!==arguments[0]?arguments[0]:1;return EM(e)}function MO(e,r){for(var t=null,n=function L1(e){var r=e.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Se(),i=St(),a=mo(i,20+e,16,null,t||null);null===a.projection&&(a.projection=r),uf(),64!=(64&a.flags)&&M1(i,n,a)}function Ib(e,r,t,n,i){for(var a=e[t+1],o=null===r,s=n?Wr(a):Di(a),u=!1;0!==s&&(!1===u||o);){var c=e[s+1];OO(e[s],r)&&(u=!0,e[s+1]=n?Xf(c):Yf(c)),s=n?Wr(c):Di(c)}u&&(e[t+1]=n?Yf(a):Xf(a))}function OO(e,r){return null===e||null==r||(Array.isArray(e)?e[1]:e)===r||!(!Array.isArray(e)||"string"!=typeof r)&&lo(e,r)>=0}function xi(e,r,t){return Kr(e,r,t,!1),xi}function It(e,r){return Kr(e,r,null,!0),It}function Kr(e,r,t,n){var i=Se(),a=St(),o=function Si(e){var r=nt.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}(2);a.firstUpdatePass&&function jb(e,r,t,n){var i=e.data;if(null===i[t+1]){var a=i[Zn()],o=function Hb(e,r){return r>=e.expandoStartIndex}(e,t);(function Wb(e,r){return 0!=(e.flags&(r?16:32))})(a,n)&&null===r&&!o&&(r=!1),r=function jO(e,r,t,n){var i=cf(e),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(t=Ks(t=Th(null,e,r,t,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Th(i,e,r,t,n),null===a){var l=function UO(e,r,t){var n=t?r.classBindings:r.styleBindings;if(0!==Di(n))return e[Wr(n)]}(e,r,n);void 0!==l&&Array.isArray(l)&&function GO(e,r,t,n){e[Wr(t?r.classBindings:r.styleBindings)]=n}(e,r,n,l=Ks(l=Th(null,e,r,l[1],n),r.attrs,n))}else a=function zO(e,r,t){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(l=!0):c=t,i)if(0!==u){var _=Wr(e[s+1]);e[n+1]=Il(_,s),0!==_&&(e[_+1]=$f(e[_+1],n)),e[s+1]=function G1(e,r){return 131071&e|r<<17}(e[s+1],n)}else e[n+1]=Il(s,0),0!==s&&(e[s+1]=$f(e[s+1],n)),s=n;else e[n+1]=Il(u,0),0===s?s=n:e[u+1]=$f(e[u+1],n),u=n;l&&(e[n+1]=Yf(e[n+1])),Ib(e,c,n,!0),Ib(e,c,n,!1),function RO(e,r,t,n,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof r&&lo(a,r)>=0&&(t[n+1]=Xf(t[n+1]))}(r,c,e,n,a),o=Il(s,u),a?r.classBindings=o:r.styleBindings=o}(i,a,r,t,o,n)}}(a,e,o,n),r!==at&&Kn(i,o,r)&&function Gb(e,r,t,n,i,a,o,s){if(3&r.type){var u=e.data,l=u[s+1];jl(function d_(e){return 1==(1&e)}(l)?zb(u,r,t,i,Di(l),o):void 0)||(jl(a)||function c_(e){return 2==(2&e)}(l)&&(a=zb(u,null,t,i,s,o)),function R1(e,r,t,n,i){var a=ln(e);if(r)i?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:hr.DashCase;if(null==i)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=hr.Important),a?e.setStyle(t,n,i,o):t.style.setProperty(n,i,s?"important":"")}}}(n,o,ul(Zn(),t),i,a))}}(a,a.data[Zn()],i,i[11],e,i[o+1]=function KO(e,r){return null==e||("string"==typeof r?e+=r:"object"==typeof e&&(e=Ot(fr(e)))),e}(r,t),n,o)}function Th(e,r,t,n,i){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,v=t[i+1];v===at&&(v=h?Bt:void 0);var _=h?Cf(v,n):c===n?v:void 0;if(l&&!jl(_)&&(_=Cf(u,n)),jl(_)&&(s=_,o))return s;var O=e[i+1];i=o?Wr(O):Di(O)}if(null!==r){var J=a?r.residualClasses:r.residualStyles;null!=J&&(s=Cf(J,n))}return s}function jl(e){return void 0!==e}function Oe(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Se(),n=St(),i=e+20,a=n.firstCreatePass?mo(n,i,1,r,null):n.data[i],o=t[i]=jf(t[11],r);Rl(n,t,o,a),ai(a,!1)}function bn(e){return Rh("",e,""),bn}function Rh(e,r,t){var n=Se(),i=function wo(e,r,t,n){return Kn(e,to(),t)?r+it(t)+n:at}(n,e,r,t);return i!==at&&Ai(n,Zn(),i),Rh}function Fo(e,r,t){var n=Se();return Kn(n,to(),r)&&vr(St(),cn(),n,e,r,n[11],t,!0),Fo}function Qs(e,r,t){var n=Se();if(Kn(n,to(),r)){var a=St(),o=cn();vr(a,o,n,e,r,N_(cf(a.data),o,n),t,!0)}return Qs}var Ul="en-US";function lF(e,r,t){var n=St();if(n.firstCreatePass){var i=Ur(e);Fh(t,n.data,n.blueprint,i,!0),Fh(r,n.data,n.blueprint,i,!1)}}function Fh(e,r,t,n,i){if(e=dt(e),Array.isArray(e))for(var a=0;a>20;if(Co(e)||!e.multi){var O=new bs(l,i,B),J=Lh(u,r,i?h:h+_,v);-1===J?(bl(Es(c,s),o,u),Ph(o,e,r.length),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(O),s.push(O)):(t[J]=O,s[J]=O)}else{var te=Lh(u,r,h+_,v),ue=Lh(u,r,h,h+_),ye=ue>=0&&t[ue];if(i&&!ye||!i&&!(te>=0&&t[te])){bl(Es(c,s),o,u);var _e=function fF(e,r,t,n,i){var a=new bs(e,t,B);return a.multi=[],a.index=r,a.componentProviders=0,PC(a,i,n&&!t),a}(i?dF:cF,t.length,i,n,l);!i&&ye&&(t[ue].providerFactory=_e),Ph(o,e,r.length,0),r.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(_e),s.push(_e)}else Ph(o,e,te>-1?te:ue,PC(t[i?ue:te],l,!i&&n));!i&&n&&ye&&t[ue].componentProviders++}}}function Ph(e,r,t,n){var i=Co(r),a=function LR(e){return!!e.useClass}(r);if(i||a){var u=(a?dt(r.useClass):r).prototype.ngOnDestroy;if(u){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){var c=l.indexOf(t);-1===c?l.push(t,[n,u]):l[c+1].push(n,u)}else l.push(t,u)}}}function PC(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function Lh(e,r,t,n){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,i){return lF(n,i?i(e):e,r)}}}var hF=f(function e(){d(this,e)}),LC=f(function e(){d(this,e)}),pF=function(){function e(){d(this,e)}return f(e,[{key:"resolveComponentFactory",value:function(t){throw function vF(e){var r=Error("No component factory found for ".concat(Ot(e),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=e,r}(t)}}]),e}(),ka=function(){var e=f(function r(){d(this,r)});return e.NULL=new pF,e}();function gF(){return No(Dn(),Se())}function No(e,r){return new Ye(Sr(e,r))}var Ye=function(){var e=f(function r(t){d(this,r),this.nativeElement=t});return e.__NG_ELEMENT_ID__=gF,e}();function mF(e){return e instanceof Ye?e.nativeElement:e}var Js=f(function e(){d(this,e)}),Yr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=function(){return function _F(){var e=Se(),t=cr(Dn().index,e);return function yF(e){return e[11]}(ii(t)?t:e)}()},e}(),bF=function(){var e=f(function r(){d(this,r)});return e.\u0275prov=we({token:e,providedIn:"root",factory:function(){return null}}),e}(),ea=f(function e(r){d(this,e),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),CF=new ea("13.2.5"),Vh={};function Kl(e,r,t,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&n.push(_n(a)),jr(a))for(var o=10;o-1&&(Gf(t,i),El(n,i))}this._attachedToViewContainer=!1}zy(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){S_(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){fh(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vh(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function SR(e,r,t){cl(!0);try{vh(e,r,t)}finally{cl(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Ue(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function C1(e,r){Ls(e,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Ue(902,"");this._appRef=t}}]),e}(),EF=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this,n))._view=n,i}return f(t,[{key:"detectChanges",value:function(){F_(this._view)}},{key:"checkNoChanges",value:function(){!function DR(e){cl(!0);try{F_(e)}finally{cl(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(eu),VC=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).ngModule=n,i}return f(t,[{key:"resolveComponentFactory",value:function(i){var a=Gn(i);return new Bh(a,this.ngModule)}}]),t}(ka);function BC(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push({propName:e[t],templateName:t});return r}var Bh=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function j1(e){return e.map(H1).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return f(t,[{key:"inputs",get:function(){return BC(this.componentDef.inputs)}},{key:"outputs",get:function(){return BC(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var ee,ye,u=(s=s||this.ngModule)?function wF(e,r){return{get:function(n,i,a){var o=e.get(n,Vh,a);return o!==Vh||i===Vh?o:r.get(n,i,a)}}}(i,s.injector):i,l=u.get(Js,Rm),c=u.get(bF,null),h=l.createRenderer(null,this.componentDef),v=this.componentDef.selectors[0][0]||"div",_=o?function w_(e,r,t){if(ln(e))return e.selectRootElement(r,t===Br.ShadowDom);var i="string"==typeof r?e.querySelector(r):r;return i.textContent="",i}(h,o,this.componentDef.encapsulation):Uf(l.createRenderer(null,this.componentDef),v,function kF(e){var r=e.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(v)),O=this.componentDef.onPush?576:528,J=function Z_(e,r){return{components:[],scheduler:e||h1,clean:AR,playerHandler:r||null,flags:0}}(),te=Ll(0,null,null,1,0,null,null,null,null,null),ue=Ns(null,te,J,O,null,null,l,h,c,u);dl(ue);try{var _e=function $_(e,r,t,n,i,a){var o=t[1];t[20]=e;var u=mo(o,20,2,"#host",null),l=u.mergedAttrs=r.hostAttrs;null!==l&&(Vl(u,l,!0),null!==e&&(gl(i,e,l),null!==u.classes&&Qf(i,e,u.classes),null!==u.styles&&n_(i,e,u.styles)));var c=n.createRenderer(e,r),h=Ns(t,E_(r),null,r.onPush?64:16,t[20],u,n,c,a||null,null);return o.firstCreatePass&&(bl(Es(u,t),o,r.type),T_(o,u),R_(u,t.length,1)),Nl(t,h),t[20]=h}(_,this.componentDef,ue,l,h);if(_)if(o)gl(h,_,["ng-version",CF.full]);else{var Te=function U1(e){for(var r=[],t=[],n=1,i=2;n0&&Qf(h,_,We.join(" "))}if(ye=nf(te,20),void 0!==a)for(var bt=ye.projection=[],on=0;on1&&void 0!==arguments[1]?arguments[1]:qt.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt.Default;return i===qt||i===Mi||i===gh?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(Mi),Hh=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).moduleType=n,null!==Er(n)&&function xF(e){var r=new Set;!function t(n){var i=Er(n,!0),a=i.id;null!==a&&(function jC(e,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ot(r)," vs ").concat(Ot(r.name)))}(a,Vo.get(a),n),Vo.set(a,n));var l,u=Y(li(i.imports));try{for(u.s();!(l=u.n()).done;){var c=l.value;r.has(c)||(r.add(c),t(c))}}catch(h){u.e(h)}finally{u.f()}}(e)}(n),i}return f(t,[{key:"create",value:function(i){return new GC(this.moduleType,i)}}]),t}(HC);function tu(e,r,t){var n=Xn()+e,i=Se();return i[n]===at?di(i,n,t?r.call(t):r()):function js(e,r){return e[r]}(i,n)}function jh(e,r,t,n){return function zC(e,r,t,n,i,a){var o=r+t;return Kn(e,o,i)?di(e,o+1,a?n.call(a,i):n(i)):function nu(e,r){var t=e[r];return t===at?void 0:t}(e,o+1)}(Se(),Xn(),e,r,t,n)}var zF=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,t),(n=r.call(this)).__isAsync=i,n}return f(t,[{key:"emit",value:function(i){M(k(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,u,l,c=i,h=a||function(){return null},v=o;if(i&&"object"==typeof i){var _=i;c=null===(s=_.next)||void 0===s?void 0:s.bind(_),h=null===(u=_.error)||void 0===u?void 0:u.bind(_),v=null===(l=_.complete)||void 0===l?void 0:l.bind(_)}this.__isAsync&&(h=Uh(h),c&&(c=Uh(c)),v&&(v=Uh(v)));var O=M(k(t.prototype),"subscribe",this).call(this,{next:c,error:h,complete:v});return i instanceof F&&i.add(O),O}}]),t}(Pe);function Uh(e){return function(r){setTimeout(e,void 0,r)}}var Dt=zF;function WF(){return this._results[Eo()]()}var YC=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(this,e),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Eo(),n=e.prototype;n[t]||(n[t]=WF)}return f(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Dt)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var i=this;i.dirty=!1;var a=Dr(t);(this._changesDetected=!function GM(e,r,t){if(e.length!==r.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=XC(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,u){var c,l=i&&!function Ss(e){return"function"==typeof e}(i);if(l)c=a;else{var h=a||{};c=h.index,o=h.injector,s=h.projectableNodes,u=h.ngModuleRef}var v=l?i:new Bh(Gn(i)),_=o||this.parentInjector;if(!u&&null==v.ngModule){var J=(l?_:this.parentInjector).get(Mi,null);J&&(u=J)}var te=v.create(_,s,void 0,u);return this.insert(te.hostView,c),te}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function dM(e){return jr(e[3])}(o)){var u=this.indexOf(i);if(-1!==u)this.detach(u);else{var l=o[3],c=new $C(l,l[6],l[3]);c.detach(c.indexOf(i))}}var h=this._adjustIndex(a),v=this._lContainer;!function k1(e,r,t,n){var i=10+n,a=t.length;n>0&&(t[i-1][4]=r),n1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),t}(Mr);function XC(e){return e[8]}function Gh(e){return e[8]||(e[8]=[])}function ZC(e,r){var t,n=r[e.index];if(jr(n))t=n;else{var i;if(8&e.type)i=_n(n);else{var a=r[11];i=a.createComment("");var o=Sr(e,r);ba(a,Tl(a,o),i,function x1(e,r){return ln(e)?e.nextSibling(r):r.nextSibling}(a,o),!1)}r[e.index]=t=I_(n,r,i,e),Nl(r,t)}return new $C(t,e,r)}var JF=function(){function e(r){d(this,e),this.queryList=r,this.matches=null}return f(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),eP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;d(this,e),this.predicate=r,this.flags=t,this.read=n}),tP=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d(this,e),this.queries=r}return f(e,[{key:"elementStart",value:function(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;d(this,e),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return f(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{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(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a0)n.push(o[s/2]);else{for(var l=a[s+1],c=r[-u],h=10;h0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(u){return u.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),DE=function(){var e=function(){function r(){d(this,r),this._applications=new Map,iv.addToWindow(this)}return f(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||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(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return iv.findTestabilityInTree(this,n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),LP=function(){function e(){d(this,e)}return f(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,i){return null}}]),e}(),iv=new LP;function VP(e,r,t){var n=new Hh(t);return Promise.resolve(n)}var AE=new Ne("AllowMultipleToken"),xE=f(function e(r,t){d(this,e),this.name=r,this.token=t});function HP(e){if(Xr&&!Xr.destroyed&&!Xr.injector.get(AE,!1))throw new Ue(400,"");Xr=e.get(RE);var t=e.get(CE,null);return t&&t.forEach(function(n){return n()}),Xr}function ME(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new Ne(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=TE();if(!o||o.injector.get(AE,!1))if(e)e(t.concat(a).concat({provide:i,useValue:!0}));else{var s=t.concat(a).concat({provide:i,useValue:!0},{provide:mh,useValue:"platform"});HP(qt.create({providers:s,name:n}))}return jP()}}function jP(e){var r=TE();if(!r)throw new Ue(401,"");return r}function TE(){return Xr&&!Xr.destroyed?Xr:null}var RE=function(){var e=function(){function r(t){d(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return f(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,l=function UP(e,r){return"noop"===e?new PP:("zone.js"===e?void 0:e)||new st({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:st,useValue:l}];return l.run(function(){var h=qt.create({providers:c,parent:a.injector,name:n.moduleType.name}),v=n.create(h),_=v.injector.get(Xi,null);if(!_)throw new Ue(402,"");return l.runOutsideAngular(function(){var J=l.onError.subscribe({next:function(ue){_.handleError(ue)}});v.onDestroy(function(){av(a._modules,v),J.unsubscribe()})}),function GP(e,r,t){try{var n=t();return Ws(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}}(_,l,function(){var J=v.injector.get(Xh);return J.runInitializers(),J.donePromise.then(function(){return function yI(e){ur(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(v.injector.get(Ti,Ul)||Ul),a._moduleDoBootstrap(v),v})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=OE({},a);return VP(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(Zl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new Ue(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Ue(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function OE(e,r){return Array.isArray(r)?r.reduce(OE,e):Object.assign(Object.assign({},e),r)}var Zl=function(){var e=function(){function r(t,n,i,a,o){var s=this;d(this,r),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new ct(function(c){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){c.next(s._stable),c.complete()})}),l=new ct(function(c){var h;s._zone.runOutsideAngular(function(){h=s._zone.onStable.subscribe(function(){st.assertNotInAngularZone(),ev(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,c.next(!0))})})});var v=s._zone.onUnstable.subscribe(function(){st.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){h.unsubscribe(),v.unsubscribe()}});this.isStable=Qa(u,l.pipe(gm()))}return f(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new Ue(405,"");s=n instanceof LC?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var u=function BP(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mi),c=s.create(qt.NULL,[],i||s.selector,u),h=c.location.nativeElement,v=c.injector.get(rv,null),_=v&&c.injector.get(DE);return v&&_&&_.registerApplication(h,v),c.onDestroy(function(){a.detachView(c.hostView),av(a.components,c),_&&_.unregisterApplication(h)}),this._loadComponent(c),c}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Ue(101,"");try{this._runningTick=!0;var o,a=Y(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(h){a.e(h)}finally{a.f()}}catch(h){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(h)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;av(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Jh,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(qt),le(Xi),le(ka),le(Xh))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function av(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var gr=function(){var e=f(function r(){d(this,r)});return e.__NG_ELEMENT_ID__=qP,e}();function qP(e){return function KP(e,r,t){if(ol(e)&&!t){var n=cr(e.index,r);return new eu(n,n)}return 47&e.type?new eu(r[16],r):null}(Dn(),Se(),16==(16&e))}var BE=function(){function e(){d(this,e)}return f(e,[{key:"supports",value:function(t){return Hs(t)}},{key:"create",value:function(t){return new XP(t)}}]),e}(),$P=function(r,t){return t},XP=function(){function e(r){d(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=r||$P}return f(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Da);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:function(){return function fL(){return new WE(le(ot))}()},providedIn:"platform"}),e}();function qE(){return!!window.history.pushState}function dv(e,r){if(0==e.length)return r;if(0==r.length)return e;var t=0;return e.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?e+r.substring(1):1==t?e+r:e+"/"+r}function KE(e){var r=e.match(/#|\?|$/),t=r&&r.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Ri(e){return e&&"?"!==e[0]?"?"+e:e}var Ho=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:function(){return function hL(e){var r=le(ot).location;return new QE(le(Da),r&&r.origin||"")}()},providedIn:"root"}),e}(),fv=new Ne("appBaseHref"),QE=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;if(d(this,n),(o=t.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)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 o._baseHref=a,o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return dv(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+Ri(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(le(Da),le(fv,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),vL=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._platformLocation=i,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return f(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=dv(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+Ri(u));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Ho);return e.\u0275fac=function(t){return new(t||e)(le(Da),le(fv,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),Aa=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._subject=new Dt,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=KE(YE(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return f(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+Ri(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function gL(e,r){return e&&r.startsWith(e)?r.substring(e.length):r}(this._baseHref,YE(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return e.normalizeQueryParams=Ri,e.joinWithSlash=dv,e.stripTrailingSlash=KE,e.\u0275fac=function(t){return new(t||e)(le(Ho),le(Da))},e.\u0275prov=we({token:e,factory:function(){return function pL(){return new Aa(le(Ho),le(Da))}()},providedIn:"root"}),e}();function YE(e){return e.replace(/\/index.html$/,"")}function ik(e,r){r=encodeURIComponent(r);var n,t=Y(e.split(";"));try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i.indexOf("="),s=K(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),l=s[1];if(s[0].trim()===r)return decodeURIComponent(l)}}catch(c){t.e(c)}finally{t.f()}return null}var lc=function(){var e=function(){function r(t,n,i,a){d(this,r),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return f(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Hs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Ot(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(ou),B(Sa),B(Ye),B(Yr))},e.\u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),eN=function(){function e(r,t,n,i){d(this,e),this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}return f(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}(),Ev=function(){var e=function(){function r(t,n,i){d(this,r),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return f(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(c,h,v){if(null==c.previousIndex)a.createEmbeddedView(i._template,new eN(c.item,i._ngForOf,-1,-1),null===v?void 0:v);else if(null==v)a.remove(null===h?void 0:h);else if(null!==h){var _=a.get(h);a.move(_,v),ak(_,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},Lt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Lt.getAllAngularRootElements=function(){return t.getAllRootElements()},Lt.frameworkStabilizers||(Lt.frameworkStabilizers=[]),Lt.frameworkStabilizers.push(function(a){var o=Lt.getAllAngularTestabilities(),s=o.length,u=!1,l=function(h){u=u||h,0==--s&&a(u)};o.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,n,i){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:i?vi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function NP(e){iv=e}(new e)}}]),e}(),BN=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),hc=new Ne("EventManagerPlugins"),vc=function(){var e=function(){function r(t,n){var i=this;d(this,r),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=i}),this._plugins=t.slice().reverse()}return f(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o-1&&(o.splice(v,1),l+=h+".")}),l+=u,0!=o.length||0===u.length)return null;var c={};return c.domEventName=s,c.fullKey=l,c}},{key:"getEventFullKey",value:function(a){var o="",s=function ZN(e){var r=e.key;if(null==r){if(null==(r=e.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===e.location&&Ck.hasOwnProperty(r)&&(r=Ck[r]))}return YN[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),bk.forEach(function(u){u!=s&&(0,$N[u])(a)&&(o+=u+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(u){n.getEventFullKey(u)===a&&s.runGuarded(function(){return o(u)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(hk);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),n2=[{provide:pr,useValue:ck},{provide:CE,useValue:function JN(){IN.makeCurrent(),VN.init()},multi:!0},{provide:ot,useFactory:function t2(){return function sM(e){ef=e}(document),document},deps:[]}],r2=ME(aL,"browser",n2),a2=[{provide:mh,useValue:"root"},{provide:Xi,useFactory:function e2(){return new Xi},deps:[]},{provide:hc,useClass:KN,multi:!0,deps:[ot,st,pr]},{provide:hc,useClass:XN,multi:!0,deps:[ot]},{provide:gc,useClass:gc,deps:[vc,cu,au]},{provide:Js,useExisting:gc},{provide:vk,useExisting:cu},{provide:cu,useClass:cu,deps:[ot]},{provide:rv,useClass:rv,deps:[st]},{provide:vc,useClass:vc,deps:[hc,st]},{provide:Av,useClass:BN,deps:[]}],Ek=function(){var e=function(){function r(t){if(d(this,r),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 f(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:au,useValue:n.appId},{provide:fk,useExisting:au},NN]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(e,12))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:a2,imports:[dc,oL]}),e}();"undefined"!=typeof window&&window;var mc=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:function(t){return t?new(t||e):le(Sk)},providedIn:"root"}),e}(),Sk=function(){var e=function(r){p(n,r);var t=y(n);function n(i){var a;return d(this,n),(a=t.call(this))._doc=i,a}return f(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case xt.NONE:return o;case xt.HTML:return si(o,"HTML")?fr(o):xy(this._doc,String(o)).toString();case xt.STYLE:return si(o,"Style")?fr(o):o;case xt.SCRIPT:if(si(o,"Script"))return fr(o);throw new Error("unsafe value used in a script context");case xt.URL:return by(o),si(o,"URL")?fr(o):Rs(String(o));case xt.RESOURCE_URL:if(si(o,"ResourceURL"))return fr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function CT(e){return new gT(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function ET(e){return new mT(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function kT(e){return new yT(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function wT(e){return new _T(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function ST(e){return new bT(e)}(a)}}]),n}(mc);return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:function(t){var n;return n=t?new t:function h2(e){return new Sk(e.get(ot))}(le(qt)),n},providedIn:"root"}),e}(),v2=Array.isArray,p2=Object.getPrototypeOf,g2=Object.prototype,m2=Object.keys;function Dk(e){if(1===e.length){var r=e[0];if(v2(r))return{args:r,keys:null};if(function y2(e){return e&&"object"==typeof e&&p2(e)===g2}(r)){var t=m2(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}var _2=Array.isArray;function Ov(e){return Xe(function(r){return function b2(e,r){return _2(r)?e.apply(void 0,E(r)):e(r)}(e,r)})}function Ak(e,r){return e.reduce(function(t,n,i){return t[n]=r[i],t},{})}function xk(){for(var e=arguments.length,r=new Array(e),t=0;te?{max:{max:e,actual:r.value}}:null}}(t)}},{key:"required",value:function(t){return Fk(t)}},{key:"requiredTrue",value:function(t){return function Pk(e){return!0===e.value?null:{required:!0}}(t)}},{key:"email",value:function(t){return function Lk(e){return ta(e.value)||S2.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function Nk(e){return function(r){return ta(r.value)||!Rk(r.value)?null:r.value.lengthe?{maxlength:{requiredLength:e,actualLength:r.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return function Bk(e){return e?("string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),r=new RegExp(t)):(t=e.toString(),r=e),function(n){if(ta(n.value))return null;var i=n.value;return r.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}):yc;var r,t}(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return Wk(t)}},{key:"composeAsync",value:function(t){return qk(t)}}]),e}();function Fk(e){return ta(e.value)?{required:!0}:null}function yc(e){return null}function Hk(e){return null!=e}function jk(e){var r=Ws(e)?In(e):e;return Ah(r),r}function Uk(e){var r={};return e.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function Gk(e,r){return r.map(function(t){return t(e)})}function zk(e){return e.map(function(r){return function A2(e){return!e.validate}(r)?r:function(t){return r.validate(t)}})}function Wk(e){if(!e)return null;var r=e.filter(Hk);return 0==r.length?null:function(t){return Uk(Gk(t,r))}}function Iv(e){return null!=e?Wk(zk(e)):null}function qk(e){if(!e)return null;var r=e.filter(Hk);return 0==r.length?null:function(t){return xk(Gk(t,r).map(jk)).pipe(Xe(Uk))}}function Fv(e){return null!=e?qk(zk(e)):null}function Kk(e,r){return null===e?[r]:Array.isArray(e)?[].concat(E(e),[r]):[e,r]}function Qk(e){return e._rawValidators}function Yk(e){return e._rawAsyncValidators}function Pv(e){return e?Array.isArray(e)?e:[e]:[]}function _c(e,r){return Array.isArray(e)?e.includes(r):e===r}function $k(e,r){var t=Pv(r);return Pv(e).forEach(function(i){_c(t,i)||t.push(i)}),t}function Xk(e,r){return Pv(r).filter(function(t){return!_c(e,t)})}var Zk=function(){function e(){d(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return f(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Iv(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fv(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,n){return!!this.control&&this.control.hasError(t,n)}},{key:"getError",value:function(t,n){return this.control?this.control.getError(t,n):null}}]),e}(),Ii=function(e){p(t,e);var r=y(t);function t(){var n;return d(this,t),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return f(t)}(Zk),tr=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Zk),Jk=function(){function e(r){d(this,e),this._cd=r}return f(e,[{key:"is",value:function(t){var n,i,a;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[t])}}]),e}(),du=function(){var e=function(r){p(n,r);var t=y(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jk);return e.\u0275fac=function(t){return new(t||e)(B(Ii,2))},e.\u0275dir=Ee({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Re]}),e}(),fu=function(){var e=function(r){p(n,r);var t=y(n);function n(i){return d(this,n),t.call(this,i)}return f(n)}(Jk);return e.\u0275fac=function(t){return new(t||e)(B(tr,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&It("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Re]}),e}();function hu(e,r){Vv(e,r),r.valueAccessor.writeValue(e.value),function P2(e,r){r.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tw(e,r)})}(e,r),function N2(e,r){var t=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};e.registerOnChange(t),r._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,r),function L2(e,r){r.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tw(e,r),"submit"!==e.updateOn&&e.markAsTouched()})}(e,r),function F2(e,r){if(r.valueAccessor.setDisabledState){var t=function(i){r.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),r._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,r)}function Ec(e,r){var n=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(n),r.valueAccessor.registerOnTouched(n)),wc(e,r),e&&(r._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function kc(e,r){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function Vv(e,r){var t=Qk(e);null!==r.validator?e.setValidators(Kk(t,r.validator)):"function"==typeof t&&e.setValidators([t]);var n=Yk(e);null!==r.asyncValidator?e.setAsyncValidators(Kk(n,r.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var i=function(){return e.updateValueAndValidity()};kc(r._rawValidators,i),kc(r._rawAsyncValidators,i)}function wc(e,r){var t=!1;if(null!==e){if(null!==r.validator){var n=Qk(e);if(Array.isArray(n)&&n.length>0){var i=n.filter(function(u){return u!==r.validator});i.length!==n.length&&(t=!0,e.setValidators(i))}}if(null!==r.asyncValidator){var a=Yk(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(u){return u!==r.asyncValidator});o.length!==a.length&&(t=!0,e.setAsyncValidators(o))}}}var s=function(){};return kc(r._rawValidators,s),kc(r._rawAsyncValidators,s),t}function tw(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function nw(e,r){Vv(e,r)}function rw(e,r){e._syncPendingControls(),r.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function jv(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var vu="VALID",Sc="INVALID",Go="PENDING",pu="DISABLED";function Gv(e){return(Dc(e)?e.validators:e)||null}function iw(e){return Array.isArray(e)?Iv(e):e||null}function zv(e,r){return(Dc(r)?r.asyncValidators:e)||null}function aw(e){return Array.isArray(e)?Fv(e):e||null}function Dc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ow=function(r){return r instanceof cw},Wv=function(r){return r instanceof Kv};function sw(e){return ow(e)?e.value:e.getRawValue()}function uw(e,r){var t=Wv(e),n=e.controls;if(!(t?Object.keys(n):n).length)throw new Ue(1e3,"");if(!n[r])throw new Ue(1001,"")}function lw(e,r){Wv(e),e._forEachChild(function(n,i){if(void 0===r[i])throw new Ue(1002,"")})}var qv=function(){function e(r,t){d(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=iw(this._rawValidators),this._composedAsyncValidatorFn=aw(this._rawAsyncValidators)}return f(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===vu}},{key:"invalid",get:function(){return this.status===Sc}},{key:"pending",get:function(){return this.status==Go}},{key:"disabled",get:function(){return this.status===pu}},{key:"enabled",get:function(){return this.status!==pu}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=iw(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=aw(t)}},{key:"addValidators",value:function(t){this.setValidators($k(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($k(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Xk(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Xk(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return _c(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return _c(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Go,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=pu,this.errors=null,this._forEachChild(function(i){i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=vu,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vu||this.status===Go)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?pu:vu}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=Go,this._hasOwnPendingAsyncValidator=!0;var i=jk(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function j2(e,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var n=e;return r.forEach(function(i){n=Wv(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof G2}(n)&&n.at(i)||null}),n}(this,t,".")}},{key:"getError",value:function(t,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Dt,this.statusChanges=new Dt}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pu:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Go)?Go:this._anyControlsHaveStatus(Sc)?Sc:vu}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Dc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),cw=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return d(this,t),(n=r.call(this,Gv(a),zv(o,a))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),Dc(a)&&a.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(i)?i.value:i),n}return f(t,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){jv(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){jv(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(qv),Kv=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,i),Object.keys(i).forEach(function(s){uw(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=sw(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(qv),G2=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,Gv(i),zv(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return f(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,i),i.forEach(function(s,u){uw(a,u),a.at(u).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,u){a.at(u)&&a.at(u).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return sw(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=Y(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(qv),z2={provide:tr,useExisting:Tt(function(){return ra})},gu=function(){return Promise.resolve(null)}(),ra=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new Dt,o.form=new Kv({},Iv(i),Fv(a)),o}return f(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),hu(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path),u=new Kv({});nw(u,a),s.registerControl(a.name,u),u.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;gu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;gu.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rw(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(B(Vn,10),B(na,10))},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([z2]),Re]}),e}(),q2={provide:Ii,useExisting:Tt(function(){return zo})},hw=function(){return Promise.resolve(null)}(),zo=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._changeDetectorRef=u,l.control=new cw,l._registered=!1,l.update=new Dt,l._parent=i,l._setValidators(a),l._setAsyncValidators(o),l.valueAccessor=function Hv(e,r){if(!r)return null;Array.isArray(r);var t=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===Uo?t=a:function H2(e){return Object.getPrototypeOf(e.constructor)===Ma}(a)?n=a:i=a}),i||n||t||null}(Q(l),s),l}return f(n,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),function Bv(e,r){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{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(){hu(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(a){var o=this;hw.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,u=""===s||s&&"false"!==s;hw.then(function(){var l;u&&!o.control.disabled?o.control.disable():!u&&o.control.disabled&&o.control.enable(),null===(l=o._changeDetectorRef)||void 0===l||l.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function Cc(e,r){return[].concat(E(r.path),[e])}(a,this._parent):[a]}}]),n}(Ii);return e.\u0275fac=function(t){return new(t||e)(B(tr,9),B(Vn,10),B(na,10),B(Ir,10),B(gr,8))},e.\u0275dir=Ee({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:[At([q2]),Re,Wn]}),e}(),mu=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),pw=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),Z2={provide:tr,useExisting:Tt(function(){return Ac})},Ac=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this)).validators=i,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new Dt,o._setValidators(i),o._setAsyncValidators(a),o}return f(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(wc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(a){var o=this.form.get(a.path);return hu(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){Ec(a.control||null,a),jv(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,rw(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,u=a.form.get(o.path);s!==u&&(Ec(s||null,o),ow(u)&&(hu(u,o),o.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);nw(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function V2(e,r){return wc(e,r)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Vv(this.form,this),this._oldForm&&wc(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(tr);return e.\u0275fac=function(t){return new(t||e)(B(Vn,10),B(na,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&Ge("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[At([Z2]),Re,Wn]}),e}();function uV(e){return null!=e&&!1!==e&&"false"!=="".concat(e)}var Ta=function(){var e=function(){function r(){d(this,r),this._validator=yc}return f(r,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):yc,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,features:[Wn]}),e}(),dV={provide:Vn,useExisting:Tt(function(){return Wo}),multi:!0},Wo=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputName="required",i.normalizeInput=function(a){return uV(a)},i.createValidator=function(a){return Fk},i}return f(n,[{key:"enabled",value:function(a){return a}}]),n}(Ta);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Kt("required",n._enabled?"":null)},inputs:{required:"required"},features:[At([dV]),Re]}),e}(),mV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[pw]]}),e}(),yV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[mV]}),e}();function Je(){for(var e=arguments.length,r=new Array(e),t=0;t0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(a,i),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return f(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{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(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){n.headers.set(i,t.headers.get(i)),n.normalizedNames.set(i,t.normalizedNames.get(i))})}},{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(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,E(i)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(u){return-1===o.indexOf(u)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(n.normalizedNames.get(i),n.headers.get(i))})}}]),e}(),_V=function(){function e(){d(this,e)}return f(e,[{key:"encodeKey",value:function(t){return Fw(t)}},{key:"encodeValue",value:function(t){return Fw(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function bV(e,r){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=K(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),u=s[0],l=s[1],c=t.get(u)||[];c.push(l),t.set(u,c)}),t}var CV=/%(\d[a-f0-9])/gi,EV={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fw(e){return encodeURIComponent(e).replace(CV,function(r,t){var n;return null!==(n=EV[t])&&void 0!==n?n:r})}function Pw(e){return"".concat(e)}var Ko=function(){function e(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(d(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _V,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bV(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var i=t.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return f(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(i){var a=t[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var i=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return i+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).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 t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?t.map.get(n.param):void 0)||[];i.push(Pw(n.value)),t.map.set(n.param,i);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(Pw(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),kV=function(){function e(){d(this,e),this.map=new Map}return f(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Lw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Nw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Vw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Jv=function(){function e(r,t,n,i){var a;if(d(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function wV(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new yu),this.context||(this.context=new kV),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,u=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,h=t.params||this.params,v=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(_,O){return _.set(O,t.setHeaders[O])},c)),t.setParams&&(h=Object.keys(t.setParams).reduce(function(_,O){return _.set(O,t.setParams[O])},h)),new e(i,a,s,{params:h,headers:c,context:v,reportProgress:l,responseType:o,withCredentials:u})}}]),e}(),kn=function(){return(kn=kn||{})[kn.Sent=0]="Sent",kn[kn.UploadProgress=1]="UploadProgress",kn[kn.ResponseHeader=2]="ResponseHeader",kn[kn.DownloadProgress=3]="DownloadProgress",kn[kn.Response=4]="Response",kn[kn.User=5]="User",kn}(),ep=f(function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";d(this,e),this.headers=r.headers||new yu,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),DV=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=kn.ResponseHeader,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Bw=function(e){p(t,e);var r=y(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,t),(n=r.call(this,i)).type=kn.Response,n.body=void 0!==i.body?i.body:null,n}return f(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ep),Hw=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),i.error=n.error||null,i}return f(t)}(ep);function tp(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Ra=function(){var e=function(){function r(t){d(this,r),this.handler=t}return f(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Jv)s=n;else{var u=void 0;u=o.headers instanceof yu?o.headers:new yu(o.headers);var l=void 0;o.params&&(l=o.params instanceof Ko?o.params:new Ko({fromObject:o.params})),s=new Jv(n,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=Je(s).pipe(qo(function(v){return a.handler.handle(v)}));if(n instanceof Jv||"events"===o.observe)return c;var h=c.pipe(fn(function(v){return v instanceof Bw}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return v.body}));case"blob":return h.pipe(Xe(function(v){if(null!==v.body&&!(v.body instanceof Blob))throw new Error("Response is not a Blob.");return v.body}));case"text":return h.pipe(Xe(function(v){if(null!==v.body&&"string"!=typeof v.body)throw new Error("Response is not a string.");return v.body}));default:return h.pipe(Xe(function(v){return v.body}))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new Ko).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,tp(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,tp(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,tp(a,i))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ow))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),jw=function(){function e(r,t){d(this,e),this.next=r,this.interceptor=t}return f(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),Uw=new Ne("HTTP_INTERCEPTORS"),AV=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"intercept",value:function(n,i){return i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),xV=/^\)\]\}',?\n/,Gw=function(){var e=function(){function r(t){d(this,r),this.xhrFactory=t}return f(r,[{key:"handle",value:function(n){var i=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ct(function(a){var o=i.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach(function(ue,ee){return o.setRequestHeader(ue,ee.join(","))}),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var s=n.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(n.responseType){var u=n.responseType.toLowerCase();o.responseType="json"!==u?u:"text"}var l=n.serializeBody(),c=null,h=function(){if(null!==c)return c;var ee=o.statusText||"OK",ye=new yu(o.getAllResponseHeaders()),_e=function MV(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return c=new DV({headers:ye,status:o.status,statusText:ee,url:_e})},v=function(){var ee=h(),ye=ee.headers,_e=ee.status,Te=ee.statusText,Ie=ee.url,We=null;204!==_e&&(We=void 0===o.response?o.responseText:o.response),0===_e&&(_e=We?200:0);var bt=_e>=200&&_e<300;if("json"===n.responseType&&"string"==typeof We){var on=We;We=We.replace(xV,"");try{We=""!==We?JSON.parse(We):null}catch(Jt){We=on,bt&&(bt=!1,We={error:Jt,text:We})}}bt?(a.next(new Bw({body:We,headers:ye,status:_e,statusText:Te,url:Ie||void 0})),a.complete()):a.error(new Hw({error:We,headers:ye,status:_e,statusText:Te,url:Ie||void 0}))},_=function(ee){var ye=h(),Te=new Hw({error:ee,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ye.url||void 0});a.error(Te)},O=!1,J=function(ee){O||(a.next(h()),O=!0);var ye={type:kn.DownloadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),"text"===n.responseType&&!!o.responseText&&(ye.partialText=o.responseText),a.next(ye)},te=function(ee){var ye={type:kn.UploadProgress,loaded:ee.loaded};ee.lengthComputable&&(ye.total=ee.total),a.next(ye)};return o.addEventListener("load",v),o.addEventListener("error",_),o.addEventListener("timeout",_),o.addEventListener("abort",_),n.reportProgress&&(o.addEventListener("progress",J),null!==l&&o.upload&&o.upload.addEventListener("progress",te)),o.send(l),a.next({type:kn.Sent}),function(){o.removeEventListener("error",_),o.removeEventListener("abort",_),o.removeEventListener("load",v),o.removeEventListener("timeout",_),n.reportProgress&&(o.removeEventListener("progress",J),null!==l&&o.upload&&o.upload.removeEventListener("progress",te)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Av))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),np=new Ne("XSRF_COOKIE_NAME"),rp=new Ne("XSRF_HEADER_NAME"),zw=f(function e(){d(this,e)}),TV=function(){var e=function(){function r(t,n,i){d(this,r),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return f(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ik(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ot),le(pr),le(np))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),ip=function(){var e=function(){function r(t,n){d(this,r),this.tokenService=t,this.headerName=n}return f(r,[{key:"intercept",value:function(n,i){var a=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||a.startsWith("http://")||a.startsWith("https://"))return i.handle(n);var o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),i.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(zw),le(rp))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),RV=function(){var e=function(){function r(t,n){d(this,r),this.backend=t,this.injector=n,this.chain=null}return f(r,[{key:"handle",value:function(n){if(null===this.chain){var i=this.injector.get(Uw,[]);this.chain=i.reduceRight(function(a,o){return new jw(a,o)},this.backend)}return this.chain.handle(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Iw),le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),OV=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:ip,useClass:AV}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[n.cookieName?{provide:np,useValue:n.cookieName}:[],n.headerName?{provide:rp,useValue:n.headerName}:[]]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[ip,{provide:Uw,useExisting:ip,multi:!0},{provide:zw,useClass:TV},{provide:np,useValue:"XSRF-TOKEN"},{provide:rp,useValue:"X-XSRF-TOKEN"}]}),e}(),IV=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[Ra,{provide:Ow,useClass:RV},Gw,{provide:Iw,useExisting:Gw}],imports:[[OV.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Ww=f(function e(){d(this,e)}),FV=f(function e(){d(this,e)}),Fi="*";function _u(e,r){return{type:7,name:e,definitions:r,options:{}}}function Pi(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:e}}function qw(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:r}}function Ln(e){return{type:6,styles:e,offset:null}}function Oa(e,r,t){return{type:0,name:e,styles:r,options:t}}function ia(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:r,options:t}}function ap(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:r,options:t}}function Kw(e){Promise.resolve(null).then(e)}var bu=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return f(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Kw(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Qw=function(){function e(r){var t=this;d(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=r;var n=0,i=0,a=0,o=this.players.length;0==o?Kw(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++i==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,u){return Math.max(s,u.totalTime)},0)}return f(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),Et=!1;function Yw(e){return new Ue(3e3,Et)}function nB(e){return new Ue(3502,Et)}function iB(){return new Ue(3300,Et)}function aB(e){return new Ue(3504,Et)}function hB(){return"undefined"!=typeof window&&void 0!==window.document}function sp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function aa(e){switch(e.length){case 0:return new bu;case 1:return e[0];default:return new Qw(e)}}function $w(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,l=null;if(n.forEach(function(c){var h=c.offset,v=h==u,_=v&&l||{};Object.keys(c).forEach(function(O){var J=O,te=c[O];if("offset"!==O)switch(J=r.normalizePropertyName(J,o),te){case"!":te=i[O];break;case Fi:te=a[O];break;default:te=r.normalizeStyleValue(O,J,te,o)}_[J]=te}),v||s.push(_),l=_,u=h}),o.length)throw nB();return s}function up(e,r,t,n){switch(r){case"start":e.onStart(function(){return n(t&&lp(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&lp(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&lp(t,"destroy",e))})}}function lp(e,r,t){var n=t.totalTime,a=cp(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function cp(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:r,fromState:t,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function mr(e,r,t){var n;return e instanceof Map?(n=e.get(r))||e.set(r,n=t):(n=e[r])||(n=e[r]=t),n}function Xw(e){var r=e.indexOf(":");return[e.substring(1,r),e.substr(r+1)]}var dp=function(r,t){return!1},Zw=function(r,t,n){return[]},Jw=null;function fp(e){var r=e.parentNode||e.host;return r===Jw?null:r}(sp()||"undefined"!=typeof Element)&&(hB()?(Jw=function(){return document.documentElement}(),dp=function(r,t){for(;t;){if(t===r)return!0;t=fp(t)}return!1}):dp=function(r,t){return r.contains(t)},Zw=function(r,t,n){if(n)return Array.from(r.querySelectorAll(t));var i=r.querySelector(t);return i?[i]:[]});var Ia=null,eS=!1;function tS(e){Ia||(Ia=function gB(){return"undefined"!=typeof document?document.body:null}()||{},eS=!!Ia.style&&"WebkitAppearance"in Ia.style);var r=!0;return Ia.style&&!function pB(e){return"ebkit"==e.substring(1,6)}(e)&&!(r=e in Ia.style)&&eS&&(r="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ia.style),r}var nS=dp,rS=Zw,iS=function(){var e=function(){function r(){d(this,r)}return f(r,[{key:"validateStyleProperty",value:function(n){return tS(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return nS(n,i)}},{key:"getParentElement",value:function(n){return fp(n)}},{key:"query",value:function(n,i,a){return rS(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new bu(a,o)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),hp=function(){var e=f(function r(){d(this,r)});return e.NOOP=new iS,e}(),oS="ng-enter",vp="ng-leave",Mc="ng-trigger",Tc=".ng-trigger",sS="ng-animating",pp=".ng-animating";function Fa(e){if("number"==typeof e)return e;var r=e.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:gp(parseFloat(r[1]),r[2])}function gp(e,r){return"s"===r?1e3*e:e}function Rc(e,r,t){return e.hasOwnProperty("duration")?e:function _B(e,r,t){var i,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(Yw()),{duration:0,delay:0,easing:""};i=gp(parseFloat(s[1]),s[2]);var u=s[3];null!=u&&(a=gp(parseFloat(u),s[4]));var l=s[5];l&&(o=l)}else i=e;if(!t){var c=!1,h=r.length;i<0&&(r.push(function LV(){return new Ue(3100,Et)}()),c=!0),a<0&&(r.push(function NV(){return new Ue(3101,Et)}()),c=!0),c&&r.splice(h,0,Yw())}return{duration:i,delay:a,easing:o}}(e,r,t)}function Qo(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function oa(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in e)t[n]=e[n];else Qo(e,t);return t}function uS(e,r,t){return t?r+":"+t+";":""}function lS(e){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void r.push(n);e=n}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function JV(e){return new Ue(3015,Et)}()),r;var a=i[1],o=i[2],s=i[3];r.push(fS(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(fS(s,a))}(n,t,r)}):t.push(e),t}var Nc=new Set(["true","1"]),Vc=new Set(["false","0"]);function fS(e,r){var t=Nc.has(e)||Vc.has(e),n=Nc.has(r)||Vc.has(r);return function(i,a){var o="*"==e||e==i,s="*"==r||r==a;return!o&&t&&"boolean"==typeof i&&(o=i?Nc.has(e):Vc.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?Nc.has(r):Vc.has(r)),o&&s}}var TB=new RegExp("s*".concat(":self","s*,?"),"g");function vS(e,r,t,n){return new RB(e).build(r,t,n)}var RB=function(){function e(r){d(this,e),this._driver=r}return f(e,[{key:"build",value:function(t,n,i){var a=new FB(n);this._resetContextStyleTimingState(a);var o=yr(this,Cu(t),a);return a.unsupportedCSSPropertiesFound.size&&E(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],u=[];return"@"==t.name.charAt(0)&&n.errors.push(function UV(){return new Ue(3006,Et)}()),t.definitions.forEach(function(l){if(i._resetContextStyleTimingState(n),0==l.type){var c=l,h=c.name;h.toString().split(/\s*,\s*/).forEach(function(_){c.name=_,s.push(i.visitState(c,n))}),c.name=h}else if(1==l.type){var v=i.visitTransition(l,n);a+=v.queryCount,o+=v.depCount,u.push(v)}else n.errors.push(function GV(){return new Ue(3007,Et)}())}),{type:7,name:t.name,states:s,transitions:u,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var i=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};i.styles.forEach(function(l){if(Bc(l)){var c=l;Object.keys(c).forEach(function(h){cS(c[h]).forEach(function(v){s.hasOwnProperty(v)||o.add(v)})})}}),o.size&&(Ic(o.values()),n.errors.push(function zV(e,r){return new Ue(3008,Et)}()))}return{type:0,name:t.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var i=yr(this,Cu(t.animation),n);return{type:1,matchers:AB(t.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:La(t.options)}}},{key:"visitSequence",value:function(t,n){var i=this;return{type:2,steps:t.steps.map(function(a){return yr(i,a,n)}),options:La(t.options)}}},{key:"visitGroup",value:function(t,n){var i=this,a=n.currentTime,o=0,s=t.steps.map(function(u){n.currentTime=a;var l=yr(i,u,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:s,options:La(t.options)}}},{key:"visitAnimate",value:function(t,n){var i=function LB(e,r){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return _p(Rc(e,r).duration,0,"");var i=e,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=_p(0,0,"");return o.dynamic=!0,o.strValue=i,o}return _p((t=t||Rc(i,r)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var a,o=t.styles?t.styles:Ln({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,u=!1;if(!s){u=!0;var l={};i.easing&&(l.easing=i.easing),s=Ln(l)}n.currentTime+=i.duration+i.delay;var c=this.visitStyle(s,n);c.isEmptyStep=u,a=c}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var i=this._makeStyleAst(t,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(t,n){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Fi?i.push(s):n.errors.push(function WV(e){return new Ue(3002,Et)}()):i.push(s)}):i.push(t.styles);var a=!1,o=null;return i.forEach(function(s){if(Bc(s)){var u=s,l=u.easing;if(l&&(o=l,delete u.easing),!a)for(var c in u)if(u[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(u){"string"!=typeof u&&Object.keys(u).forEach(function(l){if(!i._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);var c=n.collectedStyles[n.currentQuerySelector],h=c[l],v=!0;h&&(s!=o&&s>=h.startTime&&o<=h.endTime&&(n.errors.push(function qV(e,r,t,n,i){return new Ue(3010,Et)}()),v=!1),s=h.startTime),v&&(c[l]={startTime:s,endTime:o}),n.options&&function bB(e,r,t){var n=r.params||{},i=cS(e);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||t.push(function VV(e){return new Ue(3001,Et)}())})}(u[l],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(t,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function KV(){return new Ue(3011,Et)}()),a;var s=0,u=[],l=!1,c=!1,h=0,v=t.steps.map(function(ye){var _e=i._makeStyleAst(ye,n),Te=null!=_e.offset?_e.offset:function PB(e){if("string"==typeof e)return null;var r=null;if(Array.isArray(e))e.forEach(function(n){if(Bc(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(Bc(e)&&e.hasOwnProperty("offset")){var t=e;r=parseFloat(t.offset),delete t.offset}return r}(_e.styles),Ie=0;return null!=Te&&(s++,Ie=_e.offset=Te),c=c||Ie<0||Ie>1,l=l||Ie0&&s<_?n.errors.push(function $V(){return new Ue(3202,Et)}()):0==s&&(O=1/(_-1));var J=_-1,te=n.currentTime,ue=n.currentAnimateTimings,ee=ue.duration;return v.forEach(function(ye,_e){var Te=O>0?_e==J?1:O*_e:u[_e],Ie=Te*ee;n.currentTime=te+ue.delay+Ie,ue.duration=Ie,i._validateStyleAst(ye,n),ye.offset=Te,a.styles.push(ye)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:yr(this,Cu(t.animation),n),options:La(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:La(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:La(t.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function OB(e){var r=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(e=e.replace(TB,"")),e=e.replace(/@\*/g,Tc).replace(/@\w+/g,function(t){return Tc+"-"+t.substr(1)}).replace(/:animating/g,pp),[e,r]}(t.selector),s=K(o,2),u=s[0],l=s[1];n.currentQuerySelector=i.length?i+" "+u:u,mr(n.collectedStyles,n.currentQuerySelector,{});var c=yr(this,Cu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:c,originalSelector:t.selector,options:La(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push(function XV(){return new Ue(3013,Et)}());var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Rc(t.timings,n.errors,!0);return{type:12,animation:yr(this,Cu(t.animation),n),timings:i,options:null}}}]),e}(),FB=f(function e(r){d(this,e),this.errors=r,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,this.unsupportedCSSPropertiesFound=new Set});function Bc(e){return!Array.isArray(e)&&"object"==typeof e}function La(e){return e?(e=Qo(e)).params&&(e.params=function IB(e){return e?Qo(e):null}(e.params)):e={},e}function _p(e,r,t){return{duration:e,delay:r,easing:t}}function bp(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Cp=function(){function e(){d(this,e),this._map=new Map}return f(e,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,n){var i,a=this._map.get(t);a||this._map.set(t,a=[]),(i=a).push.apply(i,E(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),BB=new RegExp(":enter","g"),jB=new RegExp(":leave","g");function gS(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new UB).buildKeyframes(e,r,t,n,i,a,o,s,u,l)}var UB=function(){function e(){d(this,e)}return f(e,[{key:"buildKeyframes",value:function(t,n,i,a,o,s,u,l,c){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new Cp;var v=new GB(t,n,c,a,o,h,[]);v.options=l,v.currentTimeline.setStyles([s],null,v.errors,l),yr(this,i,v);var _=v.timelines.filter(function(ue){return ue.containsAnimation()});if(Object.keys(u).length){for(var O,J=_.length-1;J>=0;J--){var te=_[J];if(te.element===n){O=te;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([u],null,v.errors,l)}return _.length?_.map(function(ue){return ue.buildKeyframes()}):[bp(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var i=n.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?Fa(i.duration):null,u=null!=i.delay?Fa(i.delay):null;return 0!==s&&t.forEach(function(l){var c=n.appendInstructionToTimeline(l,s,u);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),yr(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var i=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hc);var u=Fa(s.delay);o.delayNextStep(u)}t.steps.length&&(t.steps.forEach(function(l){return yr(i,l,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?Fa(t.options.delay):0;t.steps.forEach(function(u){var l=n.createSubContext(t.options);s&&l.delayNextStep(s),yr(i,u,l),o=Math.max(o,l.currentTimeline.currentTime),a.push(l.currentTimeline)}),a.forEach(function(u){return n.currentTimeline.mergeTimelineCollectedStyles(u)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var i=t.strValue;return Rc(n.params?Oc(i,n.params,n.errors):i,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var i=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,u=n.createSubContext().currentTimeline;u.easing=i.easing,t.styles.forEach(function(l){u.forwardTime((l.offset||0)*o),u.setStyles(l.styles,l.easing,n.errors,n.options),u.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(u),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var i=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?Fa(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hc);var u=a,l=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=l.length;var c=null;l.forEach(function(h,v){n.currentQueryIndex=v;var _=n.createSubContext(t.options,h);s&&_.delayNextStep(s),h===n.element&&(c=_.currentTimeline),yr(i,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,_.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var i=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),u=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=u-l;break;case"full":l=i.currentStaggerTime}var h=n.currentTimeline;l&&h.delayNextStep(l);var v=h.currentTime;yr(this,t.animation,n),n.previousNode=t,i.currentStaggerTime=a.currentTime-v+(a.startTime-i.currentTimeline.startTime)}}]),e}(),Hc={},GB=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new mS(this._driver,t,0),s.push(this.currentTimeline)}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var i=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=Fa(a.duration)),null!=a.delay&&(o.delay=Fa(a.delay));var s=a.params;if(s){var u=o.params;u||(u=this.options.params={}),Object.keys(s).forEach(function(l){(!n||!u.hasOwnProperty(l))&&(u[l]=Oc(s[l],u,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var i=t.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return t}},{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,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,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(t){return this.previousNode=Hc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,i){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new zB(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,i,a,o,s){var u=[];if(a&&u.push(this.element),t.length>0){t=(t=t.replace(BB,"."+this._enterClassName)).replace(jB,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),u.push.apply(u,E(c))}return!o&&0==u.length&&s.push(function ZV(e){return new Ue(3014,Et)}()),u}}]),e}(),mS=function(){function e(r,t,n,i){d(this,e),this._driver=r,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return f(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Fi,n._currentKeyframe[i]=Fi}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},u=function WB(e,r){var n,t={};return e.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){t[a]=Fi}):oa(i,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(u).forEach(function(l){var c=Oc(u[l],s,i);o._pendingStyles[l]=c,o._localTimelineStyles.hasOwnProperty(l)||(o._backFill[l]=o._globalTimelineStyles.hasOwnProperty(l)?o._globalTimelineStyles[l]:Fi),o._updateStyle(l,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=t._localTimelineStyles[n];t._pendingStyles[n]=i,t._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=t._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(h,v){var _=oa(h,!0);Object.keys(_).forEach(function(O){var J=_[O];"!"==J?n.add(O):J==Fi&&i.add(O)}),a||(_.offset=v/t.duration),o.push(_)});var s=n.size?Ic(n.values()):[],u=i.size?Ic(i.values()):[];if(a){var l=o[0],c=Qo(l);l.offset=0,c.offset=1,o=[l,c]}return bp(this.element,o,s,u,this.duration,this.startTime,this.easing,!1)}}]),e}(),zB=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s,u){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,t),(l=r.call(this,n,i,u.delay)).keyframes=a,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=c,l.timings={duration:u.duration,delay:u.delay,easing:u.easing},l}return f(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&o){var l=[],c=s+o,h=o/c,v=oa(i[0],!1);v.offset=0,l.push(v);var _=oa(i[0],!1);_.offset=yS(h),l.push(_);for(var O=i.length-1,J=1;J<=O;J++){var te=oa(i[J],!1);te.offset=yS((o+te.offset*s)/c),l.push(te)}s=c,o=0,u="",i=l}return bp(this.element,i,this.preStyleProps,this.postStyleProps,s,o,u,!0)}}]),t}(mS);function yS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(e*t)/t}var Ep=f(function e(){d(this,e)}),qB=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"normalizePropertyName",value:function(i,a){return yp(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var u="",l=o.toString().trim();if(KB[a]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function jV(e,r){return new Ue(3005,Et)}())}return l+u}}]),t}(Ep),KB=function(){return function QB(e){var r={};return e.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function _S(e,r,t,n,i,a,o,s,u,l,c,h,v){return{type:0,element:e,triggerName:r,isRemovalTransition:i,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:v}}var kp={},bS=function(){function e(r,t,n){d(this,e),this._triggerName=r,this.ast=t,this._stateStyles=n}return f(e,[{key:"match",value:function(t,n,i,a){return function YB(e,r,t,n,i){return e.some(function(a){return a(r,t,n,i)})}(this.ast.matchers,t,n,i,a)}},{key:"buildStyles",value:function(t,n,i){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(t,n,i,a,o,s,u,l,c,h){var v=[],_=this.ast.options&&this.ast.options.params||kp,J=this.buildStyles(i,u&&u.params||kp,v),te=l&&l.params||kp,ue=this.buildStyles(a,te,v),ee=new Set,ye=new Map,_e=new Map,Te="void"===a,Ie={params:Object.assign(Object.assign({},_),te)},We=h?[]:gS(t,n,this.ast.animation,o,s,J,ue,Ie,c,v),bt=0;if(We.forEach(function(Jt){bt=Math.max(Jt.duration+Jt.delay,bt)}),v.length)return _S(n,this._triggerName,i,a,Te,J,ue,[],[],ye,_e,bt,v);We.forEach(function(Jt){var Un=Jt.element,ni=mr(ye,Un,{});Jt.preStyleProps.forEach(function(br){return ni[br]=!0});var ji=mr(_e,Un,{});Jt.postStyleProps.forEach(function(br){return ji[br]=!0}),Un!==n&&ee.add(Un)});var on=Ic(ee.values());return _S(n,this._triggerName,i,a,Te,J,ue,We,on,ye,_e,bt)}}]),e}(),$B=function(){function e(r,t,n){d(this,e),this.styles=r,this.defaultParams=t,this.normalizer=n}return f(e,[{key:"buildStyles",value:function(t,n){var i=this,a={},o=Qo(this.defaultParams);return Object.keys(t).forEach(function(s){var u=t[s];null!=u&&(o[s]=u)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var u=s;Object.keys(u).forEach(function(l){var c=u[l];c.length>1&&(c=Oc(c,o,n));var h=i.normalizer.normalizePropertyName(l,n);c=i.normalizer.normalizeStyleValue(l,h,c,n),a[h]=c})}}),a}}]),e}(),ZB=function(){function e(r,t,n){var i=this;d(this,e),this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){i.states[a.name]=new $B(a.style,a.options&&a.options.params||{},n)}),CS(this.states,"true","1"),CS(this.states,"false","0"),t.transitions.forEach(function(a){i.transitionFactories.push(new bS(r,a,i.states))}),this.fallbackTransition=function JB(e,r,t){return new bS(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return f(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,i,a){return this.transitionFactories.find(function(s){return s.match(t,n,i,a)})||null}},{key:"matchStyles",value:function(t,n,i){return this.fallbackTransition.buildStyles(t,n,i)}}]),e}();function CS(e,r,t){e.hasOwnProperty(r)?e.hasOwnProperty(t)||(e[t]=e[r]):e.hasOwnProperty(t)&&(e[r]=e[t])}var e3=new Cp,t3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return f(e,[{key:"register",value:function(t,n){var i=[],o=vS(this._driver,n,i,[]);if(i.length)throw function rB(e){return new Ue(3503,Et)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,n,i){var a=t.element,o=$w(this._driver,this._normalizer,a,t.keyframes,n,i);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var u,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],l=new Map;if(s?(u=gS(this._driver,n,s,oS,vp,{},{},a,e3,o)).forEach(function(v){var _=mr(l,v.element,{});v.postStyleProps.forEach(function(O){return _[O]=null})}):(o.push(iB()),u=[]),o.length)throw aB();l.forEach(function(v,_){Object.keys(v).forEach(function(O){v[O]=i._driver.computeStyle(_,O,Fi)})});var c=u.map(function(v){var _=l.get(v.element);return i._buildPlayer(v,{},_)}),h=aa(c);return this._playersById[t]=h,h.onDestroy(function(){return i.destroy(t)}),this.players.push(h),h}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw function oB(e){return new Ue(3301,Et)}();return n}},{key:"listen",value:function(t,n,i,a){var o=cp(n,"","","");return up(this._getPlayer(t),i,o,a),function(){}}},{key:"command",value:function(t,n,i,a){if("register"!=i)if("create"!=i){var s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),ES="ng-animate-queued",wp="ng-animate-disabled",a3="ng-star-inserted",s3=[],kS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},u3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fr="__ng_removed",Sp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";d(this,e),this.namespaceId=t;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=f3(i),n){var a=Qo(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return f(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),e}(),Eu="void",Dp=new Sp(Eu),l3=function(){function e(r,t,n){d(this,e),this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Pr(t,this._hostClassName)}return f(e,[{key:"listen",value:function(t,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw function sB(e,r){return new Ue(3302,Et)}();if(null==i||0==i.length)throw function uB(e){return new Ue(3303,Et)}();if(!function h3(e){return"start"==e||"done"==e}(i))throw function lB(e,r){return new Ue(3400,Et)}();var s=mr(this._elementListeners,t,[]),u={name:n,phase:i,callback:a};s.push(u);var l=mr(this._engine.statesByElement,t,{});return l.hasOwnProperty(n)||(Pr(t,Mc),Pr(t,Mc+"-"+n),l[n]=Dp),function(){o._engine.afterFlush(function(){var c=s.indexOf(u);c>=0&&s.splice(c,1),o._triggers[n]||delete l[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw function cB(e){return new Ue(3401,Et)}();return n}},{key:"trigger",value:function(t,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),u=new Ap(this.id,n,t),l=this._engine.statesByElement.get(t);l||(Pr(t,Mc),Pr(t,Mc+"-"+n),this._engine.statesByElement.set(t,l={}));var c=l[n],h=new Sp(i,this.id),v=i&&i.hasOwnProperty("value");!v&&c&&h.absorbOptions(c.options),l[n]=h,c||(c=Dp);var _=h.value===Eu;if(_||c.value!==h.value){var ue=mr(this._engine.playersByElement,t,[]);ue.forEach(function(_e){_e.namespaceId==a.id&&_e.triggerName==n&&_e.queued&&_e.destroy()});var ee=s.matchTransition(c.value,h.value,t,h.params),ye=!1;if(!ee){if(!o)return;ee=s.fallbackTransition,ye=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:ee,fromState:c,toState:h,player:u,isFallbackTransition:ye}),ye||(Pr(t,ES),u.onStart(function(){Yo(t,ES)})),u.onDone(function(){var _e=a.players.indexOf(u);_e>=0&&a.players.splice(_e,1);var Te=a._engine.playersByElement.get(t);if(Te){var Ie=Te.indexOf(u);Ie>=0&&Te.splice(Ie,1)}}),this.players.push(u),ue.push(u),u}if(!g3(c.params,h.params)){var O=[],J=s.matchStyles(c.value,c.params,O),te=s.matchStyles(h.value,h.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(function(){Pa(t,J),pi(t,te)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(i,a){delete i[t]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var i=this,a=this._engine.driver.query(t,Tc,!0);a.forEach(function(o){if(!o[Fr]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(u){return u.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,i,a){var o=this,s=this._engine.statesByElement.get(t),u=new Map;if(s){var l=[];if(Object.keys(s).forEach(function(c){if(u.set(c,s[c].value),o._triggers[c]){var h=o.trigger(t,c,Eu,a);h&&l.push(h)}}),l.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,u),i&&aa(l).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,i=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(i&&a){var o=new Set;i.forEach(function(s){var u=s.name;if(!o.has(u)){o.add(u);var c=n._triggers[u].fallbackTransition,h=a[u]||Dp,v=new Sp(Eu),_=new Ap(n.id,u,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:u,transition:c,fromState:h,toState:v,player:_,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var i=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var u=t;u=u.parentNode;)if(a.statesByElement.get(u)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var c=t[Fr];(!c||c===kS)&&(a.afterFlush(function(){return i.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Pr(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,u=n._elementListeners.get(s);u&&u.forEach(function(l){if(l.name==a.triggerName){var c=cp(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,up(a.player,l.phase,c,l.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,u=o.transition.ast.depCount;return 0==s||0==u?s-u:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(i){return i.element===t})||n}}]),e}(),c3=function(){function e(r,t,n){d(this,e),this.bodyNode=r,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(i,a){}}return f(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&t.push(i)})}),t}},{key:"createNamespace",value:function(t,n){var i=new l3(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,n){var i=this._namespaceList,a=this.namespacesByHostElement,o=i.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var u=this.driver.getParentElement(n);u;){var l=a.get(u);if(l){var c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}u=this.driver.getParentElement(u)}else for(var h=o;h>=0;h--)if(this.driver.containsElement(i[h].hostElement,n)){i.splice(h+1,0,t),s=!0;break}s||i.unshift(t)}else i.push(t);return a.set(n,t),t}},{key:"register",value:function(t,n){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,n)),i}},{key:"registerTrigger",value:function(t,n,i){var a=this._namespaceLookup[t];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var i=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[t];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,i=this.statesByElement.get(t);if(i)for(var a=Object.keys(i),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var u=this._fetchNamespace(t);u&&u.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pr(t,wp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yo(t,wp))}},{key:"removeNode",value:function(t,n,i,a){if(jc(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,i,a,o){this.collectedLeaveElements.push(n),n[Fr]={namespaceId:t,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,n,i,a,o){return jc(n)?this._fetchNamespace(t).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,i,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,i=this.driver.query(t,Tc,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,pp,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return aa(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var i,n=this,a=t[Fr];if(a&&a.setForRemoval){if(t[Fr]=kS,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(i=t.classList)||void 0===i?void 0:i.contains(wp))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(v,_){return t._balanceNamespaceList(v,_)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;ni--)this._namespaceList[ni].drainQueuedTransitions(n).forEach(function(je){var rt=je.player,ut=je.element;if(Jt.push(rt),i.collectedEnterElements.length){var pn=ut[Fr];if(pn&&pn.setForMove){if(pn.previousTriggersValues&&pn.previousTriggersValues.has(je.triggerName)){var fs=pn.previousTriggersValues.get(je.triggerName),da=i.statesByElement.get(je.element);da&&da[je.triggerName]&&(da[je.triggerName].value=fs)}return void rt.destroy()}}var Xu=!_||!i.driver.containsElement(_,ut),Od=bt.get(ut),Xg=te.get(ut),Nn=i._buildInstruction(je,a,Xg,Od,Xu);if(Nn.errors&&Nn.errors.length)Un.push(Nn);else{if(Xu)return rt.onStart(function(){return Pa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);if(je.isFallbackTransition)return rt.onStart(function(){return Pa(ut,Nn.fromStyles)}),rt.onDestroy(function(){return pi(ut,Nn.toStyles)}),void o.push(rt);var Id=[];Nn.timelines.forEach(function(Gi){Gi.stretchStartingKeyframe=!0,i.disabledNodes.has(Gi.element)||Id.push(Gi)}),Nn.timelines=Id,a.append(ut,Nn.timelines),u.push({instruction:Nn,player:rt,element:ut}),Nn.queriedElements.forEach(function(Gi){return mr(l,Gi,[]).push(rt)}),Nn.preStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi);if(Fd.length){var Ka=c.get(Zu);Ka||c.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})}}),Nn.postStyleProps.forEach(function(Gi,Zu){var Fd=Object.keys(Gi),Ka=h.get(Zu);Ka||h.set(Zu,Ka=new Set),Fd.forEach(function(Zg){return Ka.add(Zg)})})}});if(Un.length){var br=[];Un.forEach(function(je){br.push(function fB(e,r){return new Ue(3505,Et)}())}),Jt.forEach(function(je){return je.destroy()}),this.reportError(br)}var Ui=new Map,ca=new Map;u.forEach(function(je){var rt=je.element;a.has(rt)&&(ca.set(rt,rt),i._beforeAnimationBuild(je.player.namespaceId,je.instruction,Ui))}),o.forEach(function(je){var rt=je.element;i._getPreviousPlayers(rt,!1,je.namespaceId,je.triggerName,null).forEach(function(pn){mr(Ui,rt,[]).push(pn),pn.destroy()})});var nx=ee.filter(function(je){return xS(je,c,h)}),Rd=new Map;SS(Rd,this.driver,_e,h,Fi).forEach(function(je){xS(je,c,h)&&nx.push(je)});var Wg=new Map;J.forEach(function(je,rt){SS(Wg,i.driver,new Set(je),c,"!")}),nx.forEach(function(je){var rt=Rd.get(je),ut=Wg.get(je);Rd.set(je,Object.assign(Object.assign({},rt),ut))});var qg=[],rx=[],ix={};u.forEach(function(je){var rt=je.element,ut=je.player,pn=je.instruction;if(a.has(rt)){if(v.has(rt))return ut.onDestroy(function(){return pi(rt,pn.toStyles)}),ut.disabled=!0,ut.overrideTotalTime(pn.totalTime),void o.push(ut);var fs=ix;if(ca.size>1){for(var da=rt,Xu=[];da=da.parentNode;){var Od=ca.get(da);if(Od){fs=Od;break}Xu.push(da)}Xu.forEach(function(Id){return ca.set(Id,fs)})}var Xg=i._buildAnimation(ut.namespaceId,pn,Ui,s,Wg,Rd);if(ut.setRealPlayer(Xg),fs===ix)qg.push(ut);else{var Nn=i.playersByElement.get(fs);Nn&&Nn.length&&(ut.parentPlayer=aa(Nn)),o.push(ut)}}else Pa(rt,pn.fromStyles),ut.onDestroy(function(){return pi(rt,pn.toStyles)}),rx.push(ut),v.has(rt)&&o.push(ut)}),rx.forEach(function(je){var rt=s.get(je.element);if(rt&&rt.length){var ut=aa(rt);je.setRealPlayer(ut)}}),o.forEach(function(je){je.parentPlayer?je.syncPlayerEvents(je.parentPlayer):je.destroy()});for(var Kg=0;Kg0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,i):new bu(t.duration,t.delay)}}]),e}(),Ap=function(){function e(r,t,n){d(this,e),this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new bu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return f(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return up(t,i,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){mr(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function f3(e){return null!=e?e:null}function jc(e){return e&&1===e.nodeType}function wS(e,r){var t=e.style.display;return e.style.display=null!=r?r:"none",t}function SS(e,r,t,n,i){var a=[];t.forEach(function(u){return a.push(wS(u))});var o=[];n.forEach(function(u,l){var c={};u.forEach(function(h){var v=c[h]=r.computeStyle(l,h,i);(!v||0==v.length)&&(l[Fr]=u3,o.push(l))}),e.set(l,c)});var s=0;return t.forEach(function(u){return wS(u,a[s++])}),o}function DS(e,r){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var u=a.get(s);if(u)return u;var l=s.parentNode;return u=t.has(l)?l:i.has(l)?1:o(l),a.set(s,u),u}return r.forEach(function(s){var u=o(s);1!==u&&t.get(u).push(s)}),t}function Pr(e,r){var t;null===(t=e.classList)||void 0===t||t.add(r)}function Yo(e,r){var t;null===(t=e.classList)||void 0===t||t.remove(r)}function v3(e,r,t){aa(t).onDone(function(){return e.processLeaveNode(r)})}function AS(e,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function m3(e,r){var t=null,n=null;return Array.isArray(r)&&r.length?(t=xp(r[0]),r.length>1&&(n=xp(r[r.length-1]))):r&&(t=xp(r)),t||n?new y3(e,t,n):null}var y3=function(){var e=function(){function r(t,n,i){d(this,r),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return f(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pi(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pi(this._element,this._initialStyles),this._endStyles&&(pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Pa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pa(this._element,this._endStyles),this._endStyles=null),pi(this._element,this._initialStyles),this._state=3)}}]),r}();return e.initialStylesByElement=new WeakMap,e}();function xp(e){for(var r=null,t=Object.keys(e),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",l={duration:i,delay:a,fill:u};o&&(l.easing=o);var c={},h=s.filter(function(_){return _ instanceof MS});kB(i,a)&&h.forEach(function(_){var O=_.currentSnapshot;Object.keys(O).forEach(function(J){return c[J]=O[J]})});var v=m3(t,n=wB(t,n=n.map(function(_){return oa(_,!1)}),c));return new MS(t,n,l,v)}}]),e}(),C3=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Br.None,styles:[],data:{animation:[]}}),o}return f(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?qw(a):a;return TS(this._renderer,null,o,"register",[s]),new E3(o,this._renderer)}}]),n}(Ww);return e.\u0275fac=function(t){return new(t||e)(le(Js),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),E3=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this))._id=n,a._renderer=i,a}return f(t,[{key:"create",value:function(i,a){return new k3(this._id,i,a||{},this._renderer)}}]),t}(FV),k3=function(){function e(r,t,n,i){d(this,e),this.id=r,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return f(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,i),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,i,a){this.delegate.setAttribute(t,n,i,a)}},{key:"removeAttribute",value:function(t,n,i){this.delegate.removeAttribute(t,n,i)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,i,a){this.delegate.setStyle(t,n,i,a)}},{key:"removeStyle",value:function(t,n,i){this.delegate.removeStyle(t,n,i)}},{key:"setProperty",value:function(t,n,i){"@"==n.charAt(0)&&n==RS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,n,i)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,i){return this.delegate.listen(t,n,i)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),S3=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return f(t,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==RS?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var u=function D3(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i),l=a.substr(1),c="";if("@"!=l.charAt(0)){var h=function A3(e){var r=e.indexOf(".");return[e.substring(0,r),e.substr(r+1)]}(l),v=K(h,2);l=v[0],c=v[1]}return this.engine.listen(this.namespaceId,u,l,c,function(_){s.factory.scheduleListenerCallback(_._data||-1,o,_)})}return this.delegate.listen(i,a,o)}}]),t}(OS),x3=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){return d(this,n),t.call(this,i.body,a,o)}return f(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Uc);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(hp),le(Ep))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),gi=new Ne("AnimationModuleType"),IS=[{provide:Ww,useClass:C3},{provide:Ep,useFactory:function M3(){return new qB}},{provide:Uc,useClass:x3},{provide:Js,useFactory:function T3(e,r,t){return new w3(e,r,t)},deps:[gc,Uc,st]}],FS=[{provide:hp,useFactory:function(){return new b3}},{provide:gi,useValue:"BrowserAnimations"}].concat(IS),R3=[{provide:hp,useClass:iS},{provide:gi,useValue:"NoopAnimations"}].concat(IS),O3=function(){var e=function(){function r(){d(this,r)}return f(r,null,[{key:"withConfig",value:function(n){return{ngModule:r,providers:n.disableAnimations?R3:FS}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:FS,imports:[Ek]}),e}(),_r=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this))._value=n,i}return f(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=M(k(t.prototype),"_subscribe",this).call(this,i);return!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(i){M(k(t.prototype),"next",this).call(this,this._value=i)}}]),t}(Pe);function PS(e){for(var r in e){var t=e[r]||"";switch(r){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;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-"+r]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+r]=isNaN(+t)?"0":t}}return e}var Mp="inline",zc=["row","column","row-reverse","column-reverse"];function LS(e){var t=K(NS(e),3);return function F3(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[0],t[1],t[2])}function NS(e){var r,n=K((e=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"").split(" "),3),i=n[0],a=n[1],o=n[2];return zc.find(function(s){return s===i})||(i=zc[0]),a===Mp&&(a=o!==Mp?o:"",o=Mp),[i,I3(a),!!o]}function ku(e){return K(NS(e),1)[0].indexOf("row")>-1}function I3(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}function Li(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;d(this,e),this.matches=r,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=a,this.property=""}return f(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),N3=function(){var e=function(){function r(){d(this,r),this.stylesheet=new Map}return f(r,[{key:"addStyleToElement",value:function(n,i,a){var o=this.stylesheet.get(n);o?o.set(i,a):this.stylesheet.set(n,new Map([[i,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,i){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ti=new Ne("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Rp}}),$o=new Ne("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Op=new Ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function BS(e,r){return e=e?e.clone():new wu,r&&(e.mqAlias=r.alias,e.mediaQuery=r.mediaQuery,e.suffix=r.suffix,e.priority=r.priority),e}var hn=function(){function e(){d(this,e),this.shouldCache=!0}return f(e,[{key:"sideEffect",value:function(t,n,i){}}]),e}(),Qt=function(){var e=function(){function r(t,n,i,a){d(this,r),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=a}return f(r,[{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof i&&(o[i]=a,i=o),o=this.layoutConfig.disableVendorPrefixes?i:PS(i),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:PS(n);a.forEach(function(s){i._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var i="flex-direction",a=this.lookupStyle(n,i);return[a||"row",this.lookupInlineStyle(n,i)||jo(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,i){var a;return null!==(a=n.getAttribute(i))&&void 0!==a?a:""}},{key:"lookupInlineStyle",value:function(n,i){return xa(this._platformId)?n.style.getPropertyValue(i):function V3(e,r){var t;return null!==(t=HS(e)[r])&&void 0!==t?t:""}(n,i)}},{key:"lookupStyle",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,i);s||(xa(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,i)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,i){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],u=Array.isArray(s)?s:[s];u.sort();var c,l=Y(u);try{for(l.s();!(c=l.n()).done;){var h=c.value;h=h?h+"":"",xa(a._platformId)||!a._serverModuleLoaded?xa(a._platformId)?i.style.setProperty(o,h):B3(i,o,h):a._serverStylesheet.addStyleToElement(i,o,h)}}catch(v){l.e(v)}finally{l.f()}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(N3),le($o),le(pr),le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function B3(e,r,t){r=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var n=HS(e);n[r]=null!=t?t:"",function H3(e,r){var t="";for(var n in r)r[n]&&(t+="".concat(n,":").concat(r[n],";"));e.setAttribute("style",t)}(e,n)}function HS(e){var r={},t=e.getAttribute("style");if(t)for(var n=t.split(/;+/g),i=0;i0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));r[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return r}function Su(e,r){return(r&&r.priority||0)-(e&&e.priority||0)}function j3(e,r){return(e.priority||0)-(r.priority||0)}var Ip=function(){var e=function(){function r(t,n,i){d(this,r),this._zone=t,this._platformId=n,this._document=i,this.source=new _r(new wu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return f(r,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(i,a){i.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var i,a=this.registry.get(n);return null!==(i=null==a?void 0:a.matches)&&void 0!==i?i:this.registerQuery(n).some(function(o){return o.matches})}},{key:"observe",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(fn(function(u){return!a||n.indexOf(u.mediaQuery)>-1})),s=new ct(function(u){var l=i.registerQuery(n);if(l.length){var c=l.pop();l.forEach(function(h){u.next(h)}),i.source.next(c)}u.complete()});return Qa(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var i=this,a=Array.isArray(n)?n:[n],o=[];return function U3(e,r){var t=e.filter(function(o){return!jS[o]});if(t.length>0){var n=t.join(", ");try{var i=r.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var a="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");i.appendChild(r.createTextNode(a))}r.head.appendChild(i),t.forEach(function(o){return jS[o]=i})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var u=function(h){i._zone.run(function(){return i.source.next(new wu(h.matches,s))})},l=i.registry.get(s);l||((l=i.buildMQL(s)).addListener(u),i.pendingRemoveListenerFns.push(function(){return l.removeListener(u)}),i.registry.set(s,l)),l.matches&&o.push(new wu(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function G3(e,r){return r&&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}}}(n,xa(this._platformId))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(pr),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),jS={},z3=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],US="(orientation: portrait) and (max-width: 599.98px)",GS="(orientation: landscape) and (max-width: 959.98px)",zS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",qS="(orientation: portrait) and (min-width: 840px)",KS="(orientation: landscape) and (min-width: 1280px)",Ni={HANDSET:"".concat(US,", ").concat(GS),TABLET:"".concat(zS," , ").concat(WS),WEB:"".concat(qS,", ").concat(KS," "),HANDSET_PORTRAIT:"".concat(US),TABLET_PORTRAIT:"".concat(zS," "),WEB_PORTRAIT:"".concat(qS),HANDSET_LANDSCAPE:"".concat(GS),TABLET_LANDSCAPE:"".concat(WS),WEB_LANDSCAPE:"".concat(KS)},W3=[{alias:"handset",priority:2e3,mediaQuery:Ni.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ni.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ni.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ni.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ni.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ni.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ni.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ni.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ni.WEB_PORTRAIT,overlapping:!0}],q3=/(\.|-|_)/g;function K3(e){var r=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return r.toUpperCase()+t}function Y3(e){return e.forEach(function(r){r.suffix||(r.suffix=function Q3(e){return e.replace(q3,"|").split("|").map(K3).join("")}(r.alias),r.overlapping=!!r.overlapping)}),e}var X3=new Ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var r=co(Op),t=co(ti),n=[].concat.apply([],(r||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function $3(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),r.forEach(function(n){t[n.alias]?Li(t[n.alias],n):t[n.alias]=n}),Y3(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:z3).concat(t.addOrientationBps?W3:[]),n)}}),Fp=function(){var e=function(){function r(t){d(this,r),this.findByMap=new Map,this.items=E(t).sort(j3)}return f(r,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(i){return i.alias===n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(i){return i.mediaQuery===n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){var i;return null!==(i=null==n?void 0:n.suffix)&&void 0!==i?i:""})}},{key:"findWithPredicate",value:function(n,i){var a,o=this.findByMap.get(n);return o||(o=null!==(a=this.items.find(i))&&void 0!==a?a:null,this.findByMap.set(n,o)),null!=o?o:null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(X3))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Xo="print",Z3={alias:Xo,mediaQuery:Xo,priority:1e3},J3=function(){var e=function(){function r(t,n,i){d(this,r),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new eH,this.deactivations=[]}return f(r,[{key:"withPrintQuery",value:function(n){return[].concat(E(n),[Xo])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(Xo)}},{key:"printAlias",get:function(){var n;return E(null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[])}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(i){return n.breakpoints.findByAlias(i)}).filter(function(i){return null!==i})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(E(this.printBreakPoints),[a]):this.printBreakPoints).sort(Su)}},{key:"updateEvent",value:function(n){var i,a=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(a=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(i=null==a?void 0:a.mediaQuery)&&void 0!==i?i:""),BS(n,a)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var i=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){i.isPrinting||(i.isPrintingBeforeAfterEvent=!0,i.startPrinting(n,i.getEventBreakpoints(new wu(!0,Xo))),n.updateStyles())},o=function(){i.isPrintingBeforeAfterEvent=!1,i.isPrinting&&(i.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var i=this;return function(a){i.isPrintEvent(a)?a.matches&&!i.isPrinting?(i.startPrinting(n,i.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&i.isPrinting&&!i.isPrintingBeforeAfterEvent&&(i.stopPrinting(n),n.updateStyles()):i.collectActivations(n,a)}}},{key:"blockPropagation",value:function(){var n=this;return function(i){return!(n.isPrinting||n.isPrintEvent(i))}}},{key:"startPrinting",value:function(n,i){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){var a=this.breakpoints.findByQuery(i.mediaQuery);if(a){var o=this.formerActivations&&this.formerActivations.includes(a),s=!this.formerActivations&&n.activatedBreakpoints.includes(a);(o||s)&&(this.deactivations.push(a),this.deactivations.sort(Su))}}}}},{key:"ngOnDestroy",value:function(){var n=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("beforeprint",i)}),this.afterPrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("afterprint",i)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Fp),le(ti),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),eH=function(){function e(){d(this,e),this.printBreakpoints=[]}return f(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(Z3),t.sort(Su),t.forEach(function(i){return n.addBreakpoint(i)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(i){return i.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function tH(e){var r;return null!==(r=null==e?void 0:e.mediaQuery.startsWith(Xo))&&void 0!==r&&r}(t)?[t].concat(E(this.printBreakpoints)):[].concat(E(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}(),Zt=function(){var e=function(){function r(t,n,i){d(this,r),this.matchMedia=t,this.breakpoints=n,this.hook=i,this._useFallbacks=!0,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 Pe,this.observeActivations()}return f(r,[{key:"activatedAlias",get:function(){var n,i;return null!==(i=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==i?i:""}},{key:"activatedBreakpoints",get:function(){return E(this._activatedBreakpoints)},set:function(n){this._activatedBreakpoints=E(n)}},{key:"useFallbacks",set:function(n){this._useFallbacks=n}},{key:"onMediaChange",value:function(n){var i=this.findByQuery(n.mediaQuery);if(i){n=BS(n,i);var a=this.activatedBreakpoints.indexOf(i);n.matches&&-1===a?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Su),this.updateStyles()):!n.matches&&-1!==a&&(this._activatedBreakpoints.splice(a,1),this._activatedBreakpoints.sort(Su),this.updateStyles())}}},{key:"init",value:function(n,i,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];QS(this.updateMap,n,i,a),QS(this.clearMap,n,i,o),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,s)}},{key:"getValue",value:function(n,i,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,i);if(s)return s.get(i)}}},{key:"hasValue",value:function(n,i){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,i);if(o)return void 0!==o.get(i)||!1}return!1}},{key:"setValue",value:function(n,i,a,o){var s,u=this.elementMap.get(n);if(u){var l=(null!==(s=u.get(o))&&void 0!==s?s:new Map).set(i,a);u.set(o,l),this.elementMap.set(n,u)}else u=(new Map).set(o,(new Map).set(i,a)),this.elementMap.set(n,u);var c=this.getValue(n,i);void 0!==c&&this.updateElement(n,i,c)}},{key:"trackValue",value:function(n,i){return this.subject.asObservable().pipe(fn(function(a){return a.element===n&&a.key===i}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(i,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(i);s&&s.forEach(function(u,l){n.updateElement(a,l,u),o.delete(l)}),o.forEach(function(u){if(s=n.getActivatedValues(i,u)){var l=s.get(u);n.updateElement(a,u,l)}else n.clearElement(a,u)})})}},{key:"clearElement",value:function(n,i){var a=this.clearMap.get(n);if(a){var o=a.get(i);o&&(o(),this.subject.next({element:n,key:i,value:""}))}}},{key:"updateElement",value:function(n,i,a){var o=this.updateMap.get(n);if(o){var s=o.get(i);s&&(s(a),this.subject.next({element:n,key:i,value:a}))}}},{key:"releaseElement",value:function(n){var i=this.watcherMap.get(n);i&&(i.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,i){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach(function(u,l){return a.updateElement(n,l,u)}))}}},{key:"buildElementKeyMap",value:function(n,i){var a=this.elementKeyMap.get(n);a||this.elementKeyMap.set(n,a=new Set),a.add(i)}},{key:"watchExtraTriggers",value:function(n,i,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||this.watcherMap.set(n,s=new Map),!s.get(i)){var l=Qa.apply(void 0,E(a)).subscribe(function(){var c=o.getValue(n,i);o.updateElement(n,i,c)});s.set(i,l)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,i){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}},{key:"addStyles",value:function(n,i){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,i),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,i)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(i){n.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=K(a,2),s=o[0],u=o[1];if(!u&&i){var l=LS(s),c=[n];this.styler.applyStyleToElements(l,c)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,i)}},{key:"setValue",value:function(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(hn),B(Qt),B(Zt))},e.\u0275dir=Ee({type:e,features:[Wn]}),e}();function YS(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[r,t,e],i=e.indexOf("calc");if(i>0){n[2]=$S(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(n[0]=a[0],n[1]=a[1])}else if(0==i)n[2]=$S(e.trim());else{var o=e.split(" ");n=3===o.length?o:[r,t,e]}return n}function $S(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Wc(e,r){if(void 0===r)return e;var t=function(i){var a=+i.slice(0,-"x".length);return e.endsWith("x")&&!isNaN(a)?"".concat(a*r.value).concat(r.unit):e};return e.includes(" ")?e.split(" ").map(t).join(" "):t(e)}function Rt(e){return null!=e&&"false"!=="".concat(e)}function Du(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return iH(e)?Number(e):r}function iH(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function qc(e){return Array.isArray(e)?e:[e]}function wn(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Vi(e){return e instanceof Ye?e.nativeElement:e}function rn(e){return Yt(function(r,t){or(e).subscribe(zt(t,function(){return t.complete()},Fe)),!t.closed&&r.subscribe(t)})}var cH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,null,a,o)).ngClassInstance=c,h.DIRECTIVE_KEY="ngClass",h.ngClassInstance||(h.ngClassInstance=new lc(s,u,i,l)),h.init(),h.setValue("",""),h}return f(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(Zt),B(ou),B(Sa),B(Yr),B(lc,10))},e.\u0275dir=Ee({type:e,inputs:{klass:["class","klass"]},features:[Re]}),e}(),dH=["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"],ZS=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=dH,i}return f(n)}(cH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({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:[Re]}),e}(),fH=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){return{display:"true"===a?o.display||(o.isServer?"initial":""):"none"}}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i,a,o,s)).layoutConfig=u,h.platformId=l,h.serverModuleLoaded=c,h.DIRECTIVE_KEY="show-hide",h.display="",h.hasLayout=!1,h.hasFlexChild=!1,h}return f(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var a=Array.from(this.nativeElement.children),o=0;o0&&void 0!==arguments[0])||arguments[0];if(""!==a){var o=jo(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:o}),o&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(fH),B(Qt),B(Zt),B(ti),B(pr),B($o))},e.\u0275dir=Ee({type:e,features:[Re,Wn]}),e}(),Pp=new WeakMap,vH=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],JS=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vH,i}return f(n)}(hH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Re]}),e}(),o0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),CH=new Ne("cdk-dir-doc",{providedIn:"root",factory:function EH(){return co(ot)}}),kH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,sa=function(){var e=function(){function r(t){d(this,r),this.value="ltr",this.change=new Dt,t&&(this.value=function wH(e){var r=(null==e?void 0:e.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?kH.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}return f(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(CH,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Zo=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),SH=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s=o.display,u=LS(a);return Object.assign(Object.assign({},u),{display:"none"===s?s:u.display})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),DH=["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"],AH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,o,a,s))._config=u,l.DIRECTIVE_KEY="layout",l.init(),l}return f(n,[{key:"updateWithValue",value:function(a){var o,u=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(o=s0.get(u))&&void 0!==o?o:new Map,s0.set(u,this.styleCache),this.currentValue!==a&&(this.addStyles(a,{display:u}),this.currentValue=a)}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(SH),B(Zt),B(ti))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Jo=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=DH,i}return f(n)}(AH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({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:[Re]}),e}(),s0=new Map,u0={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},xH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this))._styler=i,o._config=a,o}return f(n,[{key:"buildStyles",value:function(a,o){return a.endsWith(Kc)?function LH(e,r){var n=K(e.split(" "),2),i=n[0],a=n[1],s=function(v){return"-".concat(v)},u="0px",l=s(null!=a?a:i),c="0px";return"rtl"===r?c=s(i):u=s(i),{margin:"0px ".concat(u," ").concat(l," ").concat(c)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),o.directionality):{}}},{key:"sideEffect",value:function(a,o,s){var u=s.items;if(a.endsWith(Kc)){var l=function PH(e,r){var n=K(e.split(" "),2),i=n[0],a=n[1],s="0px",u=null!=a?a:i,l="0px";return"rtl"===r?l=i:s=i,{padding:"0px ".concat(s," ").concat(u," ").concat(l)}}(a=Wc(a=a.slice(0,a.indexOf(Kc)),this._config.multiplier),s.directionality);this._styler.applyStyleToElements(l,s.items)}else{a=Wc(a,this._config.multiplier),a=this.addFallbackUnit(a);var c=u.pop(),h=function NH(e,r){var t=l0(r.directionality,r.layout),n=Object.assign({},u0);return n[t]=e,n}(a,s);this._styler.applyStyleToElements(h,u),this._styler.applyStyleToElements(u0,[c])}}},{key:"addFallbackUnit",value:function(a){return isNaN(+a)?a:"".concat(a).concat(this._config.defaultUnit)}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(le(Qt),le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),MH=["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"],TH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l){var c;d(this,n),(c=t.call(this,i,u,s,l)).zone=a,c.directionality=o,c.styleUtils=s,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Pe;var h=[c.directionality.change,c.observerSubject.asObservable()];return c.init(h),c.marshal.trackValue(c.nativeElement,"layout").pipe(rn(c.destroySubject)).subscribe(c.onLayoutChange.bind(Q(c))),c}return f(n,[{key:"childrenNodes",get:function(){for(var a=this.nativeElement.children,o=[],s=a.length;s--;)o[s]=a[s];return o}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){M(k(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(a){var o=this,u=a.value.split(" ");this.layout=u[0],zc.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(a){var o=this,s=this.childrenNodes.filter(function(c){return 1===c.nodeType&&o.willDisplay(c)}).sort(function(c,h){var v=+o.styler.lookupStyle(c,"order"),_=+o.styler.lookupStyle(h,"order");return isNaN(v)||isNaN(_)||v===_?0:v>_?1:-1});if(s.length>0){var u=this.directionality.value,l=this.layout;"row"===l&&"rtl"===u?this.styleCache=RH:"row"===l&&"rtl"!==u?this.styleCache=IH:"column"===l&&"rtl"===u?this.styleCache=OH:"column"===l&&"rtl"!==u&&(this.styleCache=FH),this.addStyles(a,{directionality:u,items:s,layout:l})}}},{key:"clearStyles",value:function(){var a=Object.keys(this.mru).length>0,o=a?"padding":l0(this.directionality.value,this.layout);a&&M(k(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(S({},o,""),this.childrenNodes)}},{key:"willDisplay",value:function(a){var o=this.marshal.getValue(a,"show-hide");return!0===o||void 0===o&&"none"!==this.styleUtils.lookupStyle(a,"display")}},{key:"buildChildObservable",value:function(){var a=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(a.observer=new MutationObserver(function(o){o.some(function(l){return l.addedNodes&&l.addedNodes.length>0||l.removedNodes&&l.removedNodes.length>0})&&a.observerSubject.next()}),a.observer.observe(a.nativeElement,{childList:!0}))})}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(st),B(sa),B(Qt),B(xH),B(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),Lp=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=MH,i}return f(n)}(TH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({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:[Re]}),e}(),RH=new Map,OH=new Map,IH=new Map,FH=new Map,Kc=" grid";function l0(e,r){switch(r){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left"}}var Np,VH=function(){var e=function(r){p(n,r);var t=y(n);function n(i){var a;return d(this,n),(a=t.call(this)).layoutConfig=i,a}return f(n,[{key:"buildStyles",value:function(a,o){var u=function C(e){return j(e)||m(e)||re(e)||W()}(a.split(" ")),l=u[0],c=u[1],v=u.slice(2).join(" "),_=o.direction.indexOf("column")>-1?"column":"row",O=ku(_)?"max-width":"max-height",J=ku(_)?"min-width":"min-height",te=String(v).indexOf("calc")>-1,ue=te||"auto"===v,ee=String(v).indexOf("%")>-1&&!te,ye=String(v).indexOf("px")>-1||String(v).indexOf("rem")>-1||String(v).indexOf("em")>-1||String(v).indexOf("vw")>-1||String(v).indexOf("vh")>-1,_e=te||ye;c="0"==c?0:c;var Te=!(l="0"==l?0:l)&&!c,Ie={},We={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(v||""){case"":v="row"===_?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":l=0,v="auto";break;case"grow":v="100%";break;case"noshrink":c=0,v="auto";break;case"auto":break;case"none":l=0,c=0,v="auto";break;default:!_e&&!ee&&!isNaN(v)&&(v+="%"),"0%"===v&&(_e=!0),"0px"===v&&(v="0%"),Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":_e?v:"100%"}:{flex:"".concat(l," ").concat(c," ").concat(_e?v:"100%")})}return Ie.flex||Ie["flex-grow"]||(Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)})),"0%"!==v&&"0px"!==v&&"0.000000001px"!==v&&"auto"!==v&&(Ie[J]=Te||_e&&l?v:null,Ie[O]=Te||!ue&&c?v:null),Ie[J]||Ie[O]?o.hasWrap&&(Ie[te?"flex-basis":"flex"]=Ie[O]?te?Ie[O]:"".concat(l," ").concat(c," ").concat(Ie[O]):te?Ie[J]:"".concat(l," ").concat(c," ").concat(Ie[J])):Ie=Li(We,te?{"flex-grow":l,"flex-shrink":c,"flex-basis":v}:{flex:"".concat(l," ").concat(c," ").concat(v)}),Li(Ie,{"box-sizing":"border-box"})}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(le(ti))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),BH=["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"],HH=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,i,s,a,u)).layoutConfig=o,l.marshal=u,l.DIRECTIVE_KEY="flex",l.direction=void 0,l.wrap=void 0,l.flexGrow="1",l.flexShrink="1",l.init(),l}return f(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(a){this.flexShrink=a||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(a){this.flexGrow=a||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(rn(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(rn(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(a){var s=a.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(a){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 s=this.direction,u=s.startsWith("row"),l=this.wrap;u&&l?this.styleCache=GH:u&&!l?this.styleCache=jH:!u&&l?this.styleCache=zH:!u&&!l&&(this.styleCache=UH);var h=YS(String(a).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(h.join(" "),{direction:s,hasWrap:l})}},{key:"triggerReflow",value:function(){var a=this.activatedValue;if(void 0!==a){var o=YS(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,o.join(" "))}}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(ti),B(VH),B(Zt))},e.\u0275dir=Ee({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Re]}),e}(),Qc=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=BH,i}return f(n)}(HH);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({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:[Re]}),e}(),jH=new Map,UH=new Map,GH=new Map,zH=new Map,hj=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"buildStyles",value:function(a,o){var s={},l=K(a.split(" "),2),h=l[1];switch(l[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(h){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return Li(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===h?ku(o.layout)?null:"100%":null,"max-height":"stretch"===h&&ku(o.layout)?"100%":null})}}]),n}(hn);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vj=["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"],pj=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s){var u;return d(this,n),(u=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout-align",u.layout="row",u.inline=!1,u.init(),u.marshal.trackValue(u.nativeElement,"layout").pipe(rn(u.destroySubject)).subscribe(u.onLayoutChange.bind(Q(u))),u}return f(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=bj:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=Ej:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=Cj:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=kj:"column-reverse"===o&&!s&&(this.styleCache=_j):this.styleCache=mj:this.styleCache=yj:this.styleCache=gj,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),zc.find(function(u){return u===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(nn);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Qt),B(hj),B(Zt))},e.\u0275dir=Ee({type:e,features:[Re]}),e}(),es=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments)).inputs=vj,i}return f(n)}(pj);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({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:[Re]}),e}(),gj=new Map,mj=new Map,yj=new Map,_j=new Map,bj=new Map,Cj=new Map,Ej=new Map,kj=new Map,c0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp,Zo]]}),e}(),y0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Tp]]}),e}(),WU=function(){var e=function(){function r(t,n){d(this,r),jo(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return f(r,null,[{key:"withConfig",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:r,providers:n.serverLoaded?[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0},{provide:$o,useValue:!0}]:[{provide:ti,useValue:Object.assign(Object.assign({},Rp),n)},{provide:Op,useValue:i,multi:!0}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le($o),le(pr))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[c0,o0,y0],c0,o0,y0]}),e}();try{Np="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Np=!1}var ts,Au,$c,Na,Vp,Hn=function(){var e=f(function r(t){d(this,r),this._platformId=t,this.isBrowser=this._platformId?xa(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&&!Np)&&"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)(le(pr))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),b0=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C0(){if(ts)return ts;if("object"!=typeof document||!document)return ts=new Set(b0);var e=document.createElement("input");return ts=new Set(b0.filter(function(r){return e.setAttribute("type",r),e.type===r}))}function Yc(e){return function qU(){if(null==Au&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Au=!0}}))}finally{Au=Au||!1}return Au}()?e:!!e.capture}function E0(){if(null==Na){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Na=!1;if("scrollBehavior"in document.documentElement.style)Na=!0;else{var e=Element.prototype.scrollTo;Na=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Na}function xu(){if("object"!=typeof document||!document)return 0;if(null==$c){var e=document.createElement("div"),r=e.style;e.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";var t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),$c=0,0===e.scrollLeft&&(e.scrollLeft=1,$c=0===e.scrollLeft?1:2),e.remove()}return $c}function QU(e){if(function KU(){if(null==Vp){var e="undefined"!=typeof document?document.head:null;Vp=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Vp}()){var r=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bp(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}function Va(e){return e.composedPath?e.composedPath()[0]:e.target}function Hp(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function w0(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:en;return e=null!=e?e:e4,Yt(function(t,n){var i,a=!0;t.subscribe(zt(n,function(o){var s=r(o);(a||!e(i,s))&&(a=!1,i=s,n.next(o))}))})}function e4(e,r){return e===r}var jp=function(){var e=function(){function r(t){d(this,r),this._platform=t}return f(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function i4(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function r4(e){try{return e.frameElement}catch(r){return null}}(function f4(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(i&&(-1===T0(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=T0(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function c4(e){var r=e.nodeName.toLowerCase(),t="input"===r&&e.type;return"text"===t||"password"===t||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function d4(e){return!function o4(e){return function u4(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function a4(e){var r=e.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(e)||function s4(e){return function l4(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||M0(e))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function M0(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var r=e.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function T0(e){if(!M0(e))return null;var r=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var h4=function(){function e(r,t,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];d(this,e),this._element=r,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return f(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]"));return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(t),!!i}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=0;i=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Yn(1)).subscribe(t)}}]),e}(),R0=function(){var e=function(){function r(t,n,i){d(this,r),this._checker=t,this._ngZone=n,this._document=i}return f(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new h4(n,this._checker,this._ngZone,this._document,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(jp),le(st),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function O0(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function I0(e){var r=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}var v4=new Ne("cdk-input-modality-detector-options"),p4={ignoreKeys:[18,17,224,91,16]},ns=Yc({passive:!0,capture:!0}),g4=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this._platform=t,this._mostRecentTarget=null,this._modality=new _r(null),this._lastTouchMs=0,this._onKeydown=function(s){var u,l;(null===(l=null===(u=o._options)||void 0===u?void 0:u.ignoreKeys)||void 0===l?void 0:l.some(function(c){return c===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=Va(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(O0(s)?"keyboard":"mouse"),o._mostRecentTarget=Va(s))},this._onTouchstart=function(s){I0(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=Va(s))},this._options=Object.assign(Object.assign({},p4),a),this.modalityDetected=this._modality.pipe(S0(1)),this.modalityChanged=this.modalityDetected.pipe(D0()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,ns),i.addEventListener("mousedown",o._onMousedown,ns),i.addEventListener("touchstart",o._onTouchstart,ns)})}return f(r,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ns),document.removeEventListener("mousedown",this._onMousedown,ns),document.removeEventListener("touchstart",this._onTouchstart,ns))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(st),le(ot),le(v4,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),m4=new Ne("liveAnnouncerElement",{providedIn:"root",factory:function y4(){return null}}),_4=new Ne("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P0=function(){var e=function(){function r(t,n,i,a){d(this,r),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=t||this._createLiveElement()}return f(r,[{key:"announce",value:function(n){for(var o,s,i=this,a=this._defaultOptions,u=arguments.length,l=new Array(u>1?u-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],a=Vi(n);if(!this._platform.isBrowser||1!==a.nodeType)return Je(null);var o=QU(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return i&&(s.checkChildren=!0),s.subject;var u={checkChildren:i,subject:new Pe,rootNode:o};return this._elementInfo.set(a,u),this._registerGlobalListeners(u),u.subject}},{key:"stopMonitoring",value:function(n){var i=Vi(n),a=this._elementInfo.get(i);a&&(a.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,i,a){var o=this,s=Vi(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(l){var c=K(l,2);return o._originChanged(c[0],i,c[1])}):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(i,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused","touch"===i),n.classList.toggle("cdk-keyboard-focused","keyboard"===i),n.classList.toggle("cdk-mouse-focused","mouse"===i),n.classList.toggle("cdk-program-focused","program"===i)}},{key:"_setOrigin",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){i._origin=n,i._originFromTouchInteraction="touch"===n&&a,0===i._detectionMode&&(clearTimeout(i._originTimeoutId),i._originTimeoutId=setTimeout(function(){return i._origin=null},i._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,i){var a=this._elementInfo.get(i),o=Va(n);!a||!a.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,i){var a=this._elementInfo.get(i);!a||a.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,i){this._ngZone.run(function(){return n.next(i)})}},{key:"_registerGlobalListeners",value:function(n){var i=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",i._rootNodeFocusAndBlurListener,Xc),a.addEventListener("blur",i._rootNodeFocusAndBlurListener,Xc)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){i._getWindow().addEventListener("focus",i._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rn(this._stopInputModalityDetector)).subscribe(function(s){i._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){var a=this._rootNodeFocusListenerCount.get(i);a>1?this._rootNodeFocusListenerCount.set(i,a-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,i,a){this._setClasses(n,i),this._emitOrigin(a.subject,i),this._lastFocusOrigin=i}},{key:"_getClosestElementsInfo",value:function(n){var i=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&i.push([o,a])}),i}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(Hn),le(g4),le(ot,8),le(b4,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),L0="cdk-high-contrast-black-on-white",N0="cdk-high-contrast-white-on-black",Up="cdk-high-contrast-active",C4=function(){var e=function(){function r(t,n){d(this,r),this._platform=t,this._document=n}return f(r,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(Up),n.remove(L0),n.remove(N0),this._hasCheckedHighContrastMode=!0;var i=this.getHighContrastMode();1===i?(n.add(Up),n.add(L0)):2===i&&(n.add(Up),n.add(N0))}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),k4=new Ne("mat-sanity-checks",{providedIn:"root",factory:function E4(){return!0}}),an=function(){var e=function(){function r(t,n,i){d(this,r),this._sanityChecks=n,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return f(r,[{key:"_checkIsEnabled",value:function(n){return!Hp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(C4),le(k4,8),le(ot))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo],Zo]}),e}();function B0(e){return function(r){p(n,r);var t=y(n);function n(){var i;d(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return function(t){p(i,t);var n=y(i);function i(){var a;d(this,i);for(var o=arguments.length,s=new Array(o),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},U0),a.animation);a.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var u=a.radius||T4(t,n,o),l=t-o.left,c=n-o.top,h=s.enterDuration,v=document.createElement("div");v.classList.add("mat-ripple-element"),v.style.left="".concat(l-u,"px"),v.style.top="".concat(c-u,"px"),v.style.height="".concat(2*u,"px"),v.style.width="".concat(2*u,"px"),null!=a.color&&(v.style.backgroundColor=a.color),v.style.transitionDuration="".concat(h,"ms"),this._containerElement.appendChild(v),M4(v),v.style.transform="scale(1)";var _=new D4(this,v,a);return _.state=0,this._activeRipples.add(_),a.persistent||(this._mostRecentTransientRipple=_),this._runTimeoutOutsideZone(function(){var O=_===i._mostRecentTransientRipple;_.state=1,!a.persistent&&(!O||!i._isPointerDown)&&_.fadeOut()},h),_}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var i=t.element,a=Object.assign(Object.assign({},U0),t.config.animation);i.style.transitionDuration="".concat(a.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.remove()},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=Vi(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(G0))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(z0),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=O0(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(i){n._triggerElement.addEventListener(i,n,zp)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}),this._pointerUpEventsRegistered&&z0.forEach(function(n){t._triggerElement.removeEventListener(n,t,zp)}))}}]),e}();function M4(e){window.getComputedStyle(e).getPropertyValue("opacity")}function T4(e,r,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(r-t.top),Math.abs(r-t.bottom));return Math.sqrt(n*n+i*i)}var R4=new Ne("mat-ripple-global-options"),Ou=function(){var e=function(){function r(t,n,i,a,o){d(this,r),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new x4(this,n,t,i)}return f(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,i,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(st),B(Hn),B(R4,8),B(gi,8))},e.\u0275dir=Ee({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e}(),Wp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),O4=["mat-button",""],I4=["*"],P4=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L4=Tu(B0(Gp(function(){return f(function e(r){d(this,e),this._elementRef=r})}()))),rs=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;d(this,n),(s=t.call(this,i))._focusMonitor=a,s._animationMode=o,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var l,u=Y(P4);try{for(u.s();!(l=u.n()).done;){var c=l.value;s._hasHostAttributes(c)&&s._getHostElement().classList.add(c)}}catch(h){u.e(h)}finally{u.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return f(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._getHostElement(),a,o):this._getHostElement().focus(o)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),qp=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}(),N4=["*",[["mat-card-footer"]]],V4=["*","mat-card-footer"],B4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),H4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),j4=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),U4=function(){var e=f(function r(){d(this,r),this.align="start"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),Kp=function(){var e=f(function r(t){d(this,r),this._animationMode=t});return e.\u0275fac=function(t){return new(t||e)(B(gi,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,n){2&t&&It("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:V4,decls:2,vars:0,template:function(t,n){1&t&&(ir(N4),jt(0),jt(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),e}(),W0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),G4=function(e){p(t,e);var r=y(t);function t(n,i){return d(this,t),r.call(this)}return f(t,[{key:"schedule",value:function(i){return this}}]),t}(F),Zc={setInterval:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Zc.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Zc.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)}),delegate:void 0},Qp=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a.pending=!1,a}return f(t,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zc.setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Zc.clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var s,o=!1;try{this.work(i)}catch(u){o=!0,s=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,b(o,this),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null,M(k(t.prototype),"unsubscribe",this).call(this)}}}]),t}(G4),q0={now:function(){return(q0.delegate||Date).now()},delegate:void 0},Yp=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;d(this,e),this.schedulerActionCtor=r,this.now=t}return f(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(i,n)}}]),e}();Yp.now=q0.now;var $p=function(e){p(t,e);var r=y(t);function t(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yp.now;return d(this,t),(i=r.call(this,n,a)).actions=[],i._active=!1,i._scheduled=void 0,i}return f(t,[{key:"flush",value:function(i){var a=this.actions;if(this._active)a.push(i);else{var o;this._active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this._active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),t}(Yp),Xp=new $p(Qp),z4=Xp;function Zp(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return Yt(function(t,n){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var c=a;a=null,n.next(c)}};function u(){var l=o+e,c=r.now();if(c0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var u=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(u)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new Z4;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var s,o=this,u=null===(s=this._options)||void 0===s?void 0:s.clickAction;a.stopPropagation(),this.disabled||"noop"===u?!this.disabled&&"noop"===u&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==u&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,o){if("NoopAnimations"===this._animationMode)return"";var s="";switch(a){case 0:if(1===o)s="unchecked-checked";else{if(3!=o)return"";s="unchecked-indeterminate"}break;case 2:s=1===o?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===o?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===o?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(a){var o=this._inputElement;o&&(o.nativeElement.indeterminate=a)}}]),n}(J4);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(gr),B(Mu),B(st),$i("tabindex"),B(gi,8),B(Y4,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,n){var i;1&t&&(Tr(q4,5),Tr(Ou,5)),2&t&&(Ft(i=Pt())&&(n._inputElement=i.first),Ft(i=Pt())&&(n.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(t,n){2&t&&(Fo("id",n.id),Kt("tabindex",null)("aria-label",null)("aria-labelledby",null),It("mat-checkbox-indeterminate",n.indeterminate)("mat-checkbox-checked",n.checked)("mat-checkbox-disabled",n.disabled)("mat-checkbox-label-before","before"==n.labelPosition)("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[At([X4]),Re],ngContentSelectors:Q4,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),pe(0,"label",0,1)(2,"span",2)(3,"input",3,4),Ge("change",function(s){return n._onInteractionEvent(s)})("click",function(s){return n._onInputClick(s)}),ge(),pe(5,"span",5),Xt(6,"span",6),ge(),Xt(7,"span",7),pe(8,"span",8),function zm(){nt.lFrame.currentNamespace="svg"}(),pe(9,"svg",9),Xt(10,"path",10),ge(),function Wm(){!function SM(){nt.lFrame.currentNamespace=null}()}(),Xt(11,"span",11),ge()(),pe(12,"span",12,13),Ge("cdkObserveContent",function(){return n._onLabelTextChange()}),pe(14,"span",14),Oe(15,"\xa0"),ge(),jt(16),ge()()),2&t){var i=Qn(1),a=Qn(13);Kt("for",n.inputId),ke(2),It("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),ke(1),xe("id",n.inputId)("required",n.required)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex),Kt("value",n.value)("name",n.name)("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-checked",n._getAriaChecked())("aria-describedby",n.ariaDescribedby),ke(2),xe("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",jh(19,K4,"NoopAnimations"===n._animationMode?0:150))}},directives:[Ou,Q0],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),J0=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),eD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an,Y0,J0],an,J0]}),e}(),nG=["addListener","removeListener"],rG=["addEventListener","removeEventListener"],iG=["on","off"];function is(e,r,t,n){if(L(t)&&(n=t,t=void 0),n)return is(e,r,t).pipe(Ov(n));var a=K(function sG(e){return L(e.addEventListener)&&L(e.removeEventListener)}(e)?rG.map(function(u){return function(l){return e[u](r,l,t)}}):function aG(e){return L(e.addListener)&&L(e.removeListener)}(e)?nG.map(tD(e,r)):function oG(e){return L(e.on)&&L(e.off)}(e)?iG.map(tD(e,r)):[],2),o=a[0],s=a[1];if(!o&&Ld(e))return Sn(function(u){return is(u,r,t)})(or(e));if(!o)throw new TypeError("Invalid event target");return new ct(function(u){var l=function(){for(var h=arguments.length,v=new Array(h),_=0;_2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(k(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(function(){return i.flush(void 0)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return M(k(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(Iu.cancelAnimationFrame(a),i._scheduled=void 0)}}]),t}(Qp),lG=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p),dG=(new lG(uG),1),Jc={};function nD(e){return e in Jc&&(delete Jc[e],!0)}var fG=function(r){var t=dG++;return Jc[t]=!0,Jp||(Jp=Promise.resolve()),Jp.then(function(){return nD(t)&&r()}),t},hG=function(r){nD(r)},ed={setImmediate:function(){var r=ed.delegate;return((null==r?void 0:r.setImmediate)||fG).apply(void 0,arguments)},clearImmediate:function(r){var t=ed.delegate;return((null==t?void 0:t.clearImmediate)||hG)(r)},delegate:void 0},vG=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return f(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(k(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=ed.setImmediate(i.flush.bind(i,void 0))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return M(k(t.prototype),"recycleAsyncId",this).call(this,i,a,o);i.actions.some(function(s){return s.id===a})||(ed.clearImmediate(a),i._scheduled=void 0)}}]),t}(Qp),pG=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t,[{key:"flush",value:function(i){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;i=i||o.shift();do{if(s=i.execute(i.state,i.delay))break}while((i=o[0])&&i.id===a&&o.shift());if(this._active=!1,s){for(;(i=o[0])&&i.id===a&&o.shift();)i.unsubscribe();throw s}}}]),t}($p);new pG(vG);function mG(e){return Yt(function(r,t){var n=!1,i=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var c=i;i=null,t.next(c)}o&&t.complete()},u=function(){a=null,o&&t.complete()};r.subscribe(zt(t,function(l){n=!0,i=l,a||or(e(l)).subscribe(a=zt(t,s,u))},function(){o=!0,(!n||!a||a.closed)&&t.complete()}))})}function yG(e){return e instanceof Date&&!isNaN(e)}function _G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z4,n=-1;return null!=r&&(dm(r)?t=r:n=r),new ct(function(i){var a=yG(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},a)})}function iD(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xp;return mG(function(){return _G(e,r)})}var td=function(){var e=function(){function r(t,n,i){d(this,r),this._ngZone=t,this._platform=n,this._scrolled=new Pe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return f(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ct(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(iD(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):Je()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(fn(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=Vi(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return is(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(st),le(Hn),le(ot,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Fu=function(){var e=function(){function r(t,n,i,a){var o=this;d(this,r),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Pe,this._elementScrolled=new ct(function(s){return o.ngZone.runOutsideAngular(function(){return is(o.elementRef.nativeElement,"scroll").pipe(rn(o._destroyed)).subscribe(s)})})}return f(r,[{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(n){var i=this.elementRef.nativeElement,a=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=a?n.end:n.start),null==n.right&&(n.right=a?n.start:n.end),null!=n.bottom&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),a&&0!=xu()?(null!=n.left&&(n.right=i.scrollWidth-i.clientWidth-n.left),2==xu()?n.left=n.right:1==xu()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}},{key:"_applyScrollToOptions",value:function(n){var i=this.elementRef.nativeElement;E0()?i.scrollTo(n):(null!=n.top&&(i.scrollTop=n.top),null!=n.left&&(i.scrollLeft=n.left))}},{key:"measureScrollOffset",value:function(n){var i="left",a="right",o=this.elementRef.nativeElement;if("top"==n)return o.scrollTop;if("bottom"==n)return o.scrollHeight-o.clientHeight-o.scrollTop;var s=this.dir&&"rtl"==this.dir.value;return"start"==n?n=s?a:i:"end"==n&&(n=s?i:a),s&&2==xu()?n==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==xu()?n==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(td),B(st),B(sa,8))},e.\u0275dir=Ee({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),eg=function(){var e=function(){function r(t,n,i){var a=this;d(this,r),this._platform=t,this._change=new Pe,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return f(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(iD(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Hn),le(st),le(ot,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),nd=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),aD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Zo,nd],Zo,nd]}),e}(),tg=function(){function e(){d(this,e)}return f(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),Pu=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return f(t)}(tg),ng=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return f(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,M(k(t.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,M(k(t.prototype),"detach",this).call(this)}}]),t}(tg),EG=function(e){p(t,e);var r=y(t);function t(n){var i;return d(this,t),(i=r.call(this)).element=n instanceof Ye?n.nativeElement:n,i}return f(t)}(tg),rd=function(){function e(){d(this,e),this._isDisposed=!1,this.attachDomPortal=null}return f(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Pu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ng?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof EG?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),kG=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s){var u,l;return d(this,t),(l=r.call(this)).outletElement=n,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(c){var h=c.element,v=l._document.createComment("dom-portal");h.parentNode.insertBefore(v,h),l.outletElement.appendChild(h),l._attachedPortal=c,M((u=Q(l),k(t.prototype)),"setDisposeFn",u).call(u,function(){v.parentNode&&v.parentNode.replaceChild(h,v)})},l._document=s,l}return f(t,[{key:"attachComponentPortal",value:function(i){var u,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(u=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return u.destroy()})):(u=s.create(i.injector||this._defaultInjector),this._appRef.attachView(u.hostView),this.setDisposeFn(function(){a._appRef.detachView(u.hostView),u.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(u)),this._attachedPortal=i,u}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(u){return a.outletElement.appendChild(u)}),s.detectChanges(),this.setDisposeFn(function(){var u=o.indexOf(s);-1!==u&&o.remove(u)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){M(k(t.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),t}(rd),id=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s,u;return d(this,n),(u=t.call(this))._componentFactoryResolver=i,u._viewContainerRef=a,u._isInitialized=!1,u.attached=new Dt,u.attachDomPortal=function(l){var c=l.element,h=u._document.createComment("dom-portal");l.setAttachedHost(Q(u)),c.parentNode.insertBefore(h,c),u._getRootNode().appendChild(c),u._attachedPortal=l,M((s=Q(u),k(n.prototype)),"setDisposeFn",s).call(s,function(){h.parentNode&&h.parentNode.replaceChild(c,h)})},u._document=o,u}return f(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&M(k(n.prototype),"detach",this).call(this),a&&M(k(n.prototype),"attach",this).call(this,a),this._attachedPortal=a||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){M(k(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,u=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),l=o.createComponent(u,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),M(k(n.prototype),"setDisposeFn",this).call(this,function(){return l.destroy()}),this._attachedPortal=a,this._attachedRef=l,this.attached.emit(l),l}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return M(k(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(ka),B(Mr),B(ot))},e.\u0275dir=Ee({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]}),e}(),rg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}(),oD=E0(),wG=function(){function e(r,t){d(this,e),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return f(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=wn(-this._previousScrollPosition.left),t.style.top=wn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,i=t.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),oD&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oD&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),e}(),SG=function(){function e(r,t,n,i){var a=this;d(this,e),this._scrollDispatcher=r,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=t._viewportRuler.getViewportScrollPosition().top;Math.abs(i-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.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}(),sD=function(){function e(){d(this,e)}return f(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ig(e,r){return r.some(function(t){return e.bottomt.bottom||e.rightt.right})}function uD(e,r){return r.some(function(t){return e.topt.bottom||e.leftt.right})}var DG=function(){function e(r,t,n,i){d(this,e),this._scrollDispatcher=r,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return f(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var i=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;ig(i,[{width:o,height:s,bottom:s,right:o,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),AG=function(){var e=f(function r(t,n,i,a){var o=this;d(this,r),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new sD},this.close=function(s){return new SG(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new wG(o._viewportRuler,o._document)},this.reposition=function(s){return new DG(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(le(td),le(eg),le(st),le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ag=f(function e(r){if(d(this,e),this.scrollStrategy=new sD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);nJ&&(J=ye,O=ee)}}catch(_e){te.e(_e)}finally{te.f()}return this._isPushed=!1,void this._applyPosition(O.position,O.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ba(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n,i){var a,u;if("center"==i.originX)a=t.left+t.width/2;else{var o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),u="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,n.top<0&&(u-=n.top),{x:a,y:u}}},{key:"_getOverlayPoint",value:function(t,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,i,a){var o=dD(n),s=t.x,u=t.y,l=this._getOffset(a,"x"),c=this._getOffset(a,"y");l&&(s+=l),c&&(u+=c);var _=0-u,O=u+o.height-i.height,J=this._subtractOverflows(o.width,0-s,s+o.width-i.width),te=this._subtractOverflows(o.height,_,O),ue=J*te;return{visibleArea:ue,isCompletelyWithinViewport:o.width*o.height===ue,fitsInViewportVertically:te===o.height,fitsInViewportHorizontally:J==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=cD(this._overlayRef.getConfig().minHeight),u=cD(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=u&&u<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var h,v,a=dD(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),u=Math.max(t.y+a.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);return this._previousPushAmount={x:h=a.width<=o.width?c||-s:t.xc&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-c/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)J=i.width-t.x+this._viewportMargin,_=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)O=t.x,_=i.right-t.x;else{var te=Math.min(i.right-t.x+i.left,t.x),ue=this._lastBoundingBoxSize.width;O=t.x-te,(_=2*te)>ue&&!this._isInitialRender&&!this._growAfterOpen&&(O=t.x-ue/2)}return{top:s,left:O,bottom:u,right:J,width:_,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=wn(i.height),a.top=wn(i.top),a.bottom=wn(i.bottom),a.width=wn(i.width),a.left=wn(i.left),a.right=wn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=wn(o)),s&&(a.maxWidth=wn(s))}this._lastBoundingBoxSize=i,Ba(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){Ba(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ba(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var u=this._viewportRuler.getViewportScrollPosition();Ba(i,this._getExactOverlayY(n,t,u)),Ba(i,this._getExactOverlayX(n,t,u))}else i.position="static";var l="",c=this._getOffset(n,"x"),h=this._getOffset(n,"y");c&&(l+="translateX(".concat(c,"px) ")),h&&(l+="translateY(".concat(h,"px)")),i.transform=l.trim(),s.maxHeight&&(a?i.maxHeight=wn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=wn(s.maxWidth):o&&(i.maxWidth="")),Ba(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=wn(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=wn(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:uD(t,i),isOriginOutsideView:ig(t,i),isOverlayClipped:uD(n,i),isOverlayOutsideView:ig(n,i)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,u=i.maxHeight,l=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||u&&"100%"!==u&&"100vh"!==u);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(fD),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),IG=function(){var e=function(){function r(t,n,i,a){d(this,r),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return f(r,[{key:"global",value:function(){return new OG}},{key:"flexibleConnectedTo",value:function(n){return new RG(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(eg),le(ot),le(Hn),le(og))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),hD=function(){var e=function(){function r(t){d(this,r),this._attachedOverlays=[],this._document=t}return f(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ot))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),FG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a){var o;return d(this,n),(o=t.call(this,i))._ngZone=a,o._keydownListener=function(s){for(var u=o._attachedOverlays,l=u.length-1;l>-1&&!(u[l]._keydownEvents.observers.length>0&&"break"===function(){var h=u[l]._keydownEvents;return o._ngZone?o._ngZone.run(function(){return h.next(s)}):h.next(s),"break"}());l--);},o}return f(n,[{key:"add",value:function(a){var o=this;M(k(n.prototype),"add",this).call(this,a),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return o._document.body.addEventListener("keydown",o._keydownListener)}):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}(hD);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(st,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),PG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._ngZone=o,s._cursorStyleIsSet=!1,s._pointerDownListener=function(u){s._pointerDownEventTarget=Va(u)},s._clickListener=function(u){var l=Va(u),c="click"===u.type&&s._pointerDownEventTarget?s._pointerDownEventTarget:l;s._pointerDownEventTarget=null;for(var h=s._attachedOverlays.slice(),v=function(te){var ue=h[te];if(ue._outsidePointerEvents.observers.length<1||!ue.hasAttached())return"continue";if(ue.overlayElement.contains(l)||ue.overlayElement.contains(c))return"break";var ee=ue._outsidePointerEvents;s._ngZone?s._ngZone.run(function(){return ee.next(u)}):ee.next(u)},_=h.length-1;_>-1;_--){var O=v(_);if("continue"!==O&&"break"===O)break}},s}return f(n,[{key:"add",value:function(a){var o=this;if(M(k(n.prototype),"add",this).call(this,a),!this._isAttached){var s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return o._addEventListeners(s)}):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(hD);return e.\u0275fac=function(t){return new(t||e)(le(ot),le(Hn),le(st,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),LG=0,as=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h,v){d(this,r),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=u,this._document=l,this._directionality=c,this._location=h,this._outsideClickDispatcher=v}return f(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new ag(n);return s.direction=s.direction||this._directionality.value,new MG(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(LG++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Zl)),new kG(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(AG),le(og),le(ka),le(IG),le(FG),le(qt),le(st),le(ot),le(sa),le(Aa),le(PG))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),BG={provide:new Ne("cdk-connected-overlay-scroll-strategy"),deps:[as],useFactory:function VG(e){return function(){return e.scrollStrategies.reposition()}}},vD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[as,BG],imports:[[Zo,rg,aD],aD]}),e}();function sg(e){return new ct(function(r){or(e()).subscribe(r)})}function HG(){return hs(1)}function ad(){for(var e=arguments.length,r=new Array(e),t=0;t enter",Pi("150ms cubic-bezier(0, 0, 0.2, 1)",Ln({transform:"none",opacity:1}))),ia("* => void, * => exit",Pi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ln({opacity:0})))])},GG=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this))._elementRef=i,v._focusTrapFactory=a,v._changeDetectorRef=o,v._config=u,v._interactivityChecker=l,v._ngZone=c,v._focusMonitor=h,v._animationStateChanged=new Dt,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(_){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(_)},v._ariaLabelledBy=u.ariaLabelledBy||null,v._document=s,v}return f(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(a,o){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){a.addEventListener("blur",function(){return a.removeAttribute("tabindex")}),a.addEventListener("mousedown",function(){return a.removeAttribute("tabindex")})})),a.focus(o)}},{key:"_focusByCssSelector",value:function(a,o){var s=this._elementRef.nativeElement.querySelector(a);s&&this._forceFocus(s,o)}},{key:"_trapFocus",value:function(){var a=this,o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||a._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var o=Bp(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.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=Bp())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,o=Bp();return a===o||a.contains(o)}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(R0),B(gr),B(ot,8),B(ug),B(jp),B(st),B(Mu))},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ft(i=Pt())&&(n._portalOutlet=i.first)},features:[Re]}),e}(),zG=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._state="enter",i}return f(n,[{key:"_onAnimationDone",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===o&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:s}))}},{key:"_onAnimationStart",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GG);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&qs("@dialogContainer.start",function(a){return n._onAnimationStart(a)})("@dialogContainer.done",function(a){return n._onAnimationDone(a)}),2&t&&(Fo("id",n._id),Kt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qs("@dialogContainer",n._state))},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&$e(0,jG,0,0,"ng-template",0)},directives:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[UG.dialogContainer]}}),e}(),WG=0,lg=function(){function e(r,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(WG++);d(this,e),this._overlayRef=r,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe,this._afterClosed=new Pe,this._beforeClosed=new Pe,this._state=0,t._id=i,t._animationStateChanged.pipe(fn(function(a){return"opened"===a.state}),Yn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(fn(function(a){return"closed"===a.state}),Yn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),r.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),r.keydownEvents().pipe(fn(function(a){return 27===a.keyCode&&!n.disableClose&&!w0(a)})).subscribe(function(a){a.preventDefault(),cg(n,"keyboard")}),r.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():cg(n,"mouse")})}return f(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(fn(function(i){return"closing"===i.state}),Yn(1)).subscribe(function(i){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},i.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(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function cg(e,r,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=r),e.close(t)}var qG=new Ne("MatDialogData"),KG=new Ne("mat-dialog-default-options"),pD=new Ne("mat-dialog-scroll-strategy"),YG={provide:pD,deps:[as],useFactory:function QG(e){return function(){return e.scrollStrategies.block()}}},$G=function(){var e=function(){function r(t,n,i,a,o,s,u,l,c,h){var v=this;d(this,r),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=a,this._overlayContainer=o,this._dialogRefConstructor=u,this._dialogContainerType=l,this._dialogDataToken=c,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe,this._afterOpenedAtThisLevel=new Pe,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=sg(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe(ua(void 0))}),this._scrollStrategy=s}return f(r,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,i){var a=this;if(i=function XG(e,r){return Object.assign(Object.assign({},r),e)}(i,this._defaultOptions||new ug),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;var o=this._createOverlay(i),s=this._attachDialogContainer(o,i);if("NoopAnimations"!==this._animationMode){var u=s._animationStateChanged.subscribe(function(c){"opening"===c.state&&(a._dialogAnimatingOpen=!0),"opened"===c.state&&(a._dialogAnimatingOpen=!1,u.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new F),this._animationStateSubscriptions.add(u)}var l=this._attachDialogContent(n,s,o,i);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return a._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(i){return i.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}},{key:"_createOverlay",value:function(n){var i=this._getOverlayConfig(n);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(n){var i=new ag({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(i.backdropClass=n.backdropClass),i}},{key:"_attachDialogContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:i}]}),s=new Pu(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return n.attach(s).instance}},{key:"_attachDialogContent",value:function(n,i,a,o){var s=new this._dialogRefConstructor(a,i,o.id);if(n instanceof $r)i.attachTemplatePortal(new ng(n,null,{$implicit:o.data,dialogRef:s}));else{var u=this._createInjector(o,s,i),l=i.attachComponentPortal(new Pu(n,o.viewContainerRef,u,o.componentFactoryResolver));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}},{key:"_createInjector",value:function(n,i,a){var o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:i}];return n.direction&&(!o||!o.get(sa,null,tt.Optional))&&s.push({provide:sa,useValue:{value:n.direction,change:Je()}}),qt.create({parent:o||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(n){var i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,o){a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var i=n.parentElement.children,a=i.length-1;a>-1;a--){var o=i[a];o!==n&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var i=n.length;i--;)n[i].close()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e}),e}(),od=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,s,l,c,u,lg,zG,qG,h)}return f(n)}($G);return e.\u0275fac=function(t){return new(t||e)(le(as),le(qt),le(Aa,8),le(KG,8),le(pD),le(e,12),le(og),le(gi,8))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),ZG=0,JG=function(){var e=function(){function r(t,n,i){d(this,r),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return f(r,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=gD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var i=n._matDialogClose||n._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(n){cg(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(lg,8),B(Ye),B(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&Ge("click",function(a){return n._onButtonClick(a)}),2&t&&Kt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Wn]}),e}(),e5=function(){var e=function(){function r(t,n,i){d(this,r),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(ZG++)}return f(r,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=gD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=n._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=n.id)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(lg,8),B(Ye),B(od))},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Fo("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),t5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),n5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function gD(e,r){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(n){return n.id===t.id}):null}var mD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[od,YG],imports:[[vD,rg,an],an]}),e}(),r5=["connectionContainer"],a5=["inputContainer"],o5=["label"];function s5(e,r){1&e&&(Gs(0),pe(1,"div",14),Xt(2,"div",15)(3,"div",16)(4,"div",17),ge(),pe(5,"div",18),Xt(6,"div",15)(7,"div",16)(8,"div",17),ge(),zs())}function u5(e,r){if(1&e){var t=Nt();pe(0,"div",19),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),jt(1,1),ge()}2&e&&xe("cdkObserveContentDisabled","outline"!=ze().appearance)}function l5(e,r){if(1&e&&(Gs(0),jt(1,2),pe(2,"span"),Oe(3),ge(),zs()),2&e){var t=ze(2);ke(3),bn(t._control.placeholder)}}function c5(e,r){1&e&&jt(0,3,["*ngSwitchCase","true"])}function d5(e,r){1&e&&(pe(0,"span",23),Oe(1," *"),ge())}function f5(e,r){if(1&e){var t=Nt();pe(0,"label",20,21),Ge("cdkObserveContent",function(){return yt(t),ze().updateOutlineGap()}),$e(2,l5,4,1,"ng-container",12),$e(3,c5,1,0,"ng-content",12),$e(4,d5,2,0,"span",22),ge()}if(2&e){var n=ze();It("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),xe("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),Kt("for",n._control.id)("aria-owns",n._control.id),ke(2),xe("ngSwitchCase",!1),ke(1),xe("ngSwitchCase",!0),ke(1),xe("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function h5(e,r){1&e&&(pe(0,"div",24),jt(1,4),ge())}function v5(e,r){if(1&e&&(pe(0,"div",25),Xt(1,"span",26),ge()),2&e){var t=ze();ke(1),It("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function p5(e,r){1&e&&(pe(0,"div"),jt(1,5),ge()),2&e&&xe("@transitionMessages",ze()._subscriptAnimationState)}function g5(e,r){if(1&e&&(pe(0,"div",30),Oe(1),ge()),2&e){var t=ze(2);xe("id",t._hintLabelId),ke(1),bn(t.hintLabel)}}function m5(e,r){if(1&e&&(pe(0,"div",27),$e(1,g5,2,2,"div",28),jt(2,6),Xt(3,"div",29),jt(4,7),ge()),2&e){var t=ze();xe("@transitionMessages",t._subscriptAnimationState),ke(1),xe("ngIf",t.hintLabel)}}var y5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],b5=new Ne("MatError"),C5={transitionMessages:_u("transitionMessages",[Oa("enter",Ln({opacity:1,transform:"translateY(0%)"})),ia("void => enter",[Ln({opacity:0,transform:"translateY(-5px)"}),Pi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e}),e}(),E5=new Ne("MatHint"),yD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-label"]]}),e}(),k5=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-placeholder"]]}),e}(),w5=new Ne("MatPrefix"),S5=new Ne("MatSuffix"),_D=0,A5=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}(),"primary"),x5=new Ne("MAT_FORM_FIELD_DEFAULT_OPTIONS"),CD=new Ne("MatFormField"),fg=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c){var h;return d(this,n),(h=t.call(this,i))._changeDetectorRef=a,h._dir=o,h._defaults=s,h._platform=u,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Pe,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(_D++),h._labelId="mat-form-field-label-".concat(_D++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return f(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Rt(a)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ua(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(rn(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(rn(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),Qa(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ua(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ua(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rn(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.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(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{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 a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,is(this._label.nativeElement,"transitionend").pipe(Yn(1)).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,E(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(u){return"start"===u.align}):null,s=this._hintChildren?this._hintChildren.find(function(u){return"end"===u.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,E(this._errorChildren.map(function(u){return u.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null,o=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!a||!a.children.length||!a.textContent.trim()){for(var l=o.querySelectorAll("".concat(s,", ").concat(u)),c=0;c0?.75*ye+10:0}for(var Te=0;Te<_.length;Te++)_[Te].style.width="".concat(h,"px");for(var Ie=0;Ie1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,i),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var i=this,a=this._sanitizer.sanitize(xt.RESOURCE_URL,n);if(!a)throw wD(n);var o=this._cachedIconsByUrl.get(a);return o?Je(cd(o)):this._loadSvgIconFromConfig(new Ha(n,null)).pipe(Bn(function(s){return i._cachedIconsByUrl.set(a,s)}),Xe(function(s){return cd(s)}))}},{key:"getNamedSvgIcon",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=DD(i,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(n,s):mi(kD(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?Je(cd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Xe(function(i){return cd(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,i){var a=this,o=this._extractIconWithNameFromAnySet(n,i);return o?Je(o):xk(i.filter(function(u){return!u.svgText}).map(function(u){return a._loadSvgIconSetFromConfig(u).pipe(vn(function(l){var c=a._sanitizer.sanitize(xt.RESOURCE_URL,u.url),h="Loading icon set URL: ".concat(c," failed: ").concat(l.message);return a._errorHandler.handleError(new Error(h)),Je(null)}))})).pipe(Xe(function(){var u=a._extractIconWithNameFromAnySet(n,i);if(!u)throw kD(n);return u}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,i){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){var s=this._svgElementFromConfig(o),u=this._extractSvgIconFromSet(s,n,o.options);if(u)return u}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var i=this;return this._fetchIcon(n).pipe(Bn(function(a){return n.svgText=a}),Xe(function(){return i._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?Je(null):this._fetchIcon(n).pipe(Bn(function(i){return n.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(n,i,a){var o=n.querySelector('[id="'.concat(i,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var u=this._svgElementFromString(Lu(""));return u.appendChild(s),this._setSvgAttributes(u,a)}},{key:"_svgElementFromString",value:function(n){var i=this._document.createElement("DIV");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var i=this._svgElementFromString(Lu("")),a=n.attributes,o=0;o-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,o=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&o&&o.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),n}(G5);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Hn),B(Ii,10),B(ra,8),B(Ac,8),B(j0),B(H5,10),B(B5),B(st),B(CD,8))},e.\u0275dir=Ee({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Fo("disabled",n.disabled)("required",n.required),Kt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),It("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[At([{provide:dg,useExisting:e}]),Re,Wn]}),e}(),RD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({providers:[j0],imports:[[TD,sd,an],TD,sd]}),e}(),z5=function(){var e=function(){function r(){d(this,r),this._listeners=[]}return f(r,[{key:"notify",value:function(n,i){var o,a=Y(this._listeners);try{for(a.s();!(o=a.n()).done;)(0,o.value)(n,i)}catch(u){a.e(u)}finally{a.f()}}},{key:"listen",value:function(n){var i=this;return this._listeners.push(n),function(){i._listeners=i._listeners.filter(function(a){return n!==a})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),W5=["input"],q5=function(r){return{enterDuration:r}},K5=["*"],Q5=new Ne("mat-radio-default-options",{providedIn:"root",factory:function Y5(){return{color:"accent"}}}),OD=0,$5={provide:Ir,useExisting:Tt(function(){return vg}),multi:!0},ID=f(function e(r,t){d(this,e),this.source=r,this.value=t}),FD=new Ne("MatRadioGroup"),X5=function(){var e=function(){function r(t){d(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(OD++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Dt}return f(r,[{key:"name",get:function(){return this._name},set:function(n){this._name=n,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(n){this._labelPosition="before"===n?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(n){this._value!==n&&(this._value=n,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n,this.value=n?n.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=Rt(n),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(n){this._required=Rt(n),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var n=this;this._radios&&this._radios.forEach(function(i){i.name=n.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var n=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=n.value===a.value,a.checked&&(n._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new ID(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(n){return n._markForCheck()})}},{key:"writeValue",value:function(n){this.value=n,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(n){this._controlValueAccessorChangeFn=n}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"setDisabledState",value:function(n){this.disabled=n,this._changeDetector.markForCheck()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(gr))},e.\u0275dir=Ee({type:e,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),e}(),vg=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(X5);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275dir=Ee({type:e,selectors:[["mat-radio-group"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,pg,5),2&t&&Ft(a=Pt())&&(n._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[At([$5,{provide:FD,useExisting:e}]),Re]}),e}(),Z5=f(function e(r){d(this,e),this._elementRef=r}),J5=Gp(H0(Z5)),e8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){var v;return d(this,n),(v=t.call(this,a))._changeDetector=o,v._focusMonitor=s,v._radioDispatcher=u,v._providerOverride=c,v._uniqueId="mat-radio-".concat(++OD),v.id=v._uniqueId,v.change=new Dt,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===l,h&&(v.tabIndex=Du(h,0)),v._removeUniqueSelectionListener=u.listen(function(_,O){_!==v.id&&O===v.name&&(v.checked=!1)}),v}return f(n,[{key:"checked",get:function(){return this._checked},set:function(a){var o=Rt(a);this._checked!==o&&(this._checked=o,o&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!o&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),o&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Rt(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Rt(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,o){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(o){!o&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new ID(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var o=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),o&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),n}(J5);return e.\u0275fac=function(t){Us()},e.\u0275dir=Ee({type:e,viewQuery:function(t,n){var i;1&t&&Tr(W5,5),2&t&&Ft(i=Pt())&&(n._inputElement=i.first)},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Re]}),e}(),pg=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l,c,h){return d(this,n),t.call(this,i,a,o,s,u,l,c,h)}return f(n)}(e8);return e.\u0275fac=function(t){return new(t||e)(B(FD,8),B(Ye),B(gr),B(Mu),B(z5),B(gi,8),B(Q5,8),$i("tabindex"))},e.\u0275cmp=Ht({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,n){1&t&&Ge("focus",function(){return n._inputElement.nativeElement.focus()}),2&t&&(Kt("tabindex",null)("id",n.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),It("mat-radio-checked",n.checked)("mat-radio-disabled",n.disabled)("_mat-animation-noopable",n._noopAnimations)("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Re],ngContentSelectors:K5,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,n){if(1&t&&(ir(),pe(0,"label",0,1)(2,"span",2),Xt(3,"span",3)(4,"span",4),pe(5,"input",5,6),Ge("change",function(o){return n._onInputInteraction(o)})("click",function(o){return n._onInputClick(o)}),ge(),pe(7,"span",7),Xt(8,"span",8),ge()(),pe(9,"span",9)(10,"span",10),Oe(11,"\xa0"),ge(),jt(12),ge()()),2&t){var i=Qn(1);Kt("for",n.inputId),ke(5),xe("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex)("required",n.required),Kt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),ke(2),xe("matRippleTrigger",i)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",jh(18,q5,n._noopAnimations?0:150)),ke(2),It("mat-radio-label-before","before"==n.labelPosition)}},directives:[Ou],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),PD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[Wp,an],an]}),e}();function LD(e){return Xe(function(){return e})}var dd=["*"],t8=["content"];function n8(e,r){if(1&e){var t=Nt();pe(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),ge()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function r8(e,r){1&e&&(pe(0,"mat-drawer-content"),jt(1,2),ge())}var i8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],a8=["mat-drawer","mat-drawer-content","*"];function o8(e,r){if(1&e){var t=Nt();pe(0,"div",2),Ge("click",function(){return yt(t),ze()._onBackdropClicked()}),ge()}2&e&&It("mat-drawer-shown",ze()._isShowingBackdrop())}function s8(e,r){1&e&&(pe(0,"mat-sidenav-content"),jt(1,2),ge())}var u8=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l8=["mat-sidenav","mat-sidenav-content","*"],ND={transformDrawer:_u("transform",[Oa("open, open-instant",Ln({transform:"none",visibility:"visible"})),Oa("void",Ln({"box-shadow":"none",visibility:"hidden"})),ia("void => open-instant",Pi("0ms")),ia("void <=> open, open-instant => void",Pi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},d8=new Ne("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function f8(){return!1}}),gg=new Ne("MAT_DRAWER_CONTAINER"),fd=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this,o,s,u))._changeDetectorRef=i,l._container=a,l}return f(n,[{key:"ngAfterContentInit",value:function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})}}]),n}(Fu);return e.\u0275fac=function(t){return new(t||e)(B(gr),B(Tt(function(){return BD})),B(Ye),B(td),B(st))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Fu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),jt(0))},encapsulation:2,changeDetection:0}),e}(),VD=function(){var e=function(){function r(t,n,i,a,o,s,u,l){var c=this;d(this,r),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._interactivityChecker=s,this._doc=u,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe,this._animationEnd=new Pe,this._animationState="void",this.openedChange=new Dt(!0),this._openedStream=this.openedChange.pipe(fn(function(h){return h}),Xe(function(){})),this.openedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),LD(void 0)),this._closedStream=this.openedChange.pipe(fn(function(h){return!h}),Xe(function(){})),this.closedStart=this._animationStarted.pipe(fn(function(h){return h.fromState!==h.toState&&"void"===h.toState}),LD(void 0)),this._destroyed=new Pe,this.onPositionChanged=new Dt,this._modeChanged=new Pe,this.openedChange.subscribe(function(h){h?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus(c._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){is(c._elementRef.nativeElement,"keydown").pipe(fn(function(h){return 27===h.keyCode&&!c.disableClose&&!w0(h)}),rn(c._destroyed)).subscribe(function(h){return c._ngZone.run(function(){c.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe(D0(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,_=h.toState;(0===_.indexOf("open")&&"void"===v||"void"===_&&0===v.indexOf("open"))&&c.openedChange.emit(c._opened)})}return f(r,[{key:"position",get:function(){return this._position},set:function(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(n){this._disableClose=Rt(n)}},{key:"autoFocus",get:function(){var n=this._autoFocus;return null==n?"side"===this.mode?"dialog":"first-tabbable":n},set:function(n){("true"===n||"false"===n||null==n)&&(n=Rt(n)),this._autoFocus=n}},{key:"opened",get:function(){return this._opened},set:function(n){this.toggle(Rt(n))}},{key:"_forceFocus",value:function(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(function(){n.addEventListener("blur",function(){return n.removeAttribute("tabindex")}),n.addEventListener("mousedown",function(){return n.removeAttribute("tabindex")})})),n.focus(i)}},{key:"_focusByCssSelector",value:function(n,i){var a=this._elementRef.nativeElement.querySelector(n);a&&this._forceFocus(a,i)}},{key:"_takeFocus",value:function(){var n=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(a){!a&&"function"==typeof n._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var n;this._focusTrap&&this._focusTrap.destroy(),null===(n=this._anchor)||void 0===n||n.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(n){return this.toggle(!0,n)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;n&&i&&(this._openedVia=i);var a=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),a}},{key:"_setOpen",value:function(n,i,a){var o=this;return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(a)),this._updateFocusTrapState(),new Promise(function(s){o.openedChange.pipe(Yn(1)).subscribe(function(u){return s(u?"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:"_updatePositionInParent",value:function(n){var i=this._elementRef.nativeElement,a=i.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),a.insertBefore(this._anchor,i)),a.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(R0),B(Mu),B(Hn),B(st),B(jp),B(ot,8),B(gg,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,n){var i;1&t&&Tr(t8,5),2&t&&Ft(i=Pt())&&(n._content=i.first)},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,n){1&t&&qs("@transform.start",function(a){return n._animationStarted.next(a)})("@transform.done",function(a){return n._animationEnd.next(a)}),2&t&&(Kt("align",null),Qs("@transform",n._animationState),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.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:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),pe(0,"div",0,1),jt(2),ge())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),BD=function(){var e=function(){function r(t,n,i,a,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;d(this,r),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new YC,this.backdropClick=new Dt,this._destroyed=new Pe,this._doCheckSubject=new Pe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe,t&&t.change.pipe(rn(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(rn(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return f(r,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(n){this._autosize=Rt(n)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(n){this._backdropOverride=null==n?null:Rt(n)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var n=this;this._allDrawers.changes.pipe(ua(this._allDrawers),rn(this._destroyed)).subscribe(function(i){n._drawers.reset(i.filter(function(a){return!a._container||a._container===n})),n._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ua(null)).subscribe(function(){n._validateDrawers(),n._drawers.forEach(function(i){n._watchDrawerToggle(i),n._watchDrawerPosition(i),n._watchDrawerMode(i)}),(!n._drawers.length||n._isDrawerOpen(n._start)||n._isDrawerOpen(n._end))&&n.updateContentMargins(),n._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){n._doCheckSubject.pipe(Zp(10),rn(n._destroyed)).subscribe(function(){return n.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(n){return n.open()})}},{key:"close",value:function(){this._drawers.forEach(function(n){return n.close()})}},{key:"updateContentMargins",value:function(){var n=this,i=0,a=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var o=this._left._getWidth();i+=o,a-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)a+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();a+=s,i-=s}a=a||null,((i=i||null)!==this._contentMargins.left||a!==this._contentMargins.right)&&(this._contentMargins={left:i,right:a},this._ngZone.run(function(){return n._contentMarginChanges.next(n._contentMargins)}))}},{key:"ngDoCheck",value:function(){var n=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return n._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(n){var i=this;n._animationStarted.pipe(fn(function(a){return a.fromState!==a.toState}),rn(this._drawers.changes)).subscribe(function(a){"open-instant"!==a.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(rn(this._drawers.changes)).subscribe(function(){return i._setContainerClass(n.opened)})}},{key:"_watchDrawerPosition",value:function(n){var i=this;!n||n.onPositionChanged.pipe(rn(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(n){var i=this;n&&n._modeChanged.pipe(rn(Qa(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(n){var i=this._element.nativeElement.classList,a="mat-drawer-container-has-open";n?i.add(a):i.remove(a)}},{key:"_validateDrawers",value:function(){var n=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?n._end=i:n._start=i}),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 n=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&n._canHaveBackdrop(i)}).forEach(function(i){return i._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(n){return"side"!==n.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(n){return null!=n&&n.opened}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(sa,8),B(Ye),B(st),B(gr),B(eg),B(d8),B(gi,8))},e.\u0275cmp=Ht({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,fd,5),Pn(i,VD,5)),2&t&&(Ft(a=Pt())&&(n._content=a.first),Ft(a=Pt())&&(n._allDrawers=a))},viewQuery:function(t,n){var i;1&t&&Tr(fd,5),2&t&&Ft(i=Pt())&&(n._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[At([{provide:gg,useExisting:e}])],ngContentSelectors:a8,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,n){1&t&&(ir(i8),$e(0,n8,1,2,"div",0),jt(1),jt(2,1),$e(3,r8,2,0,"mat-drawer-content",1)),2&t&&(xe("ngIf",n.hasBackdrop),ke(3),xe("ngIf",!n._content))},directives:[fd,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),HD=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){return d(this,n),t.call(this,i,a,o,s,u)}return f(n)}(fd);return e.\u0275fac=function(t){return new(t||e)(B(gr),B(Tt(function(){return UD})),B(Ye),B(td),B(st))},e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,n){2&t&&xi("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[At([{provide:Fu,useExisting:e}]),Re],ngContentSelectors:dd,decls:1,vars:0,template:function(t,n){1&t&&(ir(),jt(0))},encapsulation:2,changeDetection:0}),e}(),jD=function(){var e=function(r){p(n,r);var t=y(n);function n(){var i;return d(this,n),(i=t.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return f(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Rt(a)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Du(a)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Du(a)}}]),n}(VD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,n){2&t&&(Kt("align",null),xi("top",n.fixedInViewport?n.fixedTopGap:null,"px")("bottom",n.fixedInViewport?n.fixedBottomGap:null,"px"),It("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened)("mat-sidenav-fixed",n.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Re],ngContentSelectors:dd,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,n){1&t&&(ir(),pe(0,"div",0,1),jt(2),ge())},directives:[Fu],encapsulation:2,data:{animation:[ND.transformDrawer]},changeDetection:0}),e}(),UD=function(){var e=function(r){p(n,r);var t=y(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n)}(BD);return e.\u0275fac=function(){var r;return function(n){return(r||(r=qe(e)))(n||e)}}(),e.\u0275cmp=Ht({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,n,i){var a;1&t&&(Pn(i,HD,5),Pn(i,jD,5)),2&t&&(Ft(a=Pt())&&(n._content=a.first),Ft(a=Pt())&&(n._allDrawers=a))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,n){2&t&&It("mat-drawer-container-explicit-backdrop",n._backdropOverride)},exportAs:["matSidenavContainer"],features:[At([{provide:gg,useExisting:e}]),Re],ngContentSelectors:l8,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,n){1&t&&(ir(u8),$e(0,o8,1,2,"div",0),jt(1),jt(2,1),$e(3,s8,2,0,"mat-sidenav-content",1)),2&t&&(xe("ngIf",n.hasBackdrop),ke(3),xe("ngIf",!n._content))},directives:[HD,Jr],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),e}(),GD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[dc,an,nd],nd,an]}),e}();function zD(){for(var e=arguments.length,r=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:en;return function(n){WD(r,function(){for(var i=e.length,a=new Array(i),o=i,s=i,u=function(h){WD(r,function(){var v=In(e[h],r),_=!1;v.subscribe(zt(n,function(O){a[h]=O,_||(_=!0,s--),s||n.next(t(a.slice()))},function(){--o||n.complete()}))},n)},l=0;l visible",Pi("150ms cubic-bezier(0, 0, 0.2, 1)")),ia("* => void, * => hidden",Pi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ln({opacity:0})))])},k8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u){var l;return d(this,n),(l=t.call(this))._ngZone=i,l._elementRef=a,l._changeDetectorRef=o,l._platform=s,l.snackBarConfig=u,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new Pe,l._onExit=new Pe,l._onEnter=new Pe,l._animationState="void",l.attachDomPortal=function(c){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(c)},l._live="assertive"!==u.politeness||u.announcementMessage?"off"===u.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return f(n,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var s=a.toState;if(("void"===s&&"void"!==a.fromState||"hidden"===s)&&this._completeExit(),"visible"===s){var u=this._onEnter;this._ngZone.run(function(){u.next(),u.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Yn(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,o=this.snackBarConfig.panelClass;o&&(Array.isArray(o)?o.forEach(function(s){return a.classList.add(s)}):a.classList.add(o)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var o=a._elementRef.nativeElement.querySelector("[aria-hidden]"),s=a._elementRef.nativeElement.querySelector("[aria-live]");if(o&&s){var u=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&o.contains(document.activeElement)&&(u=document.activeElement),o.removeAttribute("aria-hidden"),s.appendChild(o),null==u||u.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),n}(rd);return e.\u0275fac=function(t){return new(t||e)(B(st),B(Ye),B(gr),B(Hn),B(hd))},e.\u0275cmp=Ht({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var i;1&t&&Tr(id,7),2&t&&Ft(i=Pt())&&(n._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&qs("@state.done",function(a){return n.onAnimationEnd(a)}),2&t&&Qs("@state",n._animationState)},features:[Re],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(pe(0,"div",0),$e(1,_8,0,0,"ng-template",1),ge(),Xt(2,"div")),2&t&&(ke(2),Kt("aria-live",n._live)("role",n._role))},directives:[id],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:[E8.snackBarState]}}),e}(),yg=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[vD,rg,dc,qp,an],an]}),e}(),$D=new Ne("mat-snack-bar-default-options",{providedIn:"root",factory:function w8(){return new hd}}),S8=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return f(r,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,i){return this._attach(n,i)}},{key:"openFromTemplate",value:function(n,i){return this._attach(n,i)}},{key:"open",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=Object.assign(Object.assign({},this._defaultConfig),a);return o.data={message:n,action:i},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,i){var o=qt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:hd,useValue:i}]}),s=new Pu(this.snackBarContainerComponent,i.viewContainerRef,o),u=n.attach(s);return u.instance.snackBarConfig=i,u.instance}},{key:"_attach",value:function(n,i){var a=this,o=Object.assign(Object.assign(Object.assign({},new hd),this._defaultConfig),i),s=this._createOverlay(o),u=this._attachSnackBarContainer(s,o),l=new mg(u,s);if(n instanceof $r){var c=new ng(n,null,{$implicit:o.data,snackBarRef:l});l.instance=u.attachTemplatePortal(c)}else{var h=this._createInjector(o,l),v=new Pu(n,void 0,h),_=u.attachComponentPortal(v);l.instance=_.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(rn(s.detachments())).subscribe(function(O){s.overlayElement.classList.toggle(a.handsetCssClass,O.matches)}),o.announcementMessage&&u._onAnnounce.subscribe(function(){a._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,i){var a=this;n.afterDismissed().subscribe(function(){a._openedSnackBarRef==n&&(a._openedSnackBarRef=null),i.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),i.duration&&i.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(n){var i=new ag;i.direction=n.direction;var a=this._overlay.position().global(),o="rtl"===n.direction,s="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!o||"end"===n.horizontalPosition&&o,u=!s&&"center"!==n.horizontalPosition;return s?a.left("0"):u?a.right("0"):a.centerHorizontally(),"top"===n.verticalPosition?a.top("0"):a.bottom("0"),i.positionStrategy=a,this._overlay.create(i)}},{key:"_createInjector",value:function(n,i){return qt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:mg,useValue:i},{provide:YD,useValue:n.data}]})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(as),le(P0),le(qt),le(KD),le(e,12),le($D))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),_g=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o,s,u,l){var c;return d(this,n),(c=t.call(this,i,a,o,s,u,l)).simpleSnackBarComponent=C8,c.snackBarContainerComponent=k8,c.handsetCssClass="mat-snack-bar-handset",c}return f(n)}(S8);return e.\u0275fac=function(t){return new(t||e)(le(as),le(P0),le(qt),le(KD),le(e,12),le($D))},e.\u0275prov=we({token:e,factory:e.\u0275fac,providedIn:yg}),e}(),D8=["*",[["mat-toolbar-row"]]],A8=["*","mat-toolbar-row"],x8=Tu(function(){return f(function e(r){d(this,e),this._elementRef=r})}()),M8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),T8=function(){var e=function(r){p(n,r);var t=y(n);function n(i,a,o){var s;return d(this,n),(s=t.call(this,i))._platform=a,s._document=o,s}return f(n,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x8);return e.\u0275fac=function(t){return new(t||e)(B(Ye),B(Hn),B(ot))},e.\u0275cmp=Ht({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,i){var a;1&t&&Pn(i,M8,5),2&t&&Ft(a=Pt())&&(n._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&It("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Re],ngContentSelectors:A8,decls:2,vars:0,template:function(t,n){1&t&&(ir(D8),jt(0),jt(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}(),XD=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[an],an]}),e}(),R8=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({imports:[[qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg],qp,GD,XD,xD,RD,W0,sd,mD,PD,eD,yg]}),e}(),vd=N(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ZD(){return Yt(function(e,r){var t=null;e._refCount++;var n=zt(r,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)t=null;else{var i=e._connection,a=t;t=null,i&&(!a||i===a)&&i.unsubscribe(),r.unsubscribe()}});e.subscribe(n),n.closed||(t=e.connect())})}var O8=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this)).source=n,a.subjectFactory=i,a._subject=null,a._refCount=0,a._connection=null,fa(n)&&(a.lift=n.lift),a}return f(t,[{key:"_subscribe",value:function(i){return this.getSubject().subscribe(i)}},{key:"getSubject",value:function(){var i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"_teardown",value:function(){this._refCount=0;var i=this._connection;this._subject=this._connection=null,null==i||i.unsubscribe()}},{key:"connect",value:function(){var i=this,a=this._connection;if(!a){a=this._connection=new F;var o=this.getSubject();a.add(this.source.subscribe(zt(o,void 0,function(){i._teardown(),o.complete()},function(s){i._teardown(),o.error(s)},function(){return i._teardown()}))),a.closed&&(this._connection=null,a=F.EMPTY)}return a}},{key:"refCount",value:function(){return ZD()(this)}}]),t}(ct);function ja(e,r){return Yt(function(t,n){var i=null,a=0,o=!1,s=function(){return o&&!i&&n.complete()};t.subscribe(zt(n,function(u){null==i||i.unsubscribe();var l=0,c=a++;or(e(u,c)).subscribe(i=zt(n,function(h){return n.next(r?r(u,h,c,l++):h)},function(){i=null,s()}))},function(){o=!0,s()}))})}function I8(e,r,t,n,i){return function(a,o){var s=t,u=r,l=0;a.subscribe(zt(o,function(c){var h=l++;u=s?e(u,c,h):(s=!0,c),n&&o.next(u)},i&&function(){s&&o.next(u),o.complete()}))}}function JD(e,r){return Yt(I8(e,r,arguments.length>=2,!0))}function bg(e){return e<=0?function(){return ri}:Yt(function(r,t){var n=[];r.subscribe(zt(t,function(i){n.push(i),e0&&void 0!==arguments[0]?arguments[0]:F8;return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){return n?t.complete():t.error(e())}))})}function F8(){return new vd}function tA(e){return Yt(function(r,t){var n=!1;r.subscribe(zt(t,function(i){n=!0,t.next(i)},function(){n||t.next(e),t.complete()}))})}function ss(e,r){var t=arguments.length>=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,Yn(1),t?tA(r):eA(function(){return new vd}))}}var Bi=f(function e(r,t){d(this,e),this.id=r,this.url=t}),Cg=function(e){p(t,e);var r=y(t);function t(n,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return d(this,t),(a=r.call(this,n,i)).navigationTrigger=o,a.restoredState=s,a}return f(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),Vu=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).urlAfterRedirects=a,o}return f(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Bi),nA=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).reason=a,o}return f(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Bi),L8=function(e){p(t,e);var r=y(t);function t(n,i,a){var o;return d(this,t),(o=r.call(this,n,i)).error=a,o}return f(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Bi),N8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),V8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),B8=function(e){p(t,e);var r=y(t);function t(n,i,a,o,s){var u;return d(this,t),(u=r.call(this,n,i)).urlAfterRedirects=a,u.state=o,u.shouldActivate=s,u}return f(t,[{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,")")}}]),t}(Bi),H8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),j8=function(e){p(t,e);var r=y(t);function t(n,i,a,o){var s;return d(this,t),(s=r.call(this,n,i)).urlAfterRedirects=a,s.state=o,s}return f(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Bi),rA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),iA=function(){function e(r){d(this,e),this.route=r}return f(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),U8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),G8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),z8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),W8=function(){function e(r){d(this,e),this.snapshot=r}return f(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),aA=function(){function e(r,t,n){d(this,e),this.routerEvent=r,this.position=t,this.anchor=n}return f(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),_t="primary",q8=function(){function e(r){d(this,e),this.params=r||{}}return f(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function us(e){return new q8(e)}var oA="ngNavigationCancelingError";function Eg(e){var r=Error("NavigationCancelingError: "+e);return r[oA]=!0,r}function Q8(e,r,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(r.hasChildren()||n.length0?e[e.length-1]:null}function jn(e,r){for(var t in e)e.hasOwnProperty(t)&&r(e[t],t)}function _i(e){return Ah(e)?e:Ws(e)?In(Promise.resolve(e)):Je(e)}var X8={exact:function fA(e,r,t){if(!Ga(e.segments,r.segments)||!pd(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children)if(!e.children[n]||!fA(e.children[n],r.children[n],t))return!1;return!0},subset:hA},cA={exact:function Z8(e,r){return yi(e,r)},subset:function J8(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(function(t){return sA(e[t],r[t])})},ignored:function(){return!0}};function dA(e,r,t){return X8[t.paths](e.root,r.root,t.matrixParams)&&cA[t.queryParams](e.queryParams,r.queryParams)&&!("exact"===t.fragment&&e.fragment!==r.fragment)}function hA(e,r,t){return vA(e,r,r.segments,t)}function vA(e,r,t,n){if(e.segments.length>t.length){var i=e.segments.slice(0,t.length);return!(!Ga(i,t)||r.hasChildren()||!pd(i,t,n))}if(e.segments.length===t.length){if(!Ga(e.segments,t)||!pd(e.segments,t,n))return!1;for(var a in r.children)if(!e.children[a]||!hA(e.children[a],r.children[a],n))return!1;return!0}var o=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!!(Ga(e.segments,o)&&pd(e.segments,o,n)&&e.children[_t])&&vA(e.children[_t],r,s,n)}function pd(e,r,t){return r.every(function(n,i){return cA[t](e[i].parameters,n.parameters)})}var Ua=function(){function e(r,t,n){d(this,e),this.root=r,this.queryParams=t,this.fragment=n}return f(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return nz.serialize(this)}}]),e}(),kt=function(){function e(r,t){var n=this;d(this,e),this.segments=r,this.children=t,this.parent=null,jn(t,function(i,a){return i.parent=n})}return f(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return gd(this)}}]),e}(),Bu=function(){function e(r,t){d(this,e),this.path=r,this.parameters=t}return f(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=us(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return _A(this)}}]),e}();function Ga(e,r){return e.length===r.length&&e.every(function(t,n){return t.path===r[n].path})}var pA=f(function e(){d(this,e)}),gA=function(){function e(){d(this,e)}return f(e,[{key:"parse",value:function(t){var n=new dz(t);return new Ua(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(Hu(t.root,!0)),i=function az(e){var r=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(i){return"".concat(md(t),"=").concat(md(i))}).join("&"):"".concat(md(t),"=").concat(md(n))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function rz(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(i).concat(a)}}]),e}(),nz=new gA;function gd(e){return e.segments.map(function(r){return _A(r)}).join("/")}function Hu(e,r){if(!e.hasChildren())return gd(e);if(r){var t=e.children[_t]?Hu(e.children[_t],!1):"",n=[];return jn(e.children,function(a,o){o!==_t&&n.push("".concat(o,":").concat(Hu(a,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var i=function tz(e,r){var t=[];return jn(e.children,function(n,i){i===_t&&(t=t.concat(r(n,i)))}),jn(e.children,function(n,i){i!==_t&&(t=t.concat(r(n,i)))}),t}(e,function(a,o){return o===_t?[Hu(e.children[_t],!1)]:["".concat(o,":").concat(Hu(a,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[_t]?"".concat(gd(e),"/").concat(i[0]):"".concat(gd(e),"/(").concat(i.join("//"),")")}function mA(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(e){return mA(e).replace(/%3B/gi,";")}function kg(e){return mA(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yd(e){return decodeURIComponent(e)}function yA(e){return yd(e.replace(/\+/g,"%20"))}function _A(e){return"".concat(kg(e.path)).concat(function iz(e){return Object.keys(e).map(function(r){return";".concat(kg(r),"=").concat(kg(e[r]))}).join("")}(e.parameters))}var oz=/^[^\/()?;=#]+/;function _d(e){var r=e.match(oz);return r?r[0]:""}var sz=/^[^=?&#]+/,lz=/^[^&#]+/,dz=function(){function e(r){d(this,e),this.url=r,this.remaining=r}return f(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(i[_t]=new kt(t,n)),i}},{key:"parseSegment",value:function(){var t=_d(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Bu(yd(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=_d(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=_d(this.remaining);a&&this.capture(i=a)}t[yd(n)]=yd(i)}}},{key:"parseQueryParam",value:function(t){var n=function uz(e){var r=e.match(sz);return r?r[0]:""}(this.remaining);if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var a=function cz(e){var r=e.match(lz);return r?r[0]:""}(this.remaining);a&&this.capture(i=a)}var o=yA(n),s=yA(i);if(t.hasOwnProperty(o)){var u=t[o];Array.isArray(u)||(t[o]=u=[u]),u.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=_d(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=_t);var s=this.parseChildren();n[o]=1===Object.keys(s).length?s[_t]:new kt([],s),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),bA=function(){function e(r){d(this,e),this._root=r}return f(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=wg(t,this._root);return n?n.children.map(function(i){return i.value}):[]}},{key:"firstChild",value:function(t){var n=wg(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Sg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return Sg(t,this._root).map(function(n){return n.value})}}]),e}();function wg(e,r){if(e===r.value)return r;var n,t=Y(r.children);try{for(t.s();!(n=t.n()).done;){var a=wg(e,n.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function Sg(e,r){if(e===r.value)return[r];var n,t=Y(r.children);try{for(t.s();!(n=t.n()).done;){var a=Sg(e,n.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var Hi=function(){function e(r,t){d(this,e),this.value=r,this.children=t}return f(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ls(e){var r={};return e&&e.children.forEach(function(t){return r[t.value.outlet]=t}),r}var CA=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,n)).snapshot=i,Dg(Q(a),n),a}return f(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(bA);function EA(e,r){var t=function fz(e,r){var o=new bd([],{},{},"",{},_t,r,null,e.root,-1,{});return new wA("",new Hi(o,[]))}(e,r),n=new _r([new Bu("",{})]),i=new _r({}),a=new _r({}),o=new _r({}),s=new _r(""),u=new za(n,i,o,s,a,_t,r,t.root);return u.snapshot=t.root,new CA(new Hi(u,[]),t)}var za=function(){function e(r,t,n,i,a,o,s,u){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return f(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Xe(function(t){return us(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Xe(function(t){return us(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function kA(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==r)for(n=t.length-1;n>=1;){var i=t[n],a=t[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return hz(t.slice(n))}function hz(e){return e.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var bd=function(){function e(r,t,n,i,a,o,s,u,l,c,h){d(this,e),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return f(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=us(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=us(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(i){return i.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),wA=function(e){p(t,e);var r=y(t);function t(n,i){var a;return d(this,t),(a=r.call(this,i)).url=n,Dg(Q(a),i),a}return f(t,[{key:"toString",value:function(){return SA(this._root)}}]),t}(bA);function Dg(e,r){r.value._routerState=e,r.children.forEach(function(t){return Dg(e,t)})}function SA(e){var r=e.children.length>0?" { ".concat(e.children.map(SA).join(", ")," } "):"";return"".concat(e.value).concat(r)}function Ag(e){if(e.snapshot){var r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,yi(r.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),r.fragment!==t.fragment&&e.fragment.next(t.fragment),yi(r.params,t.params)||e.params.next(t.params),function Y8(e,r){if(e.length!==r.length)return!1;for(var t=0;ti;){if(a-=i,!(n=n.parent))throw new Error("Invalid number of '../'");i=n.segments.length}return new Tg(n,!1,i-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,e.numberOfDoubleDots)}(a,r,e),s=o.processChildren?Ed(o.segmentGroup,o.index,a.commands):xA(o.segmentGroup,o.index,a.commands);return Mg(o.segmentGroup,s,r,n,i)}function Cd(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Uu(e){return"object"==typeof e&&null!=e&&e.outlets}function Mg(e,r,t,n,i){var a={};return n&&jn(n,function(o,s){a[s]=Array.isArray(o)?o.map(function(u){return"".concat(u)}):"".concat(o)}),new Ua(t.root===e?r:DA(t.root,e,r),a,i)}function DA(e,r,t){var n={};return jn(e.children,function(i,a){n[a]=i===r?t:DA(i,r,t)}),new kt(e.segments,n)}var AA=function(){function e(r,t,n){if(d(this,e),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Cd(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(Uu);if(i&&i!==lA(n))throw new Error("{outlets:{}} has to be the last command")}return f(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Tg=f(function e(r,t,n){d(this,e),this.segmentGroup=r,this.processChildren=t,this.index=n});function xA(e,r,t){if(e||(e=new kt([],{})),0===e.segments.length&&e.hasChildren())return Ed(e,r,t);var n=function Ez(e,r,t){for(var n=0,i=r,a={match:!1,pathIndex:0,commandIndex:0};i=t.length)return a;var o=e.segments[i],s=t[n];if(Uu(s))break;var u="".concat(s),l=n0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!TA(u,l,o))return a;n+=2}else{if(!TA(u,{},o))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},FA):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Q8)(t,e,r);if(!a)return Object.assign({},FA);var o={};jn(a.posParams,function(u,l){o[l]=u.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(n=a.posParams)&&void 0!==n?n:{}}}function wd(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Vz(e,t,n)){var a=new kt(r,Nz(e,r,n,new kt(t,e.children)));return a._sourceSegment=e,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Bz(e,t,n)){var o=new kt(e.segments,Lz(e,r,t,n,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new kt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function Lz(e,r,t,n,i,a){var u,o={},s=Y(n);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(Sd(e,t,l)&&!i[Lr(l)]){var c=new kt([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:r.length,o[Lr(l)]=c}}}catch(h){s.e(h)}finally{s.f()}return Object.assign(Object.assign({},i),o)}function Nz(e,r,t,n){var i={};i[_t]=n,n._sourceSegment=e,n._segmentIndexShift=r.length;var o,a=Y(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Lr(s)!==_t){var u=new kt([],{});u._sourceSegment=e,u._segmentIndexShift=r.length,i[Lr(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}function Vz(e,r,t){return t.some(function(n){return Sd(e,r,n)&&Lr(n)!==_t})}function Bz(e,r,t){return t.some(function(n){return Sd(e,r,n)})}function Sd(e,r,t){return(!(e.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function PA(e,r,t,n){return!!(Lr(e)===n||n!==_t&&Sd(r,t,e))&&("**"===e.path||kd(r,e,t).matched)}function LA(e,r,t){return 0===r.length&&!e.children[t]}var qu=f(function e(r){d(this,e),this.segmentGroup=r||null}),NA=f(function e(r){d(this,e),this.urlTree=r});function Dd(e){return mi(new qu(e))}function VA(e){return mi(new NA(e))}function Hz(e){return mi(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}var Gz=function(){function e(r,t,n,i,a){d(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(Mi)}return f(e,[{key:"apply",value:function(){var t=this,n=wd(this.urlTree.root,[],[],this.config).segmentGroup,i=new kt(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,i,_t).pipe(Xe(function(s){return t.createUrlTree(Pg(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(vn(function(s){if(s instanceof NA)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof qu?t.noMatchError(s):s}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_t).pipe(Xe(function(o){return n.createUrlTree(Pg(o),t.queryParams,t.fragment)})).pipe(vn(function(o){throw o instanceof qu?n.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,i){var a=t.segments.length>0?new kt([],S({},_t,t)):t;return new Ua(a,n,i)}},{key:"expandSegmentGroup",value:function(t,n,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,n,i).pipe(Xe(function(o){return new kt([],o)})):this.expandSegment(t,i,n,i.segments,a,!0)}},{key:"expandChildren",value:function(t,n,i){for(var a=this,o=[],s=0,u=Object.keys(i.children);s=2;return function(n){return n.pipe(e?fn(function(i,a){return e(i,a,n)}):en,bg(1),t?tA(r):eA(function(){return new vd}))}}())}},{key:"expandSegment",value:function(t,n,i,a,o,s){var u=this;return In(i).pipe(qo(function(l){return u.expandSegmentAgainstRoute(t,n,i,l,a,o,s).pipe(vn(function(h){if(h instanceof qu)return Je(null);throw h}))}),ss(function(l){return!!l}),vn(function(l,c){if(l instanceof vd||"EmptyError"===l.name){if(LA(n,a,o))return Je(new kt([],{}));throw new qu(n)}throw l}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,i,a,o,s,u){return PA(a,n,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,n,a,o,s):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s):Dd(n):Dd(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,i,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,i,a){var o=this,s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VA(s):this.lineralizeSegments(i,s).pipe(Sn(function(u){var l=new kt(u,{});return o.expandSegment(t,l,n,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,i,a,o,s){var u=this,l=kd(n,a,o),h=l.consumedSegments,v=l.remainingSegments,_=l.positionalParamSegments;if(!l.matched)return Dd(n);var O=this.applyRedirectCommands(h,a.redirectTo,_);return a.redirectTo.startsWith("/")?VA(O):this.lineralizeSegments(a,O).pipe(Sn(function(J){return u.expandSegment(t,n,i,J.concat(v),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,i,a,o){var s=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?Je(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(Xe(function(O){return i._loadedConfig=O,new kt(a,{})})):Je(new kt(a,{}));var l=kd(n,i,a),h=l.consumedSegments,v=l.remainingSegments;return l.matched?this.getChildConfig(t,i,a).pipe(Sn(function(O){var J=O.module,te=O.routes,ue=wd(n,h,v,te),ee=ue.segmentGroup,ye=ue.slicedSegments,_e=new kt(ee.segments,ee.children);if(0===ye.length&&_e.hasChildren())return s.expandChildren(J,te,_e).pipe(Xe(function(bt){return new kt(h,bt)}));if(0===te.length&&0===ye.length)return Je(new kt(h,{}));var Ie=Lr(i)===o;return s.expandSegment(J,_e,te,ye,Ie?_t:o,!0).pipe(Xe(function(bt){return new kt(h.concat(bt.segments),bt.children)}))})):Dd(n)}},{key:"getChildConfig",value:function(t,n,i){var a=this;return n.children?Je(new Og(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?Je(n._loadedConfig):this.runCanLoadGuards(t.injector,n,i).pipe(Sn(function(o){return o?a.configLoader.load(t.injector,n).pipe(Xe(function(s){return n._loadedConfig=s,s})):function jz(e){return mi(Eg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}(n)})):Je(new Og([],t))}},{key:"runCanLoadGuards",value:function(t,n,i){var a=this,o=n.canLoad;if(!o||0===o.length)return Je(!0);var s=o.map(function(u){var c,l=t.get(u);if(function xz(e){return e&&la(e.canLoad)}(l))c=l.canLoad(n,i);else{if(!la(l))throw new Error("Invalid CanLoad guard");c=l(n,i)}return _i(c)});return Je(s).pipe(zu(),Bn(function(u){if(Wa(u)){var l=Eg('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw l.url=u,l}}),Xe(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(t,n){for(var i=[],a=n.root;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return Je(i);if(a.numberOfChildren>1||!a.children[_t])return Hz(t.redirectTo);a=a.children[_t]}}},{key:"applyRedirectCommands",value:function(t,n,i){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,i,a){var o=this.createSegmentGroup(t,n.root,i,a);return new Ua(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var i={};return jn(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);i[o]=n[u]}else i[o]=a}),i}},{key:"createSegmentGroup",value:function(t,n,i,a){var o=this,s=this.createSegments(t,n.segments,i,a),u={};return jn(n.children,function(l,c){u[c]=o.createSegmentGroup(t,l,i,a)}),new kt(s,u)}},{key:"createSegments",value:function(t,n,i,a){var o=this;return n.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,i)})}},{key:"findPosParam",value:function(t,n,i){var a=i[n.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return a}},{key:"findOrReturn",value:function(t,n){var o,i=0,a=Y(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return n.splice(i),s;i++}}catch(u){a.e(u)}finally{a.f()}return t}}]),e}();function Pg(e){for(var r={},t=0,n=Object.keys(e.children);t0||o.hasChildren())&&(r[i]=o)}return function zz(e){if(1===e.numberOfChildren&&e.children[_t]){var r=e.children[_t];return new kt(e.segments.concat(r.segments),r.children)}return e}(new kt(e.segments,r))}var BA=f(function e(r){d(this,e),this.path=r,this.route=this.path[this.path.length-1]}),Ad=f(function e(r,t){d(this,e),this.component=r,this.route=t});function qz(e,r,t){var n=e._root;return Ku(n,r?r._root:null,t,[n.value])}function xd(e,r,t){var n=function Qz(e){if(!e)return null;for(var r=e.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(n?n.module.injector:t).get(e)}function Ku(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=ls(r);return e.children.forEach(function(o){Yz(o,a[o.value.outlet],t,n.concat([o.value]),i),delete a[o.value.outlet]}),jn(a,function(o,s){return Qu(o,t.getContext(s),i)}),i}function Yz(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=$z(o,a,a.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new BA(n)):(a.data=o.data,a._resolvedData=o._resolvedData),Ku(e,r,a.component?s?s.children:null:t,n,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ad(s.outlet.component,o))}else o&&Qu(r,s,i),i.canActivateChecks.push(new BA(n)),Ku(e,null,a.component?s?s.children:null:t,n,i);return i}function $z(e,r,t){if("function"==typeof t)return t(e,r);switch(t){case"pathParamsChange":return!Ga(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Ga(e.url,r.url)||!yi(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xg(e,r)||!yi(e.queryParams,r.queryParams);default:return!xg(e,r)}}function Qu(e,r,t){var n=ls(e),i=e.value;jn(n,function(a,o){Qu(a,i.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new Ad(i.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,i))}var a6=f(function e(){d(this,e)});function HA(e){return new ct(function(r){return r.error(e)})}var s6=function(){function e(r,t,n,i,a,o){d(this,e),this.rootComponentType=r,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return f(e,[{key:"recognize",value:function(){var t=wd(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,_t);if(null===n)return null;var i=new bd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},_t,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Hi(i,n),o=new wA(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var n=this,i=t.value,a=kA(i,this.paramsInheritanceStrategy);i.params=Object.freeze(a.params),i.data=Object.freeze(a.data),t.children.forEach(function(o){return n.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,i)}},{key:"processChildren",value:function(t,n){for(var i=[],a=0,o=Object.keys(n.children);a0?lA(i).parameters:{};o=new bd(i,l,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+i.length,WA(t))}else{var c=kd(n,t,i);if(!c.matched)return null;u=c.remainingSegments,o=new bd(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,zA(t),Lr(t),t.component,t,UA(n),GA(n)+s.length,WA(t))}var h=function l6(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),v=wd(n,s,u,h.filter(function(ee){return void 0===ee.redirectTo}),this.relativeLinkResolution),_=v.segmentGroup,O=v.slicedSegments;if(0===O.length&&_.hasChildren()){var J=this.processChildren(h,_);return null===J?null:[new Hi(o,J)]}if(0===h.length&&0===O.length)return[new Hi(o,[])];var te=Lr(t)===a,ue=this.processSegment(h,_,O,te?_t:a);return null===ue?null:[new Hi(o,ue)]}}]),e}();function jA(e){var i,r=[],t=new Set,n=Y(e);try{var a=function(){var v=i.value;if(!function c6(e){var r=e.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(v))return r.push(v),"continue";var O,_=r.find(function(J){return v.value.routeConfig===J.value.routeConfig});void 0!==_?((O=_.children).push.apply(O,E(v.children)),t.add(_)):r.push(v)};for(n.s();!(i=n.n()).done;)a()}catch(h){n.e(h)}finally{n.f()}var u,s=Y(t);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=jA(l.children);r.push(new Hi(l.value,c))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!t.has(h)})}function UA(e){for(var r=e;r._sourceSegment;)r=r._sourceSegment;return r}function GA(e){for(var r=e,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function zA(e){return e.data||{}}function WA(e){return e.resolve||{}}function qA(e){return[].concat(E(Object.keys(e)),E(Object.getOwnPropertySymbols(e)))}function Lg(e){return ja(function(r){var t=e(r);return t?In(t).pipe(Xe(function(){return r})):Je(r)})}var g6=f(function e(){d(this,e)}),m6=function(){function e(){d(this,e)}return f(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}(),y6=function(e){p(t,e);var r=y(t);function t(){return d(this,t),r.apply(this,arguments)}return f(t)}(m6),Ng=new Ne("ROUTES"),KA=function(){function e(r,t,n,i){d(this,e),this.injector=r,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return f(e,[{key:"load",value:function(t,n){var i=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var o=this.loadModuleFactory(n.loadChildren).pipe(Xe(function(s){i.onLoadEndListener&&i.onLoadEndListener(n);var u=s.create(t);return new Og(uA(u.injector.get(Ng,void 0,tt.Self|tt.Optional)).map(Fg),u)}),vn(function(s){throw n._loader$=void 0,s}));return n._loader$=new O8(o,function(){return new Pe}).pipe(ZD()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return _i(t()).pipe(Sn(function(i){return i instanceof HC?Je(i):In(n.compiler.compileModuleAsync(i))}))}}]),e}(),_6=f(function e(){d(this,e)}),b6=function(){function e(){d(this,e)}return f(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function C6(e){throw e}function E6(e,r,t){return r.parse("/")}function QA(e,r){return Je(null)}var k6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Tn=function(){var e=function(){function r(t,n,i,a,o,s,u){var l=this;d(this,r),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=a,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe,this.errorHandler=C6,this.malformedUriErrorHandler=E6,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:QA,afterPreactivation:QA},this.urlHandlingStrategy=new b6,this.routeReuseStrategy=new y6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Mi),this.console=o.get(EE);var v=o.get(st);this.isNgZoneEnabled=v instanceof st&&st.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function $8(){return new Ua(new kt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new KA(o,s,function(O){return l.triggerEvent(new rA(O))},function(O){return l.triggerEvent(new iA(O))}),this.routerState=EA(this.currentUrlTree,this.rootComponentType),this.transitions=new _r({id:0,targetPageId: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 f(r,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var i=this,a=this.events;return n.pipe(fn(function(o){return 0!==o.id}),Xe(function(o){return Object.assign(Object.assign({},o),{extractedUrl:i.urlHandlingStrategy.extract(o.rawUrl)})}),ja(function(o){var s=!1,u=!1;return Je(o).pipe(Bn(function(l){i.currentNavigation={id:l.id,initialUrl:l.currentRawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ja(function(l){var c=i.browserUrlTree.toString(),h=!i.navigated||l.extractedUrl.toString()!==c||c!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Md(l.source)&&(i.browserUrlTree=l.extractedUrl),Je(l).pipe(ja(function(Te){var Ie=i.transitions.getValue();return a.next(new Cg(Te.id,i.serializeUrl(Te.extractedUrl),Te.source,Te.restoredState)),Ie!==i.transitions.getValue()?ri:Promise.resolve(Te)}),function Wz(e,r,t,n){return ja(function(i){return function Uz(e,r,t,n,i){return new Gz(e,r,t,n,i).apply()}(e,r,t,i.extractedUrl,n).pipe(Xe(function(a){return Object.assign(Object.assign({},i),{urlAfterRedirects:a})}))})}(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),Bn(function(Te){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Te.urlAfterRedirects})}),function d6(e,r,t,n,i){return Sn(function(a){return function o6(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new s6(e,r,t,n,i,a).recognize();return null===o?HA(new a6):Je(o)}catch(s){return HA(s)}}(e,r,a.urlAfterRedirects,t(a.urlAfterRedirects),n,i).pipe(Xe(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(i.rootComponentType,i.config,function(Te){return i.serializeUrl(Te)},i.paramsInheritanceStrategy,i.relativeLinkResolution),Bn(function(Te){if("eager"===i.urlUpdateStrategy){if(!Te.extras.skipLocationChange){var Ie=i.urlHandlingStrategy.merge(Te.urlAfterRedirects,Te.rawUrl);i.setBrowserUrl(Ie,Te)}i.browserUrlTree=Te.urlAfterRedirects}var We=new N8(Te.id,i.serializeUrl(Te.extractedUrl),i.serializeUrl(Te.urlAfterRedirects),Te.targetSnapshot);a.next(We)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var J=l.extractedUrl,te=l.source,ue=l.restoredState,ee=l.extras,ye=new Cg(l.id,i.serializeUrl(J),te,ue);a.next(ye);var _e=EA(J,i.rootComponentType).snapshot;return Je(Object.assign(Object.assign({},l),{targetSnapshot:_e,urlAfterRedirects:J,extras:Object.assign(Object.assign({},ee),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=l.rawUrl,l.resolve(null),ri}),Lg(function(l){var O=l.extras;return i.hooks.beforePreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!O.skipLocationChange,replaceUrl:!!O.replaceUrl})}),Bn(function(l){var c=new V8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);i.triggerEvent(c)}),Xe(function(l){return Object.assign(Object.assign({},l),{guards:qz(l.targetSnapshot,l.currentSnapshot,i.rootContexts)})}),function Xz(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Je(Object.assign(Object.assign({},t),{guardsResult:!0})):function Zz(e,r,t,n){return In(e).pipe(Sn(function(i){return function i6(e,r,t,n,i){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return Je(!0);var o=a.map(function(s){var l,u=xd(s,r,i);if(function Rz(e){return e&&la(e.canDeactivate)}(u))l=_i(u.canDeactivate(e,r,t,n));else{if(!la(u))throw new Error("Invalid CanDeactivate guard");l=_i(u(e,r,t,n))}return l.pipe(ss())});return Je(o).pipe(zu())}(i.component,i.route,t,r,n)}),ss(function(i){return!0!==i},!0))}(s,n,i,e).pipe(Sn(function(u){return u&&function Az(e){return"boolean"==typeof e}(u)?function Jz(e,r,t,n){return In(r).pipe(qo(function(i){return ad(function t6(e,r){return null!==e&&r&&r(new U8(e)),Je(!0)}(i.route.parent,n),function e6(e,r){return null!==e&&r&&r(new z8(e)),Je(!0)}(i.route,n),function r6(e,r,t){var n=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(function(o){return function Kz(e){var r=e.routeConfig?e.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:e,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=i.map(function(o){return sg(function(){var s=o.guards.map(function(u){var c,l=xd(u,o.node,t);if(function Tz(e){return e&&la(e.canActivateChild)}(l))c=_i(l.canActivateChild(n,e));else{if(!la(l))throw new Error("Invalid CanActivateChild guard");c=_i(l(n,e))}return c.pipe(ss())});return Je(s).pipe(zu())})});return Je(a).pipe(zu())}(e,i.path,t),function n6(e,r,t){var n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||0===n.length)return Je(!0);var i=n.map(function(a){return sg(function(){var s,o=xd(a,r,t);if(function Mz(e){return e&&la(e.canActivate)}(o))s=_i(o.canActivate(r,e));else{if(!la(o))throw new Error("Invalid CanActivate guard");s=_i(o(r,e))}return s.pipe(ss())})});return Je(i).pipe(zu())}(e,i.route,t))}),ss(function(i){return!0!==i},!0))}(n,o,e,r):Je(u)}),Xe(function(u){return Object.assign(Object.assign({},t),{guardsResult:u})}))})}(i.ngModule.injector,function(l){return i.triggerEvent(l)}),Bn(function(l){if(Wa(l.guardsResult)){var c=Eg('Redirecting to "'.concat(i.serializeUrl(l.guardsResult),'"'));throw c.url=l.guardsResult,c}var h=new B8(l.id,i.serializeUrl(l.extractedUrl),i.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);i.triggerEvent(h)}),fn(function(l){return!!l.guardsResult||(i.restoreHistory(l),i.cancelNavigationTransition(l,""),!1)}),Lg(function(l){if(l.guards.canActivateChecks.length)return Je(l).pipe(Bn(function(c){var h=new H8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}),ja(function(c){var h=!1;return Je(c).pipe(function f6(e,r){return Sn(function(t){var n=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Je(t);var a=0;return In(i).pipe(qo(function(o){return function h6(e,r,t,n){return function v6(e,r,t,n){var i=qA(e);if(0===i.length)return Je({});var a={};return In(i).pipe(Sn(function(o){return function p6(e,r,t,n){var i=xd(e,r,n);return _i(i.resolve?i.resolve(r,t):i(r,t))}(e[o],r,t,n).pipe(Bn(function(s){a[o]=s}))}),bg(1),Sn(function(){return qA(a).length===i.length?Je(a):ri}))}(e._resolve,e,r,n).pipe(Xe(function(a){return e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),kA(e,t).resolve),null}))}(o.route,n,e,r)}),Bn(function(){return a++}),bg(1),Sn(function(o){return a===i.length?Je(t):ri}))})}(i.paramsInheritanceStrategy,i.ngModule.injector),Bn({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(c),i.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),Bn(function(c){var h=new j8(c.id,i.serializeUrl(c.extractedUrl),i.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);i.triggerEvent(h)}))}),Lg(function(l){var O=l.extras;return i.hooks.afterPreactivation(l.targetSnapshot,{navigationId:l.id,appliedUrlTree:l.extractedUrl,rawUrlTree:l.rawUrl,skipLocationChange:!!O.skipLocationChange,replaceUrl:!!O.replaceUrl})}),Xe(function(l){var c=function vz(e,r,t){var n=ju(e,r._root,t?t._root:void 0);return new CA(n,r)}(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return Object.assign(Object.assign({},l),{targetRouterState:c})}),Bn(function(l){i.currentUrlTree=l.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),i.routerState=l.targetRouterState,"deferred"===i.urlUpdateStrategy&&(l.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,l),i.browserUrlTree=l.urlAfterRedirects)}),function(r,t,n){return Xe(function(i){return new Sz(t,i.targetRouterState,i.currentRouterState,n).activate(r),i})}(i.rootContexts,i.routeReuseStrategy,function(l){return i.triggerEvent(l)}),Bn({next:function(){s=!0},complete:function(){s=!0}}),ED(function(){var l;if(!s&&!u){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(o,c)}(null===(l=i.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(i.currentNavigation=null)}),vn(function(l){if(u=!0,function K8(e){return e&&e[oA]}(l)){var c=Wa(l.url);c||(i.navigated=!0,i.restoreHistory(o,!0));var h=new nA(o.id,i.serializeUrl(o.extractedUrl),l.message);a.next(h),c?setTimeout(function(){var _=i.urlHandlingStrategy.merge(l.url,i.rawUrlTree),O={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Md(o.source)};i.scheduleNavigation(_,"imperative",null,O,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{i.restoreHistory(o,!0);var v=new L8(o.id,i.serializeUrl(o.extractedUrl),l);a.next(v);try{o.resolve(i.errorHandler(l))}catch(_){o.reject(_)}}return ri}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var a="popstate"===i.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},u=(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null;if(u){var l=Object.assign({},u);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}var c=n.parseUrl(i.url);n.scheduleNavigation(c,a,u,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){OA(n),this.config=n.map(Fg),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.relativeTo,o=i.queryParams,s=i.fragment,u=i.queryParamsHandling,l=i.preserveFragment,c=a||this.routerState.root,h=l?this.currentUrlTree.fragment:s,v=null;switch(u){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}return null!==v&&(v=this.removeEmptyProps(v)),mz(c,this.currentUrlTree,n,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Wa(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}},{key:"navigate",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return S6(n),this.navigateByUrl(this.createUrlTree(n,i),i)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}},{key:"isActive",value:function(n,i){var a;if(a=!0===i?Object.assign({},k6):!1===i?Object.assign({},w6):i,Wa(n))return dA(this.currentUrlTree,n,a);var o=this.parseUrl(n);return dA(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(i,a){var o=n[a];return null!=o&&(i[a]=o),i},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(i){n.navigated=!0,n.lastSuccessfulId=i.id,n.currentPageId=i.targetPageId,n.events.next(new Vu(i.id,n.serializeUrl(i.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,i.resolve(!0)},function(i){n.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(n,i,a,o,s){var u,l,c;if(this.disposed)return Promise.resolve(!1);var te,ue,ee,h=this.transitions.value,v=Md(i)&&h&&!Md(h.source),_=h.rawUrl.toString()===n.toString(),O=h.id===(null===(u=this.currentNavigation)||void 0===u?void 0:u.id);if(v&&_&&O)return Promise.resolve(!0);s?(te=s.resolve,ue=s.reject,ee=s.promise):ee=new Promise(function(Ie,We){te=Ie,ue=We});var _e,ye=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),_e=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):_e=0,this.setTransition({id:ye,targetPageId:_e,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:te,reject:ue,promise:ee,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ee.catch(function(Ie){return Promise.reject(Ie)})}},{key:"setBrowserUrl",value:function(n,i){var a=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(n){var a,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-n.targetPageId,u="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);u&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,i){var a=new nA(n.id,this.serializeUrl(n.extractedUrl),i);this.triggerEvent(a),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":i}:{navigationId:n}}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function S6(e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};d(this,r),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 f(r,[{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 n=this;return this.router.events.subscribe(function(i){i instanceof Cg?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=i.navigationTrigger,n.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Vu&&(n.lastId=i.id,n.scheduleScrollEvent(i,n.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(i){i instanceof aA&&(i.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,i){this.router.triggerEvent(new aA(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return e.\u0275fac=function(t){Us()},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),qa=new Ne("ROUTER_CONFIGURATION"),ZA=new Ne("ROUTER_FORROOT_GUARD"),M6=[Aa,{provide:pA,useClass:gA},{provide:Tn,useFactory:function P6(e,r,t,n,i,a){var o=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,l=new Tn(null,e,r,t,n,i,uA(a));return s&&(l.urlHandlingStrategy=s),u&&(l.routeReuseStrategy=u),L6(o,l),o.enableTracing&&l.events.subscribe(function(c){var h,v;null===(h=console.group)||void 0===h||h.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(v=console.groupEnd)||void 0===v||v.call(console)}),l},deps:[pA,Wu,Aa,qt,kE,Ng,qa,[_6,new Gr],[g6,new Gr]]},Wu,{provide:za,useFactory:function N6(e){return e.routerState.root},deps:[Tn]},XA,$A,x6,{provide:qa,useValue:{enableTracing:!1}}];function T6(){return new xE("Router",Tn)}var R6=function(){var e=function(){function r(t,n){d(this,r)}return f(r,null,[{key:"forRoot",value:function(n,i){return{ngModule:r,providers:[M6,JA(n),{provide:ZA,useFactory:F6,deps:[[Tn,new Gr,new fo]]},{provide:qa,useValue:i||{}},{provide:Ho,useFactory:I6,deps:[Da,[new Sl(fv),new Gr],qa]},{provide:Bg,useFactory:O6,deps:[Tn,MN,qa]},{provide:YA,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:$A},{provide:xE,multi:!0,useFactory:T6},[Hg,{provide:$h,multi:!0,useFactory:V6,deps:[Hg]},{provide:ex,useFactory:B6,deps:[Hg]},{provide:Jh,multi:!0,useExisting:ex}]]}}},{key:"forChild",value:function(n){return{ngModule:r,providers:[JA(n)]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(ZA,8),le(Tn,8))},e.\u0275mod=gt({type:e}),e.\u0275inj=vt({}),e}();function O6(e,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new Bg(e,r,t)}function I6(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new vL(e,r):new QE(e,r)}function F6(e){return"guarded"}function JA(e){return[{provide:UM,multi:!0,useValue:e},{provide:Ng,multi:!0,useValue:e}]}function L6(e,r){e.errorHandler&&(r.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(r.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(r.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(r.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(r.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(r.canceledNavigationResolution=e.canceledNavigationResolution)}var Hg=function(){var e=function(){function r(t){d(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Pe}return f(r,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(dL,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(l){return a=l}),s=n.injector.get(Tn),u=n.injector.get(qa);return"disabled"===u.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===u.initialNavigation||"enabledBlocking"===u.initialNavigation?(s.hooks.afterPreactivation=function(){return n.initNavigation?Je(null):(n.initNavigation=!0,a(!0),n.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(n){var i=this.injector.get(qa),a=this.injector.get(XA),o=this.injector.get(Bg),s=this.injector.get(Tn),u=this.injector.get(Zl);n===u.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(qt))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function V6(e){return e.appInitializer.bind(e)}function B6(e){return e.bootstrapListener.bind(e)}var ex=new Ne("Router Initializer"),bi=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.router=n,this.urlLogIn="api-logIn",this.urlLogOut="api-logOut",this.reqIsLogged()}return f(r,[{key:"logIn",value:function(n,i){var a=this;return console.log("Login service started..."),this.http.get(this.urlLogIn,{headers:{Authorization:"Basic "+j6(n+":"+i),"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return a.processLogInResponse(o),a.user}))}},{key:"logOut",value:function(){var n=this;return console.log("Logging out..."),this.http.get(this.urlLogOut).pipe(Xe(function(i){return console.log("Logout succesful!"),n.user=null,n.role=null,n.token=null,localStorage.removeItem("login"),localStorage.removeItem("rol"),n.router.navigate([""]),i}),vn(function(i){return mi(i)}))}},{key:"directLogOut",value:function(){this.logOut().subscribe(function(n){},function(n){return console.log("Error when trying to log out: "+n)})}},{key:"processLogInResponse",value:function(n){console.log("Login succesful processing..."),this.user=n,localStorage.setItem("login","OPENVIDUAPP"),-1!==this.user.roles.indexOf("ROLE_TEACHER")&&(this.role="ROLE_TEACHER",localStorage.setItem("rol","ROLE_TEACHER")),-1!==this.user.roles.indexOf("ROLE_STUDENT")&&(this.role="ROLE_STUDENT",localStorage.setItem("rol","ROLE_STUDENT"))}},{key:"reqIsLogged",value:function(){var n=this;console.log("ReqIsLogged called"),this.http.get(this.urlLogIn,{headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(i){return n.processLogInResponse(i)}),vn(function(i){if(401!==i.status)return console.error("Error when asking if logged: "+JSON.stringify(i)),n.logOut(),mi(i)}))}},{key:"checkCredentials",value:function(){this.isLoggedIn()||this.logOut()}},{key:"isLoggedIn",value:function(){return null!=this.user&&void 0!==this.user}},{key:"getCurrentUser",value:function(){return this.user}},{key:"isTeacher",value:function(){return-1!==this.user.roles.indexOf("ROLE_TEACHER")&&"ROLE_TEACHER"===localStorage.getItem("rol")}},{key:"isStudent",value:function(){return-1!==this.user.roles.indexOf("ROLE_STUDENT")&&"ROLE_STUDENT"===localStorage.getItem("rol")}},{key:"updateUserLessons",value:function(n){this.getCurrentUser().lessons=n}},{key:"connectionBelongsToTeacher",value:function(n){return n.data.indexOf("teacher@gmail.com")>-1}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(Tn))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function j6(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(r,t){return String.fromCharCode("0x"+t)}))}var Yu=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"canActivate",value:function(){return!!(localStorage.getItem("login")&&localStorage.getItem("rol")&&this.authenticationService.isLoggedIn())||(this.router.navigate([""]),!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Tn),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),jg=f(function e(r){d(this,e),this.title=r,this.attenders=[]}),U6=function(){var e=function(){function r(){d(this,r),this.quality="medium",this.joinWithVideo=!0,this.joinWithAudio=!0}return f(r,[{key:"joinSession",value:function(){var n={publishAudio:!!this.joinWithAudio,publishVideo:!!this.joinWithVideo,resolution:this.getResolution()};this.myReference.close(n)}},{key:"getResolution",value:function(){var n;switch(this.quality){case"low":n="320x240";break;case"medium":default:n="640x480";break;case"high":n="1280x720";break;case"veryhigh":n="1920x1080"}return n}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ht({type:e,selectors:[["app-join-session-dialog"]],decls:30,vars:3,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["dialogForm",""],["id","quality-div"],["name","quality","id","quality",3,"ngModel","ngModelChange"],["value","low","title","320x240"],["value","medium","title","640x480"],["value","high","title","1280x720"],["value","veryhigh","title","1920x1080"],["id","join-div"],["name","joinWithVideo","id","joinWithVideo",3,"ngModel","ngModelChange"],["name","joinWithAudio",3,"ngModel","ngModelChange"],["mat-button","","mat-dialog-close","","type","button"],["mat-button","","id","join-btn","type","submit"]],template:function(t,n){1&t&&(pe(0,"div")(1,"h1",0),Oe(2," Video options "),ge(),pe(3,"form",1,2),Ge("ngSubmit",function(){return n.joinSession()}),pe(5,"mat-dialog-content")(6,"div",3)(7,"h5"),Oe(8,"Quality"),ge(),pe(9,"mat-radio-group",4),Ge("ngModelChange",function(a){return n.quality=a}),pe(10,"mat-radio-button",5),Oe(11,"Low"),ge(),pe(12,"mat-radio-button",6),Oe(13,"Medium"),ge(),pe(14,"mat-radio-button",7),Oe(15,"High"),ge(),pe(16,"mat-radio-button",8),Oe(17,"Very high"),ge()()(),pe(18,"div",9)(19,"h5"),Oe(20,"Enter with active..."),ge(),pe(21,"mat-checkbox",10),Ge("ngModelChange",function(a){return n.joinWithVideo=a}),Oe(22,"Video"),ge(),pe(23,"mat-checkbox",11),Ge("ngModelChange",function(a){return n.joinWithAudio=a}),Oe(24,"Audio"),ge()()(),pe(25,"mat-dialog-actions")(26,"button",12),Oe(27,"CANCEL"),ge(),pe(28,"button",13),Oe(29,"JOIN"),ge()()()()),2&t&&(ke(9),xe("ngModel",n.quality),ke(12),xe("ngModel",n.joinWithVideo),ke(2),xe("ngModel",n.joinWithAudio))},directives:[e5,mu,fu,ra,t5,vg,du,zo,pg,Z0,n5,rs,JG],styles:["#quality-div[_ngcontent-%COMP%]{margin-top:20px}#join-div[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px}#quality-tag[_ngcontent-%COMP%]{display:block}h5[_ngcontent-%COMP%]{margin-bottom:10px;text-align:left}#joinWithVideo[_ngcontent-%COMP%]{margin-right:50px}mat-dialog-actions[_ngcontent-%COMP%]{display:block}#join-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),Ug=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-lessons"}return f(r,[{key:"getLessons",value:function(n){var i=this;return this.http.get(this.url+"/user/"+n.id,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"getLesson",value:function(n){var i=this;return this.http.get(this.url+"/lesson/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"newLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/new",a,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"editLesson",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"deleteLesson",value:function(n){var i=this;return this.http.delete(this.url+"/delete/"+n,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(a){return a}),vn(function(a){return i.handleError(a)}))}},{key:"addLessonAttenders",value:function(n,i){var a=this,o=JSON.stringify(i);return this.http.put(this.url+"/edit/add-attenders/lesson/"+n,o,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(s){return s}),vn(function(s){return a.handleError(s)}))}},{key:"deleteLessonAttenders",value:function(n){var i=this,a=JSON.stringify(n);return this.http.put(this.url+"/edit/delete-attenders",a,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.authenticationService.token}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"obtainLocalLesson",value:function(n){return this.authenticationService.getCurrentUser().lessons.find(function(i){return i.id===n})}},{key:"handleError",value:function(n){return console.error(n),mi("Server error ("+n.status+"): "+n.text())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}(),Gg=function(){var e=function(){function r(t,n){d(this,r),this.http=t,this.authenticationService=n,this.url="api-sessions"}return f(r,[{key:"createSession",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/create-session",a).pipe(Xe(function(o){}),vn(function(o){return i.handleError(o)}))}},{key:"generateToken",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/generate-token",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"removeUser",value:function(n){var i=this,a=JSON.stringify(n);return this.http.post(this.url+"/remove-user",a,{headers:{"Content-Type":"application/json"}}).pipe(Xe(function(o){return o}),vn(function(o){return i.handleError(o)}))}},{key:"handleError",value:function(n){return console.error(n),mi(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra),le(bi))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function G6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",3),Ge("click",function(){return yt(t),ze().closeAlert()}),Oe(1,"clear"),ge()}}var zg=function(){var e=function(){function r(){d(this,r),this.eventShowable=new Dt}return f(r,[{key:"closeAlert",value:function(){this.eventShowable.emit(!1)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ht({type:e,selectors:[["app-error-message"]],inputs:{errorTitle:"errorTitle",errorContent:"errorContent",customClass:"customClass",closable:"closable",timeable:"timeable"},outputs:{eventShowable:"eventShowable"},decls:5,vars:4,consts:[[3,"ngClass"],[3,"click",4,"ngIf"],[3,"innerHTML"],[3,"click"]],template:function(t,n){1&t&&(pe(0,"mat-card",0),$e(1,G6,2,0,"mat-icon",1),pe(2,"mat-card-title"),Oe(3),ge(),Xt(4,"mat-card-subtitle",2),ge()),2&t&&(xe("ngClass",n.customClass),ke(1),xe("ngIf",n.closable),ke(2),bn(n.errorTitle),ke(1),xe("innerHTML",n.errorContent,My))},directives:[Kp,lc,ZS,Jr,Nu,H4,j4],styles:[".fail[_ngcontent-%COMP%]{background-color:#a7384133;color:#a73841}.warning[_ngcontent-%COMP%]{background-color:#af6e0033;color:#af6e00}.correct[_ngcontent-%COMP%]{background-color:#37564640;color:#375546}mat-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}mat-card[_ngcontent-%COMP%]{max-width:400px;margin-top:20px;margin-bottom:20px;box-shadow:none}"]}),e}();function z6(e,r){1&e&&(pe(0,"div",2),Xt(1,"div",3),ge())}function W6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",10),Ge("click",function(){return yt(t),ze(3).addingLesson=!0}),Oe(1,"add_circle_outline"),ge()}2&e&&xe("title","Add lesson")}function q6(e,r){if(1&e&&(pe(0,"div",4)(1,"div",8),Oe(2,"MY LESSONS"),ge(),$e(3,W6,2,1,"mat-icon",9),ge()),2&e){var t=ze(2);ke(3),xe("ngIf",t.authenticationService.isTeacher())}}function K6(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"div"),Oe(2,"NEW LESSON"),ge(),pe(3,"form",11,12),Ge("ngSubmit",function(){yt(t);var a=Qn(4);return ze(2).newLesson(),a.reset()}),pe(5,"mat-form-field")(6,"input",13),Ge("ngModelChange",function(a){return yt(t),ze(2).lessonTitle=a}),ge()(),pe(7,"div",14)(8,"button",15),Oe(9,"Send"),ge(),pe(10,"button",16),Ge("click",function(){yt(t);var a=Qn(4);return ze(2).addingLesson=!1,a.reset()}),Oe(11,"Cancel"),ge()()()()}if(2&e){var n=ze(2);ke(3),It("filtered",n.submitNewLesson),ke(3),xe("ngModel",n.lessonTitle),ke(2),xe("disabled",n.submitNewLesson),ke(2),xe("disabled",n.submitNewLesson)}}function Q6(e,r){if(1&e&&(pe(0,"span",22),Oe(1),ge()),2&e){var t=ze().$implicit;ke(1),bn(t.teacher.nickName)}}function Y6(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",21),Ge("click",function(){yt(t);var i=ze().$implicit;return ze(2).goToLessonDetails(i)}),Oe(1,"mode_edit"),ge()}2&e&&xe("title","Modify lesson")}function $6(e,r){if(1&e){var t=Nt();pe(0,"mat-card")(1,"div",17)(2,"span",18),Oe(3),ge(),$e(4,Q6,2,1,"span",19),$e(5,Y6,2,1,"mat-icon",20),pe(6,"mat-icon",21),Ge("click",function(){var s=yt(t).$implicit;return ze(2).goToLesson(s)}),Oe(7,"play_circle_filled"),ge()()()}if(2&e){var n=r.$implicit,i=ze(2);ke(3),bn(n.title),ke(1),xe("ngIf",i.authenticationService.isStudent()),ke(1),xe("ngIf",i.authenticationService.isTeacher()),ke(1),xe("title","Go to lesson!")}}function X6(e,r){1&e&&(pe(0,"div"),Xt(1,"app-error-message",23),ge()),2&e&&(ke(1),xe("errorTitle","You do not have any lessons")("errorContent","Your teacher must invite you")("customClass","warning")("closable",!1))}function Z6(e,r){1&e&&(pe(0,"div"),Xt(1,"app-error-message",23),ge()),2&e&&(ke(1),xe("errorTitle","You do not have any lessons")("errorContent","You can add one by clicking on the icon above")("customClass","warning")("closable",!1))}var J6=function(){return{width:"100%"}};function eW(e,r){if(1&e&&(pe(0,"div",4)(1,"div",5),$e(2,q6,4,1,"div",1),$e(3,K6,12,5,"div",6),$e(4,$6,8,4,"mat-card",7),$e(5,X6,2,4,"div",6),$e(6,Z6,2,4,"div",6),ge()()),2&e){var t=ze();ke(1),xi("xs",tu(7,J6)),ke(1),xe("ngIf",!t.addingLesson),ke(1),xe("ngIf",t.addingLesson),ke(1),xe("ngForOf",t.lessons),ke(1),xe("ngIf",0===t.lessons.length&&t.authenticationService.isStudent()&&!t.addingLesson),ke(1),xe("ngIf",0===t.lessons.length&&t.authenticationService.isTeacher()&&!t.addingLesson)}}var tW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.videoSessionService=n,this.router=i,this.authenticationService=a,this.snackBar=o,this.dialog=s}return f(r,[{key:"ngOnInit",value:function(){this.authenticationService.checkCredentials(),this.getLessons()}},{key:"logout",value:function(){this.authenticationService.logOut()}},{key:"getLessons",value:function(){var n=this;this.lessonService.getLessons(this.authenticationService.getCurrentUser()).subscribe(function(i){console.log("User's lessons: "),console.log(i),n.lessons=i,n.authenticationService.updateUserLessons(n.lessons)},function(i){return console.log(i)})}},{key:"goToLesson",value:function(n){var a,i=this;this.videoSessionService.lesson=n,this.authenticationService.isTeacher()?((a=this.dialog.open(U6)).componentInstance.myReference=a,a.afterClosed().subscribe(function(o){o&&(console.log("Joining session with options:"),console.log(o),i.videoSessionService.cameraOptions=o,i.router.navigate(["/lesson/"+n.id]))})):this.router.navigate(["/lesson/"+n.id])}},{key:"goToLessonDetails",value:function(n){this.router.navigate(["/lesson-details/"+n.id])}},{key:"newLesson",value:function(){var n=this;this.submitNewLesson=!0,this.lessonService.newLesson(new jg(this.lessonTitle)).subscribe(function(i){console.log("New lesson added: "),console.log(i),n.lessons.push(i),n.authenticationService.updateUserLessons(n.lessons),n.submitNewLesson=!1,n.snackBar.open("Lesson added!",void 0,{duration:3e3}),n.addingLesson=!1},function(i){console.log(i),n.submitNewLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ug),B(Gg),B(Tn),B(bi),B(_g),B(od))},e.\u0275cmp=Ht({type:e,selectors:[["app-dashboard"]],decls:2,vars:2,consts:[["class","cssload-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxFlex","80%"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","end center",3,"title","click"],[3,"ngSubmit"],["newLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","id","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","10px"],["fxFlex","70%",1,"title"],["fxFlex","70%","class","teacher",4,"ngIf"],["fxFlex","15%",3,"title","click",4,"ngIf"],["fxFlex","15%",3,"title","click"],["fxFlex","70%",1,"teacher"],[3,"errorTitle","errorContent","customClass","closable"]],template:function(t,n){1&t&&($e(0,z6,2,0,"div",0),$e(1,eW,7,8,"div",1)),2&t&&(xe("ngIf",!n.lessons),ke(1),xe("ngIf",n.lessons))},directives:[Jr,Jo,es,Qc,Nu,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,Ev,Kp,Lp,zg],styles:["mat-card[_ngcontent-%COMP%]{margin-top:20px}mat-card[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{text-align:center}span.teacher[_ngcontent-%COMP%]{font-size:12px}"]}),e}(),nW=f(function e(r){d(this,e),this.id=r.id,this.name=r.name,this.nickName=r.nickName,this.roles=r.roles,this.lessons=[]});function rW(e,r){if(1&e){var t=Nt();pe(0,"div",1)(1,"mat-icon",19),Ge("click",function(){return yt(t),ze(2).router.navigate(["/lessons"])}),Oe(2,"keyboard_arrow_left"),ge(),pe(3,"h2",20),Oe(4),ge(),pe(5,"mat-icon",21),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!0,a.titleEdited=a.lesson.title}),Oe(6,"mode_edit"),ge()()}if(2&e){var n=ze(2);ke(1),xe("title","Back to lessons"),ke(3),bn(n.lesson.title),ke(1),xe("title","Edit lesson")}}function iW(e,r){if(1&e){var t=Nt();pe(0,"div",22)(1,"form",4,23),Ge("ngSubmit",function(){yt(t);var a=Qn(2);return ze(2).editLesson(),a.reset()}),pe(3,"mat-form-field")(4,"input",24),Ge("ngModelChange",function(a){return yt(t),ze(2).titleEdited=a}),ge()(),pe(5,"div",8)(6,"button",9),Oe(7,"Send"),ge(),pe(8,"button",10),Ge("click",function(){yt(t);var a=ze(2);return a.editingTitle=!1,a.titleEdited=""}),Oe(9,"Cancel"),ge(),pe(10,"button",10),Ge("click",function(){return yt(t),ze(2).deleteLesson()}),Oe(11,"Delete lesson"),ge()()()()}if(2&e){var n=ze(2);ke(1),It("filtered",n.sumbitEditLesson),ke(3),xe("ngModel",n.titleEdited),ke(2),xe("disabled",n.sumbitEditLesson),ke(2),xe("disabled",n.sumbitEditLesson),ke(2),xe("disabled",n.sumbitEditLesson)}}function aW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersCorrect=!1}),ge()}if(2&e){var n=ze(2);xe("errorTitle",n.attCorrectTitle)("errorContent",n.attCorrectContent)("customClass","correct")("closable",!0)}}function oW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",25),Ge("eventShowable",function(){return yt(t),ze(2).addAttendersError=!1}),ge()}if(2&e){var n=ze(2);xe("errorTitle",n.attErrorTitle)("errorContent",n.attErrorContent)("customClass","fail")("closable",!0)}}function sW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",31),Ge("click",function(){yt(t);var i=ze(2),a=i.index,o=i.$implicit;return ze(2).deleteLessonAttender(a,o)}),Oe(1,"clear"),ge()}2&e&&xe("title","Remove attender")}function uW(e,r){1&e&&(pe(0,"mat-icon",32),Oe(1,"cached"),ge())}function lW(e,r){if(1&e&&(pe(0,"div",27)(1,"div",28)(2,"div",14)(3,"div",15),Oe(4),ge(),pe(5,"div",16),Oe(6),ge()()(),pe(7,"div",17),$e(8,sW,2,1,"mat-icon",29),$e(9,uW,2,0,"mat-icon",30),ge()()),2&e){var t=ze(),n=t.$implicit,i=t.index,a=ze(2);ke(4),bn(n.nickName),ke(2),bn(n.name),ke(2),xe("ngIf",!a.arrayOfAttDels[i]),ke(1),xe("ngIf",a.arrayOfAttDels[i])}}function cW(e,r){if(1&e&&(pe(0,"div"),$e(1,lW,10,4,"div",26),ge()),2&e){var t=r.$implicit,n=ze(2);ke(1),xe("ngIf",t.id!=n.authenticationService.getCurrentUser().id)}}var dW=function(){return{width:"100%"}};function fW(e,r){if(1&e){var t=Nt();pe(0,"div",1)(1,"div",2),$e(2,rW,7,3,"div",0),$e(3,iW,12,6,"div",3),pe(4,"form",4,5),Ge("ngSubmit",function(){yt(t);var a=Qn(5);return ze().addLessonAttenders(),a.reset()}),pe(6,"h4",6),Oe(7,"New attender"),ge(),pe(8,"mat-form-field")(9,"input",7),Ge("ngModelChange",function(a){return yt(t),ze().emailAttender=a}),ge()(),pe(10,"div",8)(11,"button",9),Oe(12,"Send"),ge(),pe(13,"button",10),Ge("click",function(){return yt(t),Qn(5).reset()}),Oe(14,"Cancel"),ge()()(),$e(15,aW,1,4,"app-error-message",11),$e(16,oW,1,4,"app-error-message",11),pe(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15),Oe(21),ge(),pe(22,"div",16),Oe(23),ge()()(),Xt(24,"div",17),ge(),$e(25,cW,2,1,"div",18),ge()()}if(2&e){var n=ze();ke(1),xi("xs",tu(14,dW)),ke(1),xe("ngIf",!n.editingTitle),ke(1),xe("ngIf",n.editingTitle),ke(1),It("filtered",n.sumbitAddAttenders),ke(5),xe("ngModel",n.emailAttender),ke(2),xe("disabled",n.sumbitAddAttenders),ke(2),xe("disabled",n.sumbitAddAttenders||null==n.emailAttender),ke(2),xe("ngIf",n.addAttendersCorrect),ke(1),xe("ngIf",n.addAttendersError),ke(5),bn(n.authenticationService.getCurrentUser().nickName),ke(2),bn(n.authenticationService.getCurrentUser().name),ke(2),xe("ngForOf",n.lesson.attenders)}}var hW=function(){var e=function(){function r(t,n,i,a,o,s){d(this,r),this.lessonService=t,this.authenticationService=n,this.router=i,this.route=a,this.location=o,this.snackBar=s,this.editingTitle=!1,this.sumbitEditLesson=!1,this.sumbitAddAttenders=!1,this.arrayOfAttDels=[],this.addAttendersCorrect=!1,this.addAttendersError=!1}return f(r,[{key:"ngOnInit",value:function(){var n=this;this.route.params.subscribe(function(i){n.lesson=n.lessonService.obtainLocalLesson(+i.id)})}},{key:"editLesson",value:function(){var n=this;if(this.titleEdited!==this.lesson.title){this.sumbitEditLesson=!0;var i=new jg(this.titleEdited);i.id=this.lesson.id,this.lessonService.editLesson(i).subscribe(function(a){console.log("Lesson edited: "),console.log(a),n.lesson=a,n.sumbitEditLesson=!1,n.editingTitle=!1,n.snackBar.open("Lesson edited!",void 0,{duration:3e3})},function(a){console.log(a),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}else this.editingTitle=!1}},{key:"deleteLesson",value:function(){var n=this;this.sumbitEditLesson=!0,this.lessonService.deleteLesson(this.lesson.id).subscribe(function(i){console.log("Lesson deleted"),console.log(i),n.sumbitEditLesson=!1,n.router.navigate(["/lessons"]),n.snackBar.open("Lesson deleted!",void 0,{duration:3e3})},function(i){console.log(i),n.sumbitEditLesson=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"addLessonAttenders",value:function(){var n=this;this.sumbitAddAttenders=!0,this.lessonService.addLessonAttenders(this.lesson.id,[this.emailAttender]).subscribe(function(i){console.log("Attender added"),console.log(i),n.sumbitAddAttenders=!1,n.lesson.attenders=n.lesson.attenders.concat(i.attendersAdded),n.handleAttendersMessage(i)},function(i){console.log(i),n.sumbitAddAttenders=!1,n.snackBar.open("There has been a problem...",void 0,{duration:3e3})})}},{key:"deleteLessonAttender",value:function(n,i){var a=this;this.arrayOfAttDels[n]=!0;var o=new jg(this.lesson.title);o.id=this.lesson.id;for(var s=0;s0){var s,o=Y(n.attendersAdded);try{for(o.s();!(s=o.n()).done;)this.attCorrectContent+=""}catch(ee){o.e(ee)}finally{o.f()}a=!0}if(n.attendersAlreadyAdded.length>0){this.attErrorContent+="The following users were already added to the lesson";var c,l=Y(n.attendersAlreadyAdded);try{for(l.s();!(c=l.n()).done;)this.attErrorContent+=""}catch(ee){l.e(ee)}finally{l.f()}i=!0}if(n.emailsValidNotRegistered.length>0){this.attErrorContent+="The following users are not registered";var _,v=Y(n.emailsValidNotRegistered);try{for(v.s();!(_=v.n()).done;)this.attErrorContent+=""}catch(ee){v.e(ee)}finally{v.f()}i=!0}if(n.emailsInvalid&&n.emailsInvalid.length>0){this.attErrorContent+="These are not valid emails";var te,J=Y(n.emailsInvalid);try{for(J.s();!(te=J.n()).done;)this.attErrorContent+=""}catch(ee){J.e(ee)}finally{J.f()}i=!0}i?(this.attErrorTitle="There have been some problems",this.addAttendersError=!0):0===n.attendersAdded.length&&(this.attErrorTitle="No emails there!",this.addAttendersError=!0),a&&(this.attCorrectTitle="The following users where properly added",this.addAttendersCorrect=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Ug),B(bi),B(Tn),B(za),B(Aa),B(_g))},e.\u0275cmp=Ht({type:e,selectors:[["app-lesson-details"]],decls:1,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[3,"ngSubmit"],["addAttendersForm",""],["id","new-attender-title"],["matInput","","placeholder","Email","name","attenderEmail","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"block-btn"],["mat-button","","type","submit",3,"disabled"],["mat-button","",3,"disabled","click"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","20px","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start",1,"attender-row"],["fxFlex","90%",1,"no-margin-bottom"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start","fxLayoutGap","20px"],["fxFlex","",1,"no-margin-bottom"],["fxFlex","",1,"attender-email"],["fxFlex","10%"],[4,"ngFor","ngForOf"],["fxFlex","15%","fxLayoutAlign","start center",3,"title","click"],["fxFlex","70%"],["fxFlex","15%","fxLayoutAlign","end center",3,"title","click"],["fxLayout","row","fxLayoutAlign","start center"],["editLessonForm",""],["matInput","","placeholder","Title","name","lessonTitle","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px","class","attender-row",4,"ngIf"],["fxLayout","row","fxLayoutAlign.xs","start","fxLayoutGap","20px",1,"attender-row"],["fxFlex","90%"],[3,"title","click",4,"ngIf"],["class","rotating",4,"ngIf"],[3,"title","click"],[1,"rotating"]],template:function(t,n){1&t&&$e(0,fW,26,15,"div",0),2&t&&xe("ngIf",n.lesson)},directives:[Jr,Jo,es,Nu,Qc,mu,fu,ra,fg,hg,Uo,Wo,du,zo,rs,zg,Lp,Ev],styles:[".attender-email[_ngcontent-%COMP%]{font-size:11px}.no-margin-bottom[_ngcontent-%COMP%]{margin-bottom:0!important}.attender-row[_ngcontent-%COMP%]{width:100%;margin-top:20px;min-height:27px}#new-attender-title[_ngcontent-%COMP%]{margin-bottom:5px}@keyframes rotating{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.rotating[_ngcontent-%COMP%]{animation:rotating 1s linear infinite;cursor:default!important}.rotating[_ngcontent-%COMP%]:hover{color:inherit!important}"]}),e}(),tx=function(){var e=function(){function r(t){d(this,r),this.http=t,this.url="api-users"}return f(r,[{key:"newUser",value:function(n,i,a,o){var s=this,u=JSON.stringify([n,i,a,o]);return this.http.post(this.url+"/new",u,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).pipe(Xe(function(l){return l}),vn(function(l){return s.handleError(l)}))}},{key:"handleError",value:function(n){return mi(n.status)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(le(Ra))},e.\u0275prov=we({token:e,factory:e.\u0275fac}),e}();function vW(e,r){1&e&&(pe(0,"div",14),Xt(1,"div",15),ge())}function pW(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"mat-form-field")(2,"input",16),Ge("ngModelChange",function(a){return yt(t),ze().nickName=a}),ge()()()}if(2&e){var n=ze();ke(2),xe("ngModel",n.nickName)}}function gW(e,r){if(1&e){var t=Nt();pe(0,"div")(1,"mat-form-field")(2,"input",17),Ge("ngModelChange",function(a){return yt(t),ze().confirmPassword=a}),ge()()()}if(2&e){var n=ze();ke(2),xe("ngModel",n.confirmPassword)}}function mW(e,r){if(1&e){var t=Nt();pe(0,"div",18)(1,"span",19),Oe(2,"Sign up as..."),ge(),pe(3,"mat-radio-group",20),Ge("ngModelChange",function(a){return yt(t),ze().roleUserSignup=a}),pe(4,"mat-radio-button",21),Oe(5,"Student"),ge(),pe(6,"mat-radio-button",22),Oe(7,"Teacher"),ge()()()}if(2&e){var n=ze();ke(3),xe("ngModel",n.roleUserSignup)}}function yW(e,r){if(1&e){var t=Nt();pe(0,"app-error-message",23),Ge("eventShowable",function(){return yt(t),ze().fieldsIncorrect=!1}),ge()}if(2&e){var n=ze();xe("errorTitle",n.errorTitle)("errorContent",n.errorContent)("customClass",n.customClass)("closable",!0)}}function _W(e,r){1&e&&(pe(0,"button",24),Oe(1,"Log in"),ge())}function bW(e,r){1&e&&(pe(0,"button",25),Oe(1,"Sign up"),ge())}function CW(e,r){1&e&&(pe(0,"div")(1,"table")(2,"tr")(3,"th"),Oe(4,"Email"),ge(),pe(5,"th"),Oe(6,"Password"),ge()(),pe(7,"tr")(8,"td"),Oe(9,"teacher@gmail.com"),ge(),pe(10,"td"),Oe(11,"pass"),ge()(),pe(12,"tr")(13,"td"),Oe(14,"student1@gmail.com"),ge(),pe(15,"td"),Oe(16,"pass"),ge()(),pe(17,"tr")(18,"td"),Oe(19,"student2@gmail.com"),ge(),pe(20,"td"),Oe(21,"pass"),ge()()()())}function EW(e,r){if(1&e){var t=Nt();pe(0,"div"),Oe(1,"Not registered yet?"),pe(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!1),a.reset()}),Oe(3,"Sign up"),ge()()}}function kW(e,r){if(1&e){var t=Nt();pe(0,"div"),Oe(1,"Already registered?"),pe(2,"button",26),Ge("click",function(){yt(t);var i=ze(),a=Qn(9);return i.setLoginView(!0),a.reset()}),Oe(3,"Log in"),ge()()}}var wW=function(){return{width:"100%"}},SW=function(){var e=function(){function r(t,n,i){d(this,r),this.authenticationService=t,this.userService=n,this.router=i,this.loginView=!0,this.roleUserSignup="student"}return f(r,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewChecked",value:function(){this.authenticationService.isLoggedIn()&&this.router.navigate(["/lessons"])}},{key:"setLoginView",value:function(n){this.fieldsIncorrect=!1,this.loginView=n}},{key:"onSubmit",value:function(){console.log("Submit: email = "+this.email+" , password = "+this.password+", confirmPassword = "+this.confirmPassword),this.submitProcessing=!0,this.loginView?(console.log("Logging in..."),this.logIn(this.email,this.password)):(console.log("Signing up..."),this.signUp())}},{key:"logIn",value:function(n,i){var a=this;this.authenticationService.logIn(n,i).subscribe(function(o){a.submitProcessing=!1,console.log("Login succesful! LOGGED AS "+a.authenticationService.getCurrentUser().name),a.fieldsIncorrect=!1,a.router.navigate(["/lessons"])},function(o){console.log("Login failed (error): "+o),a.errorTitle="Invalid field",a.errorContent="Please check your email or password",a.customClass="fail",a.handleError()})}},{key:"signUp",value:function(){var n=this;if(this.password!==this.confirmPassword)this.errorTitle="Your passwords don't match!",this.errorContent="",this.customClass="fail",this.handleError();else{var i=this.email,a=this.password;this.userService.newUser(i,a,this.nickName,this.roleUserSignup).subscribe(function(o){n.logIn(i,a),console.log("Sign up succesful!")},function(o){console.log("Sign up failed (error): "+o),409===o?(n.errorTitle="Invalid email",n.errorContent="That email is already in use",n.customClass="fail"):403===o&&(n.errorTitle="Invalid email format",n.errorContent="Our server has rejected that email",n.customClass="fail"),n.handleError()})}}},{key:"handleError",value:function(){this.submitProcessing=!1,this.fieldsIncorrect=!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(bi),B(tx),B(Tn))},e.\u0275cmp=Ht({type:e,selectors:[["app-presentation"]],decls:27,vars:17,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"],["fxLayout","column","fxLayoutAlign","space-around center"],["class","cssload-container",4,"ngIf"],[3,"ngSubmit"],["myForm",""],["matInput","","placeholder","Email","name","email","id","email","type","email","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","Password","name","password","id","password","type","password","required","",3,"ngModel","ngModelChange"],["class","radio-button-div",4,"ngIf"],[3,"errorTitle","errorContent","customClass","closable","eventShowable",4,"ngIf"],[1,"btn-container"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn",4,"ngIf"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn",4,"ngIf"],[1,"cssload-container"],[1,"cssload-tube-tunnel"],["matInput","","placeholder","Name","name","nickName","id","nickName","type","text","autocomplete","off","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm password","name","confirmPassword","id","confirmPassword","type","password","autocomplete","off","required","",3,"ngModel","ngModelChange"],[1,"radio-button-div"],["id","sign-up-as"],["name","roleUserSignup","id","roleUserSignup",3,"ngModel","ngModelChange"],["value","student"],["value","teacher"],[3,"errorTitle","errorContent","customClass","closable","eventShowable"],["mat-raised-button","","color","accent","type","submit","id","log-in-btn"],["mat-raised-button","","color","primary","type","submit","id","sign-up-btn"],["mat-button","",1,"card-button",3,"click"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"div",1)(2,"h1"),Oe(3,"OpenVidu Classroom Demo"),ge(),pe(4,"div",2)(5,"mat-card")(6,"mat-card-content"),$e(7,vW,2,0,"div",3),pe(8,"form",4,5),Ge("ngSubmit",function(){return n.onSubmit()}),pe(10,"div")(11,"mat-form-field")(12,"input",6),Ge("ngModelChange",function(a){return n.email=a}),ge()()(),$e(13,pW,3,1,"div",7),pe(14,"div")(15,"mat-form-field")(16,"input",8),Ge("ngModelChange",function(a){return n.password=a}),ge()()(),$e(17,gW,3,1,"div",7),$e(18,mW,8,1,"div",9),$e(19,yW,1,4,"app-error-message",10),pe(20,"div",11),$e(21,_W,2,0,"button",12),$e(22,bW,2,0,"button",13),ge()(),$e(23,CW,22,0,"div",7),ge(),pe(24,"mat-card-actions"),$e(25,EW,4,0,"div",7),$e(26,kW,4,0,"div",7),ge()()()()()),2&t&&(ke(1),xi("xs",tu(16,wW)),ke(6),xe("ngIf",n.submitProcessing),ke(1),It("filtered",n.submitProcessing),ke(4),xe("ngModel",n.email),ke(1),xe("ngIf",!n.loginView),ke(3),xe("ngModel",n.password),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",n.fieldsIncorrect),ke(2),xe("ngIf",n.loginView),ke(1),xe("ngIf",!n.loginView),ke(1),xe("ngIf",n.loginView),ke(2),xe("ngIf",n.loginView),ke(1),xe("ngIf",!n.loginView))},directives:[Jo,es,Kp,B4,Jr,mu,fu,ra,fg,hg,Uo,Wo,du,zo,vg,pg,zg,rs,U4],styles:["h1[_ngcontent-%COMP%]{text-align:center;display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card-actions[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;color:#9e9e9e}.btn-container[_ngcontent-%COMP%]{text-align:center;padding-top:20px}.card-button[_ngcontent-%COMP%]{margin-left:10px!important}.radio-button-div[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}#sign-up-as[_ngcontent-%COMP%]{color:#9e9e9e;display:block;margin-top:15px;margin-bottom:10px}table[_ngcontent-%COMP%]{margin:30px auto 0;text-align:left}"]}),e}(),DW=function(){return{width:"100%"}},AW=function(){var e=function(){function r(t){d(this,r),this.authenticationService=t}return f(r,[{key:"ngOnInit",value:function(){this.user=this.authenticationService.getCurrentUser()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(bi))},e.\u0275cmp=Ht({type:e,selectors:[["app-profile"]],decls:15,vars:5,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"div-inner-main"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"div",1)(2,"div"),Oe(3,"MY PROFILE"),ge(),pe(4,"table")(5,"tr")(6,"td"),Oe(7,"Name"),ge(),pe(8,"th"),Oe(9),ge()(),pe(10,"tr")(11,"td"),Oe(12,"Email"),ge(),pe(13,"th"),Oe(14),ge()()()()()),2&t&&(ke(1),xi("xs",tu(4,DW)),ke(8),bn(n.authenticationService.getCurrentUser().nickName),ke(5),bn(n.authenticationService.getCurrentUser().name))},directives:[Jo,es],styles:["table[_ngcontent-%COMP%]{margin-top:15px;border-collapse:separate;border-spacing:15px 17px}th[_ngcontent-%COMP%]{text-align:left}"]}),e}(),xW=U(5039);function MW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalVideo()}),Oe(1),ge()}if(2&e){var n=ze();xe("title","Toggle video"),ke(1),bn(n.videoIcon)}}function TW(e,r){if(1&e){var t=Nt();pe(0,"mat-icon",2),Ge("click",function(){return yt(t),ze().toggleLocalAudio()}),Oe(1),ge()}if(2&e){var n=ze();xe("title","Toggle audio"),ke(1),bn(n.audioIcon)}}var RW=function(){var e=function(){function r(t,n,i,a){d(this,r),this.location=t,this.authenticationService=n,this.videoSessionService=i,this.snackBar=a}return f(r,[{key:"OPEN_VIDU_CONNECTION",value:function(){var n=this;this.OV=new xW.Dn,this.session=this.OV.initSession(),this.session.on("streamCreated",function(i){console.warn("STREAM CREATED!"),console.warn(i.stream),n.session.subscribe(i.stream,"subscriber",{insertMode:"APPEND"})}),this.session.on("streamDestroyed",function(i){console.warn("STREAM DESTROYED!"),console.warn(i.stream)}),this.session.on("connectionCreated",function(i){i.connection.connectionId===n.session.connection.connectionId?console.warn("YOUR OWN CONNECTION CREATED!"):console.warn("OTHER USER'S CONNECTION CREATED!"),console.warn(i.connection)}),this.session.on("connectionDestroyed",function(i){console.warn("OTHER USER'S CONNECTION DESTROYED!"),console.warn(i.connection),n.authenticationService.connectionBelongsToTeacher(i.connection)&&n.location.back()}),this.session.connect(this.token,"CLIENT:"+this.authenticationService.getCurrentUser().name).then(function(){n.authenticationService.isTeacher()&&(n.publisher=n.OV.initPublisher("publisher",n.cameraOptions),n.publisher.on("accessAllowed",function(){console.warn("CAMERA ACCESS ALLOWED!")}),n.publisher.on("accessDenied",function(){console.warn("CAMERA ACCESS DENIED!")}),n.publisher.on("streamCreated",function(i){console.warn("STREAM CREATED BY PUBLISHER!"),console.warn(i.stream)}),n.session.publish(n.publisher))}).catch(function(i){console.log("There was an error connecting to the session:",i.code,i.message)})}},{key:"ngOnInit",value:function(){var n=this;this.previousConnectionStuff(),this.authenticationService.isTeacher()?this.videoSessionService.createSession(this.lesson.id).subscribe(function(){n.videoSessionService.generateToken(n.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i)})},function(i){console.log(i)}):this.videoSessionService.generateToken(this.lesson.id).subscribe(function(i){n.token=i[0],console.warn("Token: "+n.token),n.OPEN_VIDU_CONNECTION()},function(i){console.log(i),409===i.status&&(n.snackBar.open("The teacher has not opened the lesson yet!","Undo",{duration:3e3}),n.location.back())}),this.afterConnectionStuff()}},{key:"ngAfterViewInit",value:function(){this.toggleScrollPage("hidden")}},{key:"ngOnDestroy",value:function(){this.videoSessionService.removeUser(this.lesson.id).subscribe(function(n){console.warn("You have succesfully left the lesson")},function(n){console.log(n)}),this.toggleScrollPage("auto"),this.exitFullScreen(),this.OV&&this.session.disconnect()}},{key:"toggleScrollPage",value:function(n){document.getElementsByClassName("mat-sidenav-content")[0].style.overflow=n}},{key:"toggleLocalVideo",value:function(){this.localVideoActivated=!this.localVideoActivated,this.publisher.publishVideo(this.localVideoActivated),this.videoIcon=this.localVideoActivated?"videocam":"videocam_off"}},{key:"toggleLocalAudio",value:function(){this.localAudioActivated=!this.localAudioActivated,this.publisher.publishAudio(this.localAudioActivated),this.audioIcon=this.localAudioActivated?"mic":"mic_off"}},{key:"toggleFullScreen",value:function(){var n=window.document,i=n.getElementsByTagName("html")[0];n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||n.msFullscreenElement?(console.log("exit FULLSCREEN!"),this.fullscreenIcon="fullscreen",n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()):(console.log("enter FULLSCREEN!"),this.fullscreenIcon="fullscreen_exit",i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen())}},{key:"exitFullScreen",value:function(){var n=window.document;n.getElementsByTagName("html"),n.exitFullscreen?n.exitFullscreen():n.msExitFullscreen?n.msExitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen&&n.webkitExitFullscreen()}},{key:"previousConnectionStuff",value:function(){this.lesson=this.videoSessionService.lesson,this.cameraOptions=this.videoSessionService.cameraOptions}},{key:"afterConnectionStuff",value:function(){this.authenticationService.isTeacher()&&(this.localVideoActivated=!1!==this.cameraOptions.publishVideo,this.localAudioActivated=!1!==this.cameraOptions.publishAudio,this.videoIcon=this.localVideoActivated?"videocam":"videocam_off",this.audioIcon=this.localAudioActivated?"mic":"mic_off"),this.fullscreenIcon="fullscreen"}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Aa),B(bi),B(Gg),B(_g))},e.\u0275cmp=Ht({type:e,selectors:[["app-video-session"]],decls:11,vars:6,consts:[["id","header-div"],["id","back-btn",3,"title","click"],[1,"right-btn",3,"title","click"],["class","right-btn",3,"title","click",4,"ngIf"],["id","publisher"],["id","subscriber"]],template:function(t,n){1&t&&(pe(0,"div",0)(1,"mat-icon",1),Ge("click",function(){return n.location.back()}),Oe(2,"keyboard_arrow_left"),ge(),pe(3,"mat-icon",2),Ge("click",function(){return n.toggleFullScreen()}),Oe(4),ge(),$e(5,MW,2,2,"mat-icon",3),$e(6,TW,2,2,"mat-icon",3),pe(7,"h1"),Oe(8),ge()(),Xt(9,"div",4)(10,"div",5)),2&t&&(ke(1),xe("title","Back to lessons"),ke(2),xe("title","Fullscreen"),ke(1),bn(n.fullscreenIcon),ke(1),xe("ngIf",n.authenticationService.isTeacher()),ke(1),xe("ngIf",n.authenticationService.isTeacher()),ke(2),bn(null==n.lesson?null:n.lesson.title))},directives:[Nu,Jr],styles:["h1[_ngcontent-%COMP%]{text-align:center;margin:0;color:#fff}#header-div[_ngcontent-%COMP%]{position:absolute;z-index:1000;width:100%;background:rgba(0,0,0,.4);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}mat-icon[_ngcontent-%COMP%]{font-size:38px;width:38px;height:38px;color:#fff;transition:color .2s linear}mat-icon[_ngcontent-%COMP%]:hover{color:#ffd740}#back-btn[_ngcontent-%COMP%]{float:left}.right-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),IW=R6.forRoot([{path:"",component:SW,pathMatch:"full",data:{state:"presentation"}},{path:"lessons",component:tW,canActivate:[Yu],data:{state:"lessons"}},{path:"lesson-details/:id",component:hW,canActivate:[Yu],data:{state:"lesson-details"}},{path:"profile",component:AW,canActivate:[Yu],data:{state:"profile"}},{path:"lesson/:id",component:RW,canActivate:[Yu],data:{state:"session"}}],{useHash:!0}),FW=_u("routerTransition",[ia("* <=> *",[ap(":enter, :leave",Ln({position:"fixed",width:"100%"}),{optional:!0}),function PV(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:r}}([ap(":enter",[Ln({opacity:"0"}),Pi("0.4s ease-in-out",Ln({opacity:"1"}))],{optional:!0}),ap(":leave",[Ln({opacity:"1"}),Pi("0.2s cubic-bezier(0.000, 0.900, 0.495, 0.990)",Ln({opacity:"0"}))],{optional:!0})])])]);function PW(e,r){if(1&e){var t=Nt();pe(0,"div",10)(1,"button",11),Oe(2,"Lessons"),ge(),pe(3,"button",12),Oe(4,"Profile"),ge(),pe(5,"button",13),Ge("click",function(){return yt(t),ze(2).authenticationService.directLogOut()}),Oe(6,"LOGOUT"),ge()()}}function LW(e,r){if(1&e){var t=Nt();pe(0,"button",14),Ge("click",function(){return yt(t),ze(2),Qn(2).open()}),pe(1,"mat-icon"),Oe(2,"menu"),ge()()}}function NW(e,r){if(1&e&&(pe(0,"header")(1,"mat-toolbar",5)(2,"button",6),Oe(3," OpenVidu Classroom Demo "),ge(),Xt(4,"span",7),$e(5,PW,7,0,"div",8),$e(6,LW,3,0,"button",9),ge()()),2&e){var t=ze();ke(5),xe("ngIf",t.authenticationService.isLoggedIn()),ke(1),xe("ngIf",t.authenticationService.isLoggedIn())}}function VW(e,r){1&e&&(pe(0,"footer",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"h2"),Oe(5,"This is a sample application"),ge(),pe(6,"p",19),Oe(7,"Implementing a secure real time app with OpenVidu"),ge()(),pe(8,"div",18)(9,"div",20)(10,"div",21)(11,"h2"),Oe(12,"Technologies"),ge(),pe(13,"ul")(14,"li")(15,"a",22),Oe(16,"OpenVidu"),ge()(),pe(17,"li")(18,"a",23),Oe(19,"Angular"),ge()(),pe(20,"li")(21,"a",24),Oe(22,"Angular Material"),ge()(),pe(23,"li")(24,"a",25),Oe(25,"Spring Framework"),ge()()()(),pe(26,"div",21)(27,"h2"),Oe(28,"Connect"),ge(),pe(29,"ul")(30,"li")(31,"a",26),Oe(32,"GitHub repository"),ge()()()()()()()()())}var BW=function(){var e=function(){function r(t,n){d(this,r),this.router=t,this.authenticationService=n}return f(r,[{key:"isVideoSessionUrl",value:function(){return"/lesson/"===this.router.url.substring(0,8)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(B(Tn),B(bi))},e.\u0275cmp=Ht({type:e,selectors:[["app-root"]],decls:14,vars:3,consts:[["sidenav",""],["mat-button","",1,"sidenav-button",3,"click"],[4,"ngIf"],["o","outlet"],["class","page-footer back-primary color-secondary mat-elevation-z5",4,"ngIf"],["color","primary",1,"mat-elevation-z6"],["mat-button","","routerLink","/","id","navbar-logo"],[1,"fill-remaining-space"],["fxLayout","row","fxShow","false","fxShow.gt-sm","",4,"ngIf"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click",4,"ngIf"],["fxLayout","row","fxShow","false","fxShow.gt-sm",""],["mat-button","","routerLink","/lessons"],["mat-button","","routerLink","/profile"],["mat-button","",3,"click"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"click"],[1,"page-footer","back-primary","color-secondary","mat-elevation-z5"],[1,"container"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutAlign.xs","start"],["fxFlex","50%","fxFlex.xs","100%"],[1,"grey-text","text-lighten-4"],["fxLayout","row","fxLayoutAlign","end start","fxLayoutAlign.xs","start"],["fxFlex","50%"],["href","https://www.openvidu.io/","target","_blank",1,"hover-link"],["href","https://angular.io/","target","_blank",1,"hover-link"],["href","https://material.angular.io/","target","_blank",1,"hover-link"],["href","https://spring.io/","target","_blank",1,"hover-link"],["href","https://github.com/OpenVidu","target","_blank",1,"hover-link"]],template:function(t,n){if(1&t){var i=Nt();pe(0,"mat-sidenav-container")(1,"mat-sidenav",null,0)(3,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/lessons"]),s.close()}),Oe(4,"Lessons"),ge(),pe(5,"button",1),Ge("click",function(){yt(i);var s=Qn(2);return n.router.navigate(["/profile"]),s.close()}),Oe(6,"Profile"),ge(),pe(7,"button",1),Ge("click",function(){return yt(i),Qn(2).close(),n.authenticationService.directLogOut()}),Oe(8,"Logout"),ge()(),$e(9,NW,7,2,"header",2),pe(10,"main"),Xt(11,"router-outlet",null,3),ge(),$e(13,VW,33,0,"footer",4),ge()}if(2&t){var a=Qn(12);ke(9),xe("ngIf",!n.isVideoSessionUrl()),ke(1),xe("@routerTransition",a.isActivated&&a.activatedRoute.routeConfig.path),ke(3),xe("ngIf",!n.isVideoSessionUrl())}},directives:[UD,jD,rs,Jr,T8,Td,Jo,JS,Nu,Ig,es,Qc],styles:["mat-sidenav[_ngcontent-%COMP%]{width:250px}mat-sidenav-container[_ngcontent-%COMP%]{height:100%}footer.page-footer[_ngcontent-%COMP%]{margin:0}footer[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:10px}.sidenav-button[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}header[_ngcontent-%COMP%] #navbar-logo[_ngcontent-%COMP%]{font-weight:700}footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:0}"],data:{animation:[FW]}}),e}(),HW=function(){var e=f(function r(){d(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=gt({type:e,bootstrap:[BW]}),e.\u0275inj=vt({providers:[bi,tx,Ug,Gg,Yu],imports:[[Ek,O3,yV,IV,R8,WU,IW]]}),e}();(function WP(){false})(),r2().bootstrapModule(HW)},9069:function(be){"use strict";var k,X="object"==typeof Reflect?Reflect:null,U=X&&"function"==typeof X.apply?X.apply:function(K,S,m){return Function.prototype.apply.call(K,S,m)};k=X&&"function"==typeof X.ownKeys?X.ownKeys:Object.getOwnPropertySymbols?function(K){return Object.getOwnPropertyNames(K).concat(Object.getOwnPropertySymbols(K))}:function(K){return Object.getOwnPropertyNames(K)};var M=Number.isNaN||function(K){return K!=K};function I(){I.init.call(this)}be.exports=I,be.exports.once=function Y(W,K){return new Promise(function(S,m){function C(T){W.removeListener(K,$),m(T)}function $(){"function"==typeof W.removeListener&&W.removeListener("error",C),S([].slice.call(arguments))}D(W,K,$,{once:!0}),"error"!==K&&function j(W,K,S){"function"==typeof W.on&&D(W,"error",K,S)}(W,C,{once:!0})})},I.EventEmitter=I,I.prototype._events=void 0,I.prototype._eventsCount=0,I.prototype._maxListeners=void 0;var f=10;function d(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function P(W){return void 0===W._maxListeners?I.defaultMaxListeners:W._maxListeners}function p(W,K,S,m){var C,$,T;if(d(S),void 0===($=W._events)?($=W._events=Object.create(null),W._eventsCount=0):(void 0!==$.newListener&&(W.emit("newListener",K,S.listener?S.listener:S),$=W._events),T=$[K]),void 0===T)T=$[K]=S,++W._eventsCount;else if("function"==typeof T?T=$[K]=m?[S,T]:[T,S]:m?T.unshift(S):T.push(S),(C=P(W))>0&&T.length>C&&!T.warned){T.warned=!0;var E=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(K)+" listeners added. Use emitter.setMaxListeners() to increase limit");E.name="MaxListenersExceededWarning",E.emitter=W,E.type=K,E.count=T.length,function q(W){console&&console.warn&&console.warn(W)}(E)}return W}function w(){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 R(W,K,S){var m={fired:!1,wrapFn:void 0,target:W,type:K,listener:S},C=w.bind(m);return C.listener=S,m.wrapFn=C,C}function Q(W,K,S){var m=W._events;if(void 0===m)return[];var C=m[K];return void 0===C?[]:"function"==typeof C?S?[C.listener||C]:[C]:S?function re(W){for(var K=new Array(W.length),S=0;S0&&(T=S[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var G=$[K];if(void 0===G)return!1;if("function"==typeof G)U(G,this,S);else{var g=G.length,V=y(G,g);for(m=0;m=0;T--)if(m[T]===S||m[T].listener===S){E=m[T].listener,$=T;break}if($<0)return this;0===$?m.shift():function H(W,K){for(;K+1=0;C--)this.removeListener(K,S[C]);return this},I.prototype.listeners=function(K){return Q(this,K,!0)},I.prototype.rawListeners=function(K){return Q(this,K,!1)},I.listenerCount=function(W,K){return"function"==typeof W.listenerCount?W.listenerCount(K):ie.call(W,K)},I.prototype.listenerCount=ie,I.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},4491:function(be,X,U){"use strict";var k=U(1897);be.exports=function(I){var p,f={stun:(I||{}).stun||U(8808),turn:(I||{}).turn||U(4576)},P=(I||{}).turnCount||0;function w(R,Q){for(var H,ie=[],y=[].concat(f[R]);y.length&&ie.lengthP&&d[p]<0&&(P=d[p]);return P}(j,Y);P.emit("volume_change",S,Q);var m=0;if(S>Q&&!P.speaking){for(var C=P.speakingHistory.length-3;C=2&&(P.speaking=!0,P.emit("speaking"))}else if(SQ)),K()}},R)}(),P}},3894:function(be){be.exports="function"==typeof Object.create?function(U,k){k&&(U.super_=k,U.prototype=Object.create(k.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}))}:function(U,k){if(k){U.super_=k;var q=function(){};q.prototype=k.prototype,U.prototype=new q,U.prototype.constructor=U}}},8659:function(be,X){var M,U=this&&this.__extends||(M=function(f,d){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,p){P.__proto__=p}||function(P,p){for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(P[w]=p[w])})(f,d)},function(I,f){function d(){this.constructor=I}M(I,f),I.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)});function k(M){if(!M)return k.__;Array.prototype.reduce||(Array.prototype.reduce=function(d,P){for(var p=P,w=0;w=this.maxBatchSize)this.nbrLogItemsSkipped+=b.length;else{if(null!=M.maxMessages){if(M.maxMessages<1)return;M.maxMessages-=b.length}this.batchBuffer=this.batchBuffer.concat(b);var F=this;$(this.batchTimeoutTimer,this.batchTimeout,function(){F.sendBatch.call(F)})}},x.prototype.batchBufferHasOverdueMessages=function(){for(var b=0;bthis.batchTimeout)return!0;return!1},x.prototype.batchBufferHasStrandedMessage=function(){return null!=M.maxMessages&&M.maxMessages<1&&this.batchBuffer.length>0},x.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},x.prototype.onSendingEnded=function(){C(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},x.prototype.setOptions=function(b){if(I("level",b,this),I("ipRegex",b,this),I("userAgentRegex",b,this),I("disallow",b,this),I("sendWithBufferLevel",b,this),I("storeInBufferLevel",b,this),I("bufferSize",b,this),I("batchSize",b,this),I("maxBatchSize",b,this),I("batchTimeout",b,this),I("sendTimeout",b,this),this.bufferSize0&&(this.buffer.push(Me),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([Me]),ve>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},x.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(C(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var b=this;$(this.sendTimeoutTimer,this.sendTimeout,function(){b.onSendingEnded.call(b)}),this.sendLogItems(this.batchBuffer,function(){b.batchBuffer.splice(0,b.nbrLogItemsBeingSent),b.nbrLogItemsSkipped>0&&(b.batchBuffer.push(m(4e3,"Lost "+b.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",b.appenderName)),b.nbrLogItemsSkipped=0),b.onSendingEnded.call(b)})}},x}();M.Appender=T;var E=function(x){function b(F){return x.call(this,F,b.prototype.sendLogItemsAjax)||this}return U(b,x),b.prototype.setOptions=function(F){return I("url",F,this),I("beforeSend",F,this),x.prototype.setOptions.call(this,F),this},b.prototype.sendLogItemsAjax=function(F,z){try{if(!f(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=M._createXMLHttpRequest();var de="/jsnlog.logger";null!=M.defaultAjaxUrl&&(de=M.defaultAjaxUrl),this.url&&(de=this.url),this.xhr.open("POST",de),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",M.requestId);var ve=this;this.xhr.onreadystatechange=function(){4==ve.xhr.readyState&&ve.xhr.status>=200&&ve.xhr.status<300&&z()};var me={r:M.requestId,lg:F};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,me):"function"==typeof M.defaultBeforeSend&&M.defaultBeforeSend.call(this,this.xhr,me);var De=JSON.stringify(me);this.xhr.send(De)}catch(Me){}},b}(T);M.AjaxAppender=E;var G=function(x){function b(F){return x.call(this,F,b.prototype.sendLogItemsConsole)||this}return U(b,x),b.prototype.clog=function(F){M._console.log(F)},b.prototype.cerror=function(F){M._console.error?M._console.error(F):this.clog(F)},b.prototype.cwarn=function(F){M._console.warn?M._console.warn(F):this.clog(F)},b.prototype.cinfo=function(F){M._console.info?M._console.info(F):this.clog(F)},b.prototype.cdebug=function(F){M._console.debug?M._console.debug(F):this.cinfo(F)},b.prototype.sendLogItemsConsole=function(F,z){try{if(!f(this)||!M._console)return;var de;for(de=0;de=this.level&&f(this)&&(z?(me=this.buildExceptionObject(z)).logData=P(F):me=F,d(this,(ve=w(me)).finalString))){if(this.onceOnly)for(de=this.onceOnly.length-1;de>=0;){if(new RegExp(this.onceOnly[de]).test(ve.finalString)){if(this.seenRegexes[de])return this;this.seenRegexes[de]=!0}de--}for(ve.meta=ve.meta||{},de=this.appenders.length-1;de>=0;)this.appenders[de].log(W(b),ve.msg,ve.meta,function(){},b,ve.finalString,this.loggerName),de--}return this},x.prototype.trace=function(b){return this.log(1e3,b)},x.prototype.debug=function(b){return this.log(2e3,b)},x.prototype.info=function(b){return this.log(3e3,b)},x.prototype.warn=function(b){return this.log(4e3,b)},x.prototype.error=function(b){return this.log(5e3,b)},x.prototype.fatal=function(b){return this.log(6e3,b)},x.prototype.fatalException=function(b,F){return this.log(6e3,b,F)},x}();M.Logger=g,M.createAjaxAppender=function V(x){return new E(x)},M.createConsoleAppender=function L(x){return new G(x)},N="undefined"!=typeof window?new E(""):new G(""),M.__=new M.Logger(""),M.__.setOptions({level:M.getDebugLevel(),appenders:[N]})})(k||(k={})),X.__esModule=!0,X.JL=k,"function"==typeof __jsnlog_configure&&__jsnlog_configure(k),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(M,I,f,d,P){return k("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:M?M.message||M:"",url:I,"line number":f,column:d},P),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(M){k("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:M.reason?M.reason.message:M.message||null},M.reason)})},1897:function(be){var X=["stun:","turn:"];be.exports=function(U){var q,M,k=(U||{}).url||U,I={};return("string"==typeof k||k instanceof String)&&(k=k.trim(),q=X[X.indexOf(k.slice(0,5))])?(M=(k=k.slice(5)).split("@"),I.username=U.username,I.credential=U.credential,M.length>1&&(k=M[1],M=M[0].split(":"),I.username=M[0],I.credential=(U||{}).credential||M[1]||""),I.url=q+k,I.urls=[I.url],I):U}},7490:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Connection=void 0;var k=U(2096),q=U(6946),M=U(7507),I=q.OpenViduLogger.getInstance(),f=function(){function d(P,p){this.session=P,this.disposed=!1;var w="'Connection' created ";p.role?(this.localOptions=p,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,w+="(local)"):(this.remoteOptions=p,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),w+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),I.info(w)}return d.prototype.sendIceCandidate=function(P){var p=this;I.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,P),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:P.candidate,sdpMid:P.sdpMid,sdpMLineIndex:P.sdpMLineIndex},function(w,R){w&&(I.error("Error sending ICE candidate: "+JSON.stringify(w)),p.session.emitEvent("exception",[new M.ExceptionEvent(p.session,M.ExceptionEventName.ICE_CANDIDATE_ERROR,p.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",w)]))})},d.prototype.initRemoteStreams=function(P){var p=this;P.forEach(function(w){var R={id:w.id,createdAt:w.createdAt,connection:p,hasAudio:w.hasAudio,hasVideo:w.hasVideo,audioActive:w.audioActive,videoActive:w.videoActive,typeOfVideo:w.typeOfVideo,frameRate:w.frameRate,videoDimensions:w.videoDimensions?JSON.parse(w.videoDimensions):void 0,filter:w.filter?w.filter:void 0},Q=new k.Stream(p.session,R);p.addStream(Q)}),I.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},d.prototype.addStream=function(P){P.connection=this,this.stream=P},d.prototype.removeStream=function(P){delete this.stream},d.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},d}();X.Connection=f},8074:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.EventDispatcher=void 0;var k=U(940),M=U(6946).OpenViduLogger.getInstance(),I=function(){function f(){this.userHandlerArrowHandler=new WeakMap,this.ee=new k}return f.prototype.onAux=function(d,P,p){var w=function(Q){Q?M.info(P,Q):M.info(P),p(Q)};return this.userHandlerArrowHandler.set(p,w),this.ee.on(d,w),this},f.prototype.onceAux=function(d,P,p){var w=this,R=function(ie){ie?M.info(P,ie):M.info(P),p(ie),w.userHandlerArrowHandler.delete(p)};return this.userHandlerArrowHandler.set(p,R),this.ee.once(d,R),this},f.prototype.offAux=function(d,P){if(P){var p=this.userHandlerArrowHandler.get(P);p&&this.ee.off(d,p),this.userHandlerArrowHandler.delete(P)}else this.ee.removeAllListeners(d);return this},f}();X.EventDispatcher=I},4540:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Filter=void 0;var k=U(2798),q=U(4103),I=U(6946).OpenViduLogger.getInstance(),f=function(){function d(P,p){this.handlers=new Map,this.type=P,this.options=p}return d.prototype.execMethod=function(P,p){var w=this;return new Promise(function(R,Q){var ie;I.info("Executing filter method to stream "+w.stream.streamId);var y,H=function(D){I.info("Filter method successfully executed on Stream "+w.stream.streamId);var W=Object.assign({},w.stream.filter);return w.stream.filter.lastExecMethod={method:P,params:y},D&&(w.stream.session.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.session,w.stream,"filter",w.stream.filter,W,"execFilterMethod")]),w.stream.streamManager.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.streamManager,w.stream,"filter",w.stream.filter,W,"execFilterMethod")])),R()};if(w.type.startsWith("VB:")){if("string"==typeof p)try{p=JSON.parse(p)}catch(j){return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+j))}if(y=p,"update"!==P)return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(P,'"')));if(!(null===(ie=w.stream.virtualBackgroundSinkElements)||void 0===ie?void 0:ie.VB))return Q(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));w.stream.virtualBackgroundSinkElements.VB.updateValues(p).then(function(){return H(!1)}).catch(function(j){return Q(j.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(j.name,j.message):new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+j))})}else{var re=void 0;if("string"!=typeof p)try{re=JSON.stringify(p)}catch(j){var Y="'params' property must be a JSON formatted object";return I.error(Y),Q(Y)}else re=p;y=re,w.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:w.stream.streamId,method:P,params:re},function(j,D){return j?(I.error("Error executing filter method for Stream "+w.stream.streamId,j),Q(401===j.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):j)):H(!0)})}})},d.prototype.addEventListener=function(P,p){var w=this;return new Promise(function(R,Q){I.info("Adding filter event listener to event "+P+" to stream "+w.stream.streamId),w.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:w.stream.streamId,eventType:P},function(ie,y){return ie?(I.error("Error adding filter event listener to event "+P+"for Stream "+w.stream.streamId,ie),Q(401===ie.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):ie)):(w.handlers.set(P,p),I.info("Filter event listener to event "+P+" successfully applied on Stream "+w.stream.streamId),R())})})},d.prototype.removeEventListener=function(P){var p=this;return new Promise(function(w,R){I.info("Removing filter event listener to event "+P+" to stream "+p.stream.streamId),p.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:p.stream.streamId,eventType:P},function(Q,ie){return Q?(I.error("Error removing filter event listener to event "+P+"for Stream "+p.stream.streamId,Q),R(401===Q.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):Q)):(p.handlers.delete(P),I.info("Filter event listener to event "+P+" successfully removed on Stream "+p.stream.streamId),w())})})},d}();X.Filter=f},4289:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.LocalRecorder=void 0;var d,k=U(5156),q=U(6946),M=U(543),I=U(8946),f=q.OpenViduLogger.getInstance(),P=function(){function p(w){this.stream=w,this.chunks=[],d=M.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=k.LocalRecorderState.READY}return p.prototype.record=function(w){var R=this;return new Promise(function(Q,ie){try{if("string"==typeof w||w instanceof String)return ie("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(w,'" }'));if("undefined"==typeof MediaRecorder)throw f.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(R.state!==k.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+R.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");f.log("Starting local recording of stream '"+R.stream.streamId+"' of connection '"+R.connectionId+"'"),w?w.mimeType||(w.mimeType="video/webm"):w={mimeType:"video/webm"},R.mediaRecorder=new MediaRecorder(R.stream.getMediaStream(),w),R.mediaRecorder.start()}catch(y){return ie(y)}return R.mediaRecorder.ondataavailable=function(y){y.data.size>0&&R.chunks.push(y.data)},R.mediaRecorder.onerror=function(y){f.error("MediaRecorder error: ",y)},R.mediaRecorder.onstart=function(){f.log("MediaRecorder started (state="+R.mediaRecorder.state+")")},R.mediaRecorder.onstop=function(){R.onStopDefault()},R.mediaRecorder.onpause=function(){f.log("MediaRecorder paused (state="+R.mediaRecorder.state+")")},R.mediaRecorder.onresume=function(){f.log("MediaRecorder resumed (state="+R.mediaRecorder.state+")")},R.state=k.LocalRecorderState.RECORDING,Q()})},p.prototype.stop=function(){var w=this;return new Promise(function(R,Q){try{if(w.state===k.LocalRecorderState.READY||w.state===k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' before");w.mediaRecorder.onstop=function(){return w.onStopDefault(),R()},w.mediaRecorder.stop()}catch(ie){return Q(ie)}})},p.prototype.pause=function(){var w=this;return new Promise(function(R,Q){try{return w.state!==k.LocalRecorderState.RECORDING?Q(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(w.mediaRecorder.pause(),w.state=k.LocalRecorderState.PAUSED,R())}catch(ie){return Q(ie)}})},p.prototype.resume=function(){var w=this;return new Promise(function(R,Q){try{if(w.state!==k.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.pause()' before");return w.mediaRecorder.resume(),w.state=k.LocalRecorderState.RECORDING,R()}catch(ie){return Q(ie)}})},p.prototype.preview=function(w){if(this.state!==k.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,d.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof w){var R=document.getElementById(w);R&&(this.videoPreview=R.appendChild(this.videoPreview))}else this.videoPreview=w.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},p.prototype.clean=function(){var w=this,R=function(){delete w.blob,w.chunks=[],w.state=k.LocalRecorderState.READY};this.state===k.LocalRecorderState.RECORDING||this.state===k.LocalRecorderState.PAUSED?this.stop().then(function(){return R()}).catch(function(){return R()}):R()},p.prototype.download=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var w=document.createElement("a");w.style.display="none",document.body.appendChild(w);var R=globalThis.URL.createObjectURL(this.blob);w.href=R,w.download=this.id+"."+I.getExtension(this.blob.type),w.click(),globalThis.URL.revokeObjectURL(R),document.body.removeChild(w)},p.prototype.getBlob=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},p.prototype.uploadAsBinary=function(w,R){var Q=this;return new Promise(function(ie,y){if(Q.state!==k.LocalRecorderState.FINISHED)return y(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+Q.state+"'). Call 'LocalRecorder.stop()' before"));var H=new XMLHttpRequest;if(H.open("POST",w,!0),"object"==typeof R)for(var re=0,Y=Object.keys(R);re0&&E[E.length-1])&&(6===L[0]||2===L[0])){C=0;continue}if(3===L[0]&&(!E||L[1]>E[0]&&L[1]T&&clearTimeout(F),m.getVideoDimensions().then(function(z){(z.width!==x||z.height!==b)&&(clearTimeout(F),E.sendVideoDimensionsChangedEvent(m,C,x,b,z.width,z.height))})},$)},S.prototype.sendVideoDimensionsChangedEvent=function(m,C,$,T,E,G){var g=this;m.stream.videoDimensions={width:E||0,height:G||0},this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(m.stream.videoDimensions),reason:C},function(V,L){V?D.error("Error sending 'streamPropertyChanged' event",V):(g.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(g.session,m.stream,"videoDimensions",m.stream.videoDimensions,{width:$,height:T},C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,"videoDimensions",m.stream.videoDimensions,{width:$,height:T},C)]),g.session.sendVideoData(m))})},S.prototype.sendTrackChangedEvent=function(m,C,$,T,E){var G=this,g={label:$},V={label:T};m.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:E,newValue:JSON.stringify({newLabel:T}),reason:C},function(L,N){L?D.error("Error sending 'streamPropertyChanged' event",L):(G.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(G.session,m.stream,E,V,g,C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,E,V,g,C)]))}):(this.session.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(this.session,m.stream,E,V,g,C)]),m.emitEvent("streamPropertyChanged",[new P.StreamPropertyChangedEvent(m,m.stream,E,V,g,C)]))},S.prototype.generateMediaConstraints=function(m){var C=this;return new Promise(function($,T){var E={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},G=m.audioSource,g=m.videoSource;if((null===G||!1===G)&&(E.constraints.audio=!1),(null===g||!1===g)&&(E.constraints.video=!1),!1===E.constraints.audio&&!1===E.constraints.video)return T(new p.OpenViduError(p.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&G instanceof MediaStreamTrack&&(E.audioTrack=G),"undefined"!=typeof MediaStreamTrack&&g instanceof MediaStreamTrack&&(E.videoTrack=g),void 0===G&&(E.constraints.audio=!0),void 0===g&&(E.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==g&&!1!==g){if(m.resolution){var V=m.resolution.toLowerCase().split("x"),L=Number(V[0]),N=Number(V[1]);E.constraints.video={width:{ideal:L},height:{ideal:N}}}m.frameRate&&(E.constraints.video.frameRate={ideal:m.frameRate})}return C.configureDeviceIdOrScreensharing(E,m,$,T),$(E)})},S.prototype.startWs=function(m){var C={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:m,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,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),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new Y.clients.JsonRpcClient(C)},S.prototype.onMasterNodeCrashedNotification=function(m){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},S.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},S.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},S.prototype.sendRequest=function(m,C,$){var T;C&&C instanceof Function&&($=C,C={}),D.debug('Sending request: {method:"'+m+'", params: '+JSON.stringify(C)+"}"),null===(T=this.jsonRpcClient)||void 0===T||T.send(m,C,$)},S.prototype.getWsUri=function(){return this.wsUri},S.prototype.getSecret=function(){return this.secret},S.prototype.getRecorder=function(){return this.recorder},S.prototype.generateAudioDeviceError=function(m,C){var $,T;switch("Error"===m.name&&(m.name=m.constructor.name),m.name.toLowerCase()){case"notfounderror":return $=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T=m.toString(),new p.OpenViduError($,T);case"notallowederror":return $=p.OpenViduErrorName.DEVICE_ACCESS_DENIED,T=m.toString(),new p.OpenViduError($,T);case"overconstrainederror":return"deviceid"===m.constraint.toLowerCase()?($=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,T="Audio input device with deviceId '"+C.audio.deviceId.exact+"' not found"):($=p.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,T="Audio input device doesn't support the value passed for constraint '"+m.constraint+"'"),new p.OpenViduError($,T);case"notreadableerror":return $=p.OpenViduErrorName.DEVICE_ALREADY_IN_USE,T=m.toString(),new p.OpenViduError($,T);default:return new p.OpenViduError(p.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,m.toString())}},S.prototype.addAlreadyProvidedTracks=function(m,C,$){return m.videoTrack&&(C.addTrack(m.videoTrack),$&&($.lastVideoTrackConstraints=m.constraints.video?m.constraints.video:m.videoTrack.getConstraints())),m.audioTrack&&C.addTrack(m.audioTrack),C},S.prototype.configureDeviceIdOrScreensharing=function(m,C,$,T){var E=this,G=C.audioSource,g=C.videoSource;if("string"==typeof G&&(m.constraints.audio={deviceId:{exact:G}}),"string"==typeof g){if(this.isScreenShare(g)){if(this.checkScreenSharingCapabilities()){if(W.isElectron()){var L="screen:",x=g.substr(g.indexOf(L)+L.length);return m.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:x}},$(m)}if(!this.advancedConfiguration.screenShareChromeExtension||W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return $(m);var b=W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()?C.videoSource:void 0;return void ie.getScreenId(b,function(F,z,de){if(F){if("not-installed"===F){var me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,E.advancedConfiguration.screenShareChromeExtension?E.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return D.error(me),T(me)}return"installed-disabled"===F?(me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),D.error(me),T(me)):"permission-denied"===F?(me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),D.error(me),T(me)):(me=new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),D.error(me),D.error(F),T(me))}return m.constraints.video=de.video,$(m)})}return void y.getScreenConstraints(function(F,z){if(!(F||z.mandatory&&"screen"===z.mandatory.chromeMediaSource))return m.constraints.video=z,$(m);if("permission-denied"===F||"PermissionDeniedError"===F){var de=new p.OpenViduError(p.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return D.error(de),T(de)}var ve=E.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();y.getChromeExtensionStatus(ve,function(me){if("installed-disabled"===me){var De=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return D.error(De),T(De)}if("not-installed"===me){var Me=new p.OpenViduError(p.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,E.advancedConfiguration.screenShareChromeExtension);return D.error(Me),T(Me)}})})}var V=new p.OpenViduError(p.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+W.getName()+" "+W.getVersion());return D.error(V),T(V)}this.setVideoSource(m,g)}},S.prototype.setVideoSource=function(m,C){m.constraints.video||(m.constraints.video={}),m.constraints.video.deviceId={exact:C}},S.prototype.disconnectCallback=function(){D.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},S.prototype.reconnectingCallback=function(){D.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},S.prototype.reconnectWebsocketThroughRpcConnectMethod=function(m){var C=this;this.sendRequest("connect",{sessionId:m,reconnect:!0},function($,T){if($)if(C.isMasterNodeCrashed())D.warn("Master Node has crashed!");else{D.error($);var E=function(V,L){D.warn(L),C.session.onLostConnection(V),C.jsonRpcClient.close(4101,"Reconnection fault: "+L)};40007===$.code&&"reconnection error"===$.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===C.life?E("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):C.sendRequest("sessionStatus",{sessionId:C.session.sessionId},function(V,L){null!=V?console.error("Error checking session status",V):C.life===L.life?E("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):E("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else C.jsonRpcClient.resetPing(),C.session.onRecoveredConnection()})},S.prototype.reconnectedCallback=function(){if(D.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{D.warn("There was no previous connection when running reconnection callback");var m=new d.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[m]),m.callDefaultBehavior()}else alert("Connection error. Please reload page.")},S.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},S.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof f.Session||(D.warn("Session instance not found"),!1)},S.prototype.isScreenShare=function(m){return"screen"===m||"window"===m||W.isElectron()&&m.startsWith("screen:")},S}();X.OpenVidu=K},4259:function(be,X,U){"use strict";var Y,k=this&&this.__extends||(Y=function(D,W){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,S){K.__proto__=S}||function(K,S){for(var m in S)Object.prototype.hasOwnProperty.call(S,m)&&(K[m]=S[m])})(D,W)},function(j,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function W(){this.constructor=j}Y(j,D),j.prototype=null===D?Object.create(D):(W.prototype=D.prototype,new W)}),q=this&&this.__awaiter||function(Y,j,D,W){return new(D||(D=Promise))(function(S,m){function C(E){try{T(W.next(E))}catch(G){m(G)}}function $(E){try{T(W.throw(E))}catch(G){m(G)}}function T(E){E.done?S(E.value):function K(S){return S instanceof D?S:new D(function(m){m(S)})}(E.value).then(C,$)}T((W=W.apply(Y,j||[])).next())})},M=this&&this.__generator||function(Y,j){var W,K,S,m,D={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(T){return function(E){return function $(T){if(W)throw new TypeError("Generator is already executing.");for(;D;)try{if(W=1,K&&(S=2&T[0]?K.return:T[0]?K.throw||((S=K.return)&&S.call(K),0):K.next)&&!(S=S.call(K,T[1])).done)return S;switch(K=0,S&&(T=[2&T[0],S.value]),T[0]){case 0:case 1:S=T;break;case 4:return D.label++,{value:T[1],done:!1};case 5:D.label++,K=T[1],T=[0];continue;case 7:T=D.ops.pop(),D.trys.pop();continue;default:if(!(S=(S=D.trys).length>0&&S[S.length-1])&&(6===T[0]||2===T[0])){D=0;continue}if(3===T[0]&&(!S||T[1]>S[0]&&T[1]=1?C():(D.videoReference.addEventListener("loadedmetadata",m=function(){if(D.videoReference.videoWidth)C();else var T=setInterval(function(){D.videoReference.videoWidth&&(clearInterval(T),C())},40)}),S&&document.body.appendChild(D.videoReference))})},j.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},j.prototype.initializeVideoReference=function(D){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(H.isSafariBrowser()||H.isIPhoneOrIPad()&&(H.isChromeMobileBrowser()||H.isEdgeMobileBrowser()||H.isOperaMobileBrowser()||H.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(D),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},j.prototype.replaceTrackInMediaStream=function(D,W){var S,K=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===D.kind?(S=K.getVideoTracks()[0],W&&(this.stream.lastVideoTrackConstraints=D.getConstraints())):S=K.getAudioTracks()[0],S.enabled=!1,S.stop(),K.removeTrack(S),K.addTrack(D);var m={oldLabel:(null==S?void 0:S.label)||"",newLabel:(null==D?void 0:D.label)||""};"video"===D.kind&&W?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"videoActive"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===D.kind&&W&&this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"audioActive"),"audio"===D.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},j.prototype.setPermissionDialogTimer=function(D){var W=this;this.permissionDialogTimeout=setTimeout(function(){W.emitEvent("accessDialogOpened",[])},D)},j.prototype.clearPermissionDialogTimer=function(D,W){clearTimeout(this.permissionDialogTimeout),Date.now()-D>W&&this.emitEvent("accessDialogClosed",[])},j.prototype.replaceTrackInRtcRtpSender=function(D){return q(this,void 0,void 0,function(){var W,K;return M(this,function(S){switch(S.label){case 0:if(W=this.stream.getRTCPeerConnection().getSenders(),"video"===D.kind){if(!(K=W.find(function(m){return!!m.track&&"video"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==D.kind)throw new Error("Unknown track kind "+D.kind);if(!(K=W.find(function(m){return!!m.track&&"audio"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,K.replaceTrack(D)];case 1:return S.sent(),[2]}})})},j}(d.StreamManager);X.Publisher=re},8402:function(be,X,U){"use strict";var E,k=this&&this.__extends||(E=function(g,V){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,N){L.__proto__=N}||function(L,N){for(var x in N)Object.prototype.hasOwnProperty.call(N,x)&&(L[x]=N[x])})(g,V)},function(G,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function V(){this.constructor=G}E(G,g),G.prototype=null===g?Object.create(g):(V.prototype=g.prototype,new V)}),q=this&&this.__awaiter||function(E,G,g,V){return new(g||(g=Promise))(function(N,x){function b(de){try{z(V.next(de))}catch(ve){x(ve)}}function F(de){try{z(V.throw(de))}catch(ve){x(ve)}}function z(de){de.done?N(de.value):function L(N){return N instanceof g?N:new g(function(x){x(N)})}(de.value).then(b,F)}z((V=V.apply(E,G||[])).next())})},M=this&&this.__generator||function(E,G){var V,L,N,x,g={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return x={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function b(z){return function(de){return function F(z){if(V)throw new TypeError("Generator is already executing.");for(;g;)try{if(V=1,L&&(N=2&z[0]?L.return:z[0]?L.throw||((N=L.return)&&N.call(L),0):L.next)&&!(N=N.call(L,z[1])).done)return N;switch(L=0,N&&(z=[2&z[0],N.value]),z[0]){case 0:case 1:N=z;break;case 4:return g.label++,{value:z[1],done:!1};case 5:g.label++,L=z[1],z=[0];continue;case 7:z=g.ops.pop(),g.trys.pop();continue;default:if(!(N=(N=g.trys).length>0&&N[N.length-1])&&(6===z[0]||2===z[0])){g=0;continue}if(3===z[0]&&(!N||z[1]>N[0]&&z[1]0){var b=[];g.to.forEach(function(z){z.connectionId&&b.push(z.connectionId)}),x.to=b}else x.to=[];x.data=g.data?g.data:"";var F=g.type?g.type:"signal";F&&"signal:"!==F.substring(0,7)&&(F="signal:"+F),x.type=F,V.openvidu.sendRequest("sendMessage",{message:JSON.stringify(x)},function(z,de){return z?N(z):L()})})},G.prototype.on=function(g,V){var L,N,x,b;return E.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",V),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableHarkSpeakingEvent()}),(null===(N=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableHarkStoppedSpeakingEvent()}),(null===(b=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===b?void 0:b.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},G.prototype.once=function(g,V){var L,N,x,b;return E.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",V),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableOnceHarkSpeakingEvent()}),(null===(N=null===(L=this.connection)||void 0===L?void 0:L.stream)||void 0===N?void 0:N.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(F){var z;(null===(z=F.stream)||void 0===z?void 0:z.hasAudio)&&F.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(b=null===(x=this.connection)||void 0===x?void 0:x.stream)||void 0===b?void 0:b.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},G.prototype.off=function(g,V){var N,x,b,F,L=this;return E.prototype.offAux.call(this,g,V),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(z){var de;(null===(de=z.stream)||void 0===de?void 0:de.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,z.stream.streamManager)||z.stream.disableHarkSpeakingEvent(!1))}),(null===(x=null===(N=this.connection)||void 0===N?void 0:N.stream)||void 0===x?void 0:x.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(z){var de;(null===(de=z.stream)||void 0===de?void 0:de.streamManager)&&(L.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,z.stream.streamManager)||z.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(F=null===(b=this.connection)||void 0===b?void 0:b.stream)||void 0===F?void 0:F.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},G.prototype.onParticipantJoined=function(g){var V=this;this.getConnection(g.id,"").then(function(L){C.warn("Connection "+L.connectionId+" already exists in connections list")}).catch(function(L){var N=new I.Connection(V,g);V.remoteConnections.set(g.id,N),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",N,"")])})},G.prototype.onParticipantLeft=function(g){var V=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(L){if(L.stream){var N=L.stream,x=new y.StreamEvent(!0,V,"streamDestroyed",N,g.reason);V.ee.emitEvent("streamDestroyed",[x]),x.callDefaultBehavior(),V.remoteStreamsCreated.delete(N.streamId)}V.remoteConnections.delete(L.connectionId),V.ee.emitEvent("connectionDestroyed",[new p.ConnectionEvent(!1,V,"connectionDestroyed",L,g.reason)])}).catch(function(L){C.error(L)})},G.prototype.onParticipantPublished=function(g){var N,V=this,L=function(b){V.remoteConnections.set(b.connectionId,b),V.remoteStreamsCreated.get(b.stream.streamId)||V.ee.emitEvent("streamCreated",[new y.StreamEvent(!1,V,"streamCreated",b.stream,"")]),V.remoteStreamsCreated.set(b.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(x){N=x,g.metadata=x.data,N.remoteOptions=g,N.initRemoteStreams(g.streams),L(N)}).catch(function(x){N=new I.Connection(V,g),L(N)})},G.prototype.onParticipantUnpublished=function(g){var V=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(L){var N=new y.StreamEvent(!0,V,"streamDestroyed",L.stream,g.reason);V.ee.emitEvent("streamDestroyed",[N]),N.callDefaultBehavior();var x=L.stream.streamId;V.remoteStreamsCreated.delete(x),L.removeStream(x)}).catch(function(L){C.error(L)})},G.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},G.prototype.onNewMessage=function(g){var V=this;C.info("New signal: "+JSON.stringify(g));var L=g.type?g.type.replace(/^(signal:)/,""):void 0;g.from?this.getConnection(g.from,"Connection '"+g.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(N){V.ee.emitEvent("signal",[new ie.SignalEvent(V,L,g.data,N)]),g.type&&"signal"!==g.type&&V.ee.emitEvent(g.type,[new ie.SignalEvent(V,L,g.data,N)])}).catch(function(N){C.error(N)}):(this.ee.emitEvent("signal",[new ie.SignalEvent(this,L,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new ie.SignalEvent(this,L,g.data,void 0)]))},G.prototype.onStreamPropertyChanged=function(g){var V=this,L=function(x){if(x.stream&&x.stream.streamId===g.streamId){var b=x.stream,F=void 0;switch(g.property){case"audioActive":F=b.audioActive,g.newValue="true"===g.newValue,b.audioActive=g.newValue;break;case"videoActive":F=b.videoActive,g.newValue="true"===g.newValue,b.videoActive=g.newValue;break;case"videoDimensions":F=b.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),b.videoDimensions=g.newValue;break;case"filter":F=b.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(b.filter=new f.Filter(g.newValue.type,g.newValue.options),b.filter.stream=b,g.newValue.lastExecMethod&&(b.filter.lastExecMethod=g.newValue.lastExecMethod)):delete b.filter,g.newValue=b.filter}V.ee.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(V,b,g.property,g.newValue,F,g.reason)]),b.streamManager&&b.streamManager.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(b.streamManager,b,g.property,g.newValue,F,g.reason)])}else C.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?L(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(N){L(N)}).catch(function(N){C.error(N)})},G.prototype.onConnectionPropertyChanged=function(g){var V;switch(g.property){case"role":V=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":V=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new re.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,V)])},G.prototype.onNetworkQualityLevelChangedChanged=function(g){var V=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new Y.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(L){V.ee.emitEvent("networkQualityLevelChanged",[new Y.NetworkQualityLevelChangedEvent(V,g.newValue,g.oldValue,L)])}).catch(function(L){C.error(L)})},G.prototype.recvIceCandidate=function(g){var L=new RTCIceCandidate({candidate:g.candidate,sdpMLineIndex:g.sdpMLineIndex,sdpMid:g.sdpMid});this.getConnection(g.senderConnectionId,"Connection not found for connectionId "+g.senderConnectionId+" owning endpoint "+g.endpointName+". Ice candidate will be ignored: "+L).then(function(N){var x=N.stream;x.getWebRtcPeer().addIceCandidate(L).catch(function(b){C.error("Error adding candidate for "+x.streamId+" stream of endpoint "+g.endpointName+": "+b)})}).catch(function(N){C.error(N)})},G.prototype.onSessionClosed=function(g){C.info("Session closed: "+JSON.stringify(g));var V=g.sessionId;void 0!==V?this.ee.emitEvent("session-closed",[{session:V}]):C.warn("Session undefined on session closed",g)},G.prototype.onLostConnection=function(g){C.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},G.prototype.onRecoveredConnection=function(){C.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},G.prototype.onMediaError=function(g){C.error("Media error: "+JSON.stringify(g));var V=g.error;V?this.ee.emitEvent("error-media",[{error:V}]):C.warn("Received undefined media error:",g)},G.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new R.RecordingEvent(this,"recordingStarted",g.id,g.name)])},G.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new R.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},G.prototype.onFilterEventDispatched=function(g){var V=this,L=g.connectionId;this.getConnection(L,"No connection found for connectionId "+L).then(function(N){C.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var x=N.stream;if(!x||!x.filter)return C.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(x.streamId," but there is no ").concat(x?"filter":"stream"," defined"));var b=x.filter.handlers.get(g.eventType);if(!b||"function"!=typeof b){var F=Array.from(x.filter.handlers.keys());return C.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(F.join(",")))}b.call(V,new w.FilterEvent(x.filter,g.eventType,g.data))})},G.prototype.onForciblyReconnectSubscriber=function(g){var V=this;return new Promise(function(L,N){V.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(x){if(!x.stream||x.stream.streamId!==g.streamId){var z="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return C.error(z),N(z)}var b=x.stream;if(b.setupReconnectionEventEmitter(L,N)){if(null!=b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,N("Ongoing forced subscriber reconnection");b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var F=function(){var ve=b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete b.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,V.onForciblyReconnectSubscriber(ve)};return b.reconnectionEventEmitter.once("success",function(){F()}),void b.reconnectionEventEmitter.once("error",function(){F()})}b.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return b.finalResolveForSubscription(!0,L)}).catch(function(de){return b.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(de.toString()),N)})}).catch(function(x){return C.error(x),N(x)})})},G.prototype.reconnectBrokenStreams=function(){C.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(V){V.stream&&V.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Subscriber "+V.stream.streamId),V.stream.initWebRtcPeerReceive(!0),g=!0)}),g||C.info("There were no media streams in need of a reconnection")},G.prototype.emitEvent=function(g,V){this.ee.emitEvent(g,V)},G.prototype.leave=function(g,V){var L=this;if(C.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(x,b){x&&C.error("leaveRoom error: ".concat(JSON.stringify(x))),L.openvidu.closeWs()}),this.stopPublisherStream(V),!this.connection.disposed){var N=new Q.SessionDisconnectedEvent(this,V);this.ee.emitEvent("sessionDisconnected",[N]),N.callDefaultBehavior()}}else C.warn("You were not connected to the session "+this.sessionId);C.flush()},G.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:$.getDescription()?$.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},G.prototype.sendVideoData=function(g,V,L,N){var b,F,x=this;if(void 0===V&&(V=1),void 0===L&&(L=!1),void 0===N&&(N=1),$.isChromeBrowser()||$.isChromeMobileBrowser()||$.isOperaBrowser()||$.isOperaMobileBrowser()||$.isEdgeBrowser()||$.isEdgeMobileBrowser()||$.isElectron()||$.isSafariBrowser()&&!$.isIonicIos()||$.isAndroidBrowser()||$.isSamsungBrowser()||$.isIonicAndroid()||$.isIOSWithSafari()){var z=function(){return q(x,void 0,void 0,function(){var me,De,Me;return M(this,function(Fe){switch(Fe.label){case 0:return"connected"!==(me=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,me.getStats()];case 1:De=Fe.sent(),Me=[],De.forEach(function(Le){"frameWidth"in Le&&"frameHeight"in Le&&0===Me.length&&Me.push(Le)}),Me.length>0&&this.openvidu.sendRequest("videoData",{height:Me[0].frameHeight,width:Me[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(Le,Ke){Le&&C.error("Error sending 'videoData' event",Le)}),Fe.label=2;case 2:return[2]}})})};if(L){var de=1;this.videoDataInterval=setInterval(function(){de0)return!0;var b=0;if(L){var F=L.ee.getListeners(g);V&&(F=F.filter(function(z){return z.once})),b=F.length}return b>0},G.prototype.getTokenParams=function(g){var V=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(V){var L={protocol:V[1],host:V[2],hostname:V[3],port:V[4],pathname:V[5],search:V[6],hash:V[7]},N=g.split("?"),x=decodeURI(N[1]).split("&").map(function(b){return b.split("=")}).reduce(function(b,F){return b[F[0]]=F[1],b},{});return{sessionId:x.sessionId,secret:x.secret,recorder:x.recorder,webrtcStatsInterval:x.webrtcStatsInterval,sendBrowserLogs:x.sendBrowserLogs,edition:x.edition,wsUri:L.protocol+"://"+L.host+"/openvidu",httpUri:"https://"+L.host}}throw new Error('Token not valid: "'.concat(g,'"'))},G.prototype.connectAux=function(g){var V=this;return new Promise(function(L,N){V.openvidu.startWs(function(x){if(x)return N(x);var b=V.initializeParams(g);V.openvidu.sendRequest("joinRoom",b,function(F,z){if(F)return N(F);V.processJoinRoomResponse(z,g),V.connection=new I.Connection(V,z);var de={connections:new Array,streams:new Array};return z.value.forEach(function(me){var De=new I.Connection(V,me);V.remoteConnections.set(De.connectionId,De),de.connections.push(De),De.stream&&(V.remoteStreamsCreated.set(De.stream.streamId,!0),de.streams.push(De.stream))}),V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",V.connection,"")]),de.connections.forEach(function(me){V.ee.emitEvent("connectionCreated",[new p.ConnectionEvent(!1,V,"connectionCreated",me,"")])}),de.streams.forEach(function(me){V.ee.emitEvent("streamCreated",[new y.StreamEvent(!1,V,"streamCreated",me,"")])}),!!z.recordingId&&!!z.recordingName&&V.ee.emitEvent("recordingStarted",[new R.RecordingEvent(V,"recordingStarted",z.recordingId,z.recordingName)]),L()})})})},G.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},G.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},G.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},G.prototype.getConnection=function(g,V){var L=this;return new Promise(function(N,x){var b=L.remoteConnections.get(g);return b?N(b):L.connection.connectionId===g?N(L.connection):x(new j.OpenViduError(j.OpenViduErrorName.GENERIC_ERROR,V))})},G.prototype.getRemoteConnection=function(g,V){var L=this;return new Promise(function(N,x){var b=L.remoteConnections.get(g);if(b)return N(b);var F="Remote connection "+g+" unknown when '"+V+"'. Existing remote connections: "+JSON.stringify(L.remoteConnections.keys());return x(new j.OpenViduError(j.OpenViduErrorName.GENERIC_ERROR,F))})},G.prototype.processToken=function(g){var V=this.getTokenParams(g);this.sessionId=V.sessionId,V.secret&&(this.openvidu.secret=V.secret),V.recorder&&(this.openvidu.recorder=!0),V.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=V.webrtcStatsInterval),V.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=V.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===V.edition||"enterprise"===V.edition,this.openvidu.isEnterprise="enterprise"===V.edition,this.openvidu.wsUri=V.wsUri,this.openvidu.httpUri=V.httpUri},G.prototype.processJoinRoomResponse=function(g,V){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var L=0,N=g.customIceServers;L0&&E[E.length-1])&&(6===L[0]||2===L[0])){C=0;continue}if(3===L[0]&&(!E||L[1]>E[0]&&L[1]0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=C,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ie.TypeOfVideo.CUSTOM:this.isSendScreen()?ie.TypeOfVideo.SCREEN:ie.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var T;$.streamManager.updateMediaStream($.mediaStream),D.debug("Video srcObject ["+(null===(T=$.mediaStream)||void 0===T?void 0:T.id)+"] updated in stream ["+$.streamId+"]")})}return S.prototype.reconnect=function(){return this.reconnectStream("API")},S.prototype.applyFilter=function(m,C){var $=this;return new Promise(function(T,E){return k($,void 0,void 0,function(){var G,g,V,L,N,x,b=this;return q(this,function(F){if(this.filter)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(G=function(de,ve){if(de)return D.error("Error applying filter for Stream "+b.streamId,de),E(401===de.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):de);D.info("Filter successfully applied on Stream "+b.streamId);var me=b.filter;return b.filter=new M.Filter(m,C),b.filter.stream=b,ve&&(b.session.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(b.session,b,"filter",b.filter,me,"applyFilter")]),b.streamManager.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(b.streamManager,b,"filter",b.filter,me,"applyFilter")])),T(b.filter)},m.startsWith("VB:")){if(!this.hasVideo)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(g=this.session.token?this.session.token:C.token))return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(V=this.session.getTokenParams(g)).edition&&"enterprise"!==V.edition)return[2,E(new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];g=encodeURIComponent(btoa(g)),D.info("Applying Virtual Background to stream "+this.streamId),L=function(){return k(b,void 0,void 0,function(){var de,ve,me,De,Me,Le;return q(this,function(Ke){switch(Ke.label){case 0:return Ke.trys.push([0,8,,9]),de=this.streamId+"_"+(0,re.v4)(),ve=this.mediaStream.clone(),(me=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+de,me.srcObject=ve,me.muted=!0,this.virtualBackgroundSourceElements={videoClone:me,mediaStreamClone:ve},VirtualBackground.VirtualBackground.hideHtmlElement(me,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(me,de),[4,me.play()];case 1:switch(Ke.sent(),De=new VirtualBackground.VirtualBackground({id:de,openviduServerUrl:new URL(V.httpUri),openviduToken:g,inputVideo:me,inputResolution:"160x96",outputFramerate:24}),Me=void 0,m){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,De.backgroundBlur(C)];case 3:case 5:return Me=Ke.sent(),[3,7];case 4:return[4,De.backgroundImage(C)];case 6:throw new Error("Unknown Virtual Background filter: "+m);case 7:return this.virtualBackgroundSinkElements={VB:De,video:Me},me.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),G(void 0,!1),[3,9];case 8:return Le=Ke.sent(),G(Le.name===Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new Q.OpenViduError(Q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Le.message):Le,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((N=document.createElement("script")).type="text/javascript",N.src=V.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+g,N.onload=function(){return k(b,void 0,void 0,function(){var z;return q(this,function(de){switch(de.label){case 0:return de.trys.push([0,2,,3]),[4,L()];case 1:return de.sent(),T(new M.Filter(m,C)),[3,3];case 2:return z=de.sent(),E(z),[3,3];case 3:return[2]}})})},document.body.appendChild(N)):L().then(function(){return T(new M.Filter(m,C))}).catch(function(z){return E(z)})}else{if(!this.session.sessionConnected())return[2,E(this.session.notConnectedError())];D.info("Applying server filter to stream "+this.streamId),"string"!=typeof(x=C=null!=C?C:{})&&(x=JSON.stringify(x)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:m,options:x},function(z,de){G(z,!0)})}return[2]})})})},S.prototype.removeFilter=function(){return k(this,void 0,void 0,function(){return q(this,function(m){switch(m.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,m.sent()]}})})},S.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},S.prototype.getMediaStream=function(){return this.mediaStream},S.prototype.removeFilterAux=function(m){var C=this;return new Promise(function($,T){return k(C,void 0,void 0,function(){var E,G,g,L,V=this;return q(this,function(N){switch(N.label){case 0:if(E=function(b,F){if(b)return delete V.filter,D.error("Error removing filter for Stream "+V.streamId,b),T(401===b.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):b);D.info("Filter successfully removed from Stream "+V.streamId);var z=V.filter;return delete V.filter,F&&(V.session.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(V.session,V,"filter",V.filter,z,"applyFilter")]),V.streamManager.emitEvent("streamPropertyChanged",[new R.StreamPropertyChangedEvent(V.streamManager,V,"filter",V.filter,z,"applyFilter")])),$()},!this.filter)return[3,11];if(!(null===(L=this.filter)||void 0===L?void 0:L.type.startsWith("VB:")))return[3,9];N.label=1;case 1:return N.trys.push([1,7,,8]),G=this.virtualBackgroundSourceElements.mediaStreamClone,m?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(G.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(G.getVideoTracks()[0],!1)];case 3:N.sent(),N.label=4;case 4:return[3,6];case 5:G.getTracks().forEach(function(x){return x.stop()}),N.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,E(void 0,!1)];case 7:return g=N.sent(),[2,E(g,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,T(this.session.notConnectedError())];D.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(x,b){return E(x,!0)}),N.label=10;case 10:return[3,12];case 11:return[2,T(new Q.OpenViduError(Q.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},S.prototype.setMediaStream=function(m){this.mediaStream=m},S.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},S.prototype.getWebRtcPeer=function(){return this.webRtcPeer},S.prototype.subscribeToMyRemote=function(m){this.isSubscribeToRemote=m},S.prototype.setOutboundStreamOptions=function(m){this.outboundStreamOpts=m},S.prototype.subscribe=function(){var m=this;return new Promise(function(C,$){m.initWebRtcPeerReceive(!1).then(function(){return C()}).catch(function(T){return $(T)})})},S.prototype.publish=function(){var m=this;return new Promise(function(C,$){m.isLocalStreamReadyToPublish?m.initWebRtcPeerSend(!1).then(function(){return C()}).catch(function(T){return $(T)}):m.ee.once("stream-ready-to-publish",function(){m.publish().then(function(){return C()}).catch(function(T){return $(T)})})})},S.prototype.disposeWebRtcPeer=function(){var m;this.webRtcPeer&&(this.webRtcPeer.dispose(),m=this.webRtcPeer.getId()),this.stopWebRtcStats(),D.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+m+"] from 'Stream' with id ["+this.streamId+"] is now closed")},S.prototype.disposeMediaStream=function(){return k(this,void 0,void 0,function(){var m;return q(this,function(C){switch(C.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];C.label=1;case 1:return C.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return C.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return m=C.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),m),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function($){$.stop()}),this.mediaStream.getVideoTracks().forEach(function($){$.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function($){$.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function($){$.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),D.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},S.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},S.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},S.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},S.prototype.isSendScreen=function(){var m="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return W.isElectron()&&(m="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&m},S.prototype.enableHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){m.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)]),m.harkSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){m.harkSpeakingEnabledOnce&&(m.session.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)])),m.disableHarkSpeakingEvent(!0)}))},S.prototype.disableHarkSpeakingEvent=function(m){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,m){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){m.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)]),m.harkStoppedSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){m.harkStoppedSpeakingEnabledOnce&&(m.session.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new p.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)])),m.disableHarkStoppedSpeakingEvent(!0)}))},S.prototype.disableHarkStoppedSpeakingEvent=function(m){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,m){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkVolumeChangeEvent=function(m){var C=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||m)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function($){var E={newValue:$,oldValue:C.speechEvent.oldVolumeValue};C.speechEvent.oldVolumeValue=$,C.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(C.streamManager,"streamAudioVolumeChange",E)])})):this.harkVolumeChangeEnabled=!0},S.prototype.enableOnceHarkVolumeChangeEvent=function(m){var C=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||m)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function($){var E={newValue:$,oldValue:C.speechEvent.oldVolumeValue};C.speechEvent.oldVolumeValue=$,C.disableHarkVolumeChangeEvent(!0),C.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(C.streamManager,"streamAudioVolumeChange",E)])})):this.harkVolumeChangeEnabledOnce=!0},S.prototype.disableHarkVolumeChangeEvent=function(m){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,m){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},S.prototype.getSelectedIceCandidate=function(){var m=this;return new Promise(function(C,$){m.webRtcStats.getSelectedIceCandidateInfo().then(function(T){return C(T)}).catch(function(T){return $(T)})})},S.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},S.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},S.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return D.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var m=this.getRTCPeerConnection().iceConnectionState;return"connected"!==m&&"completed"!==m},S.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var m=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};m.interval="number"==typeof m.interval?m.interval:100,m.threshold="number"==typeof m.threshold?m.threshold:-50,this.speechEvent=Y(this.mediaStream,m)}return!0}return!1},S.prototype.setupReconnectionEventEmitter=function(m,C){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new j,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return m()}),this.reconnectionEventEmitter.once("error",function($){return C($)}),!0)},S.prototype.initWebRtcPeerSend=function(m){var C=this;return new Promise(function($,T){var E;if(m){if(C.setupReconnectionEventEmitter($,T))return}else C.initHarkEvents();var g=function(x){var b;return m&&(null===(b=C.reconnectionEventEmitter)||void 0===b||b.emitEvent("error",[x]),delete C.reconnectionEventEmitter),T(x)},L={mediaConstraints:{audio:C.hasAudio,video:C.hasVideo},simulcast:null!==(E=C.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==E?E:C.session.openvidu.videoSimulcast,onIceCandidate:C.connection.sendIceCandidate.bind(C.connection),onIceConnectionStateException:function(x,b,F){C.session.emitEvent("exception",[new P.ExceptionEvent(C.session,x,C,b,F)])},iceServers:C.getIceServersConf(),mediaStream:C.mediaStream,mediaServer:C.session.openvidu.mediaServer,typeOfVideo:C.typeOfVideo?ie.TypeOfVideo[C.typeOfVideo]:void 0};"mediasoup"!==C.session.openvidu.mediaServer&&(L.simulcast=!1),m&&C.disposeWebRtcPeer(),C.webRtcPeer=C.displayMyRemote()?new f.WebRtcPeerSendrecv(L):new f.WebRtcPeerSendonly(L),C.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+C.connection.connectionId),C.webRtcPeer.createOffer().then(function(N){C.webRtcPeer.processLocalOffer(N).then(function(){!function(x){D.debug("Sending SDP offer to publish as "+C.streamId,x);var F,b=m?"reconnectStream":"publishVideo";if(m)F={stream:C.streamId,sdpString:x};else{var z=void 0;C.isSendVideo()&&(z="undefined"!=typeof MediaStreamTrack&&C.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?ie.TypeOfVideo.CUSTOM:C.isSendScreen()?ie.TypeOfVideo.SCREEN:ie.TypeOfVideo.CAMERA),F={doLoopback:C.displayMyRemote()||!1,hasAudio:C.isSendAudio(),hasVideo:C.isSendVideo(),audioActive:C.audioActive,videoActive:C.videoActive,typeOfVideo:z,frameRate:C.frameRate?C.frameRate:-1,videoDimensions:JSON.stringify(C.videoDimensions),filter:C.outboundStreamOpts.publisherProperties.filter,sdpOffer:x}}C.session.openvidu.sendRequest(b,F,function(de,ve){de?g(401===de.code?new Q.OpenViduError(Q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(de)):C.webRtcPeer.processRemoteAnswer(ve.sdpAnswer).then(function(){C.streamId=ve.id,C.creationTime=ve.createdAt,C.isLocalStreamPublished=!0,C.publishedOnce=!0,C.displayMyRemote()&&(C.localMediaStreamWhenSubscribedToRemote=C.mediaStream,C.remotePeerSuccessfullyEstablished(m)),C.ee.emitEvent(m?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),C.initWebRtcStats(),D.info("'Publisher' ("+C.streamId+") successfully "+(m?"reconnected":"published")+" to session"),function(){var x;m&&(null===(x=C.reconnectionEventEmitter)||void 0===x||x.emitEvent("success"),delete C.reconnectionEventEmitter),$()}()}).catch(function(me){g(me)})})}(N.sdp)}).catch(function(x){g(new Error("(publish) SDP process local offer error: "+JSON.stringify(x)))})}).catch(function(N){g(new Error("(publish) SDP create offer error: "+JSON.stringify(N)))})})},S.prototype.finalResolveForSubscription=function(m,C){var $;return D.info("'Subscriber' ("+this.streamId+") successfully "+(m?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(m),this.initWebRtcStats(),m&&(null===($=this.reconnectionEventEmitter)||void 0===$||$.emitEvent("success"),delete this.reconnectionEventEmitter),C()},S.prototype.finalRejectForSubscription=function(m,C,$){var T;return D.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(m?"reconnect":"subscribe")+": "+C.toString()),m&&(null===(T=this.reconnectionEventEmitter)||void 0===T||T.emitEvent("error",[C]),delete this.reconnectionEventEmitter),$(C)},S.prototype.initWebRtcPeerReceive=function(m){var C=this;return new Promise(function($,T){m&&C.setupReconnectionEventEmitter($,T)||("mediasoup"===C.session.openvidu.mediaServer?C.initWebRtcPeerReceiveFromServer(m).then(function(){return C.finalResolveForSubscription(m,$)}).catch(function(E){return C.finalRejectForSubscription(m,E,T)}):C.initWebRtcPeerReceiveFromClient(m).then(function(){return C.finalResolveForSubscription(m,$)}).catch(function(E){return C.finalRejectForSubscription(m,E,T)}))})},S.prototype.initWebRtcPeerReceiveFromClient=function(m){var C=this;return new Promise(function($,T){C.completeWebRtcPeerReceive(m,!1).then(function(E){C.webRtcPeer.processRemoteAnswer(E.sdpAnswer).then(function(){return $()}).catch(function(G){return T(G)})}).catch(function(E){return T(E)})})},S.prototype.initWebRtcPeerReceiveFromServer=function(m){var C=this;return new Promise(function($,T){C.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:C.streamId,reconnect:m},function(E,G){if(E)return T(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(E)));C.completeWebRtcPeerReceive(m,!1,G.sdpOffer).then(function(){return $()}).catch(function(g){return T(g)})})})},S.prototype.completeWebRtcPeerReceive=function(m,C,$){var T=this;return new Promise(function(E,G){D.debug("'Session.subscribe(Stream)' called");var g=function(N){D.debug("Sending local SDP ".concat($?"answer":"offer"," to subscribe to ").concat(T.streamId),N);var x=m?"reconnectStream":"receiveVideoFrom",b={};b[m?"stream":"sender"]=T.streamId,$?b[m?"sdpString":"sdpAnswer"]=N:b.sdpOffer=N,m&&(b.forciblyReconnect=C),T.session.openvidu.sendRequest(x,b,function(F,z){return F?G(new Error("Error on "+x+" : "+JSON.stringify(F))):E(z)})},V={mediaConstraints:{audio:T.hasAudio,video:T.hasVideo},simulcast:!1,onIceCandidate:T.connection.sendIceCandidate.bind(T.connection),onIceConnectionStateException:function(N,x,b){T.session.emitEvent("exception",[new P.ExceptionEvent(T.session,N,T,x,b)])},iceServers:T.getIceServersConf(),mediaServer:T.session.openvidu.mediaServer,typeOfVideo:T.typeOfVideo?ie.TypeOfVideo[T.typeOfVideo]:void 0};m&&T.disposeWebRtcPeer(),T.webRtcPeer=new f.WebRtcPeerRecvonly(V),T.webRtcPeer.addIceConnectionStateChangeListener(T.streamId),$?T.webRtcPeer.processRemoteOffer($).then(function(){T.webRtcPeer.createAnswer().then(function(L){T.webRtcPeer.processLocalAnswer(L).then(function(){g(L.sdp)}).catch(function(N){return G(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(N)))})}).catch(function(L){return G(new Error("(subscribe) SDP create answer error: "+JSON.stringify(L)))})}).catch(function(L){return G(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(L)))}):T.webRtcPeer.createOffer().then(function(L){T.webRtcPeer.processLocalOffer(L).then(function(){g(L.sdp)}).catch(function(N){return G(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(N)))})}).catch(function(L){return G(new Error("(subscribe) SDP create offer error: "+JSON.stringify(L)))})})},S.prototype.remotePeerSuccessfullyEstablished=function(m){m&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var C,$=0,T=this.webRtcPeer.pc.getReceivers();$0},S}();X.Stream=K},8613:function(be,X,U){"use strict";var ie,k=this&&this.__extends||(ie=function(H,re){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&(Y[D]=j[D])})(H,re)},function(y,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function re(){this.constructor=y}ie(y,H),y.prototype=null===H?Object.create(H):(re.prototype=H.prototype,new re)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamManager=void 0;var R,q=U(8074),M=U(4006),I=U(4281),f=U(7507),d=U(6274),P=U(6946),p=U(543),w=P.OpenViduLogger.getInstance(),Q=function(ie){function y(H,re){var Y=ie.call(this)||this;if(Y.videos=[],Y.lazyLaunchVideoElementCreatedEvent=!1,R=p.PlatformUtils.getInstance(),Y.stream=H,Y.stream.streamManager=Y,Y.remote=!Y.stream.isLocal(),re){var j=void 0;"string"==typeof re?j=document.getElementById(re):re instanceof HTMLElement&&(j=re),j&&(Y.firstVideoElement={targetElement:j,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(R.isSafariBrowser()||R.isIPhoneOrIPad()&&(R.isChromeMobileBrowser()||R.isEdgeMobileBrowser()||R.isOperaMobileBrowser()||R.isFirefoxMobileBrowser()))&&(Y.firstVideoElement.video.playsInline=!0),Y.targetElement=j,Y.element=j)}return Y.canPlayListener=function(){Y.deactivateStreamPlayingEventExceptionTimeout(),Y.ee.emitEvent("streamPlaying",[new M.StreamManagerEvent(Y,"streamPlaying",void 0)])},Y}return k(y,ie),y.prototype.on=function(H,re){return ie.prototype.onAux.call(this,H,"Event '"+H+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",re),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new I.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===H&&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 M.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableHarkVolumeChangeEvent(!1)),this},y.prototype.once=function(H,re){return ie.prototype.onceAux.call(this,H,"Event '"+H+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",re),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new I.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===H&&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 M.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},y.prototype.off=function(H,re){return ie.prototype.offAux.call(this,H,re),"publisherStartSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===H&&0===this.ee.getListeners(H).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},y.prototype.addVideoElement=function(H){this.initializeVideoProperties(H),!this.remote&&this.stream.displayMyRemote()&&H.srcObject!==this.stream.getMediaStream()&&(H.srcObject=this.stream.getMediaStream());for(var re=0,Y=this.videos;re=0;--re)this.stream.session.streamManagers[re]===this&&this.stream.session.streamManagers.splice(re,1);this.videos.forEach(function(Y){!!Y.video&&!!Y.video.removeEventListener&&Y.video.removeEventListener("canplay",H.canPlayListener),Y.canplayListenerAdded=!1,Y.targetElement&&(Y.video.parentNode.removeChild(Y.video),H.ee.emitEvent("videoElementDestroyed",[new I.VideoElementEvent(Y.video,H,"videoElementDestroyed")])),H.removeSrcObject(Y),H.videos.filter(function(j){return!j.targetElement})})},y.prototype.disassociateVideo=function(H){for(var re=!1,Y=0;Y=0;--Q)y[Q].id===this.stream.streamId&&y.splice(Q,1)}}},w}(q.Event);X.StreamEvent=P},4006:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamManagerEvent=void 0;var M=function(I){function f(d,P,p){var w=I.call(this,!1,d,P)||this;return w.value=p,w}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.StreamManagerEvent=M},2798:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.StreamPropertyChangedEvent=void 0;var M=function(I){function f(d,P,p,w,R,Q){var ie=I.call(this,!1,d,"streamPropertyChanged")||this;return ie.stream=P,ie.changedProperty=p,ie.newValue=w,ie.oldValue=R,ie.reason=Q,ie}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.StreamPropertyChangedEvent=M},4281:function(be,X,U){"use strict";var I,k=this&&this.__extends||(I=function(d,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(p[R]=w[R])})(d,P)},function(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function P(){this.constructor=f}I(f,d),f.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)});Object.defineProperty(X,"__esModule",{value:!0}),X.VideoElementEvent=void 0;var M=function(I){function f(d,P,p){var w=I.call(this,!1,P,p)||this;return w.element=d,w}return k(f,I),f.prototype.callDefaultBehavior=function(){},f}(U(2345).Event);X.VideoElementEvent=M},6842:function(be){function X(){var U={};this.forEach=function(k){for(var q in U){var M=U[q];for(var I in M)k(M[I])}},this.get=function(k,q){var M=U[q];if(null!=M)return M[k]},this.remove=function(k,q){var M=U[q];if(null!=M){for(var I in delete M[k],M)return!1;delete U[q]}},this.set=function(k,q,M){if(null==k)return this.remove(q,M);var I=U[M];null==I&&(U[M]=I={}),I[q]=k}}X.prototype.pop=function(U,k){var q=this.get(U,k);if(null!=q)return this.remove(U,k),q},be.exports=X},5150:function(be,X,U){var k=U(245);X.JsonRpcClient=k},245:function(be,X,U){var k=U(3031),q=U(7182),M=U(6946).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var f="RECONNECTING",d="CONNECTED",P="DISCONNECTED",p=M.getInstance();be.exports=function w(R){var j,Q=this,ie=R.ws,y=-1,H=0,re=!0,Y=!1,D=P,W=ie.onreconnecting,K=ie.onreconnected,S=ie.onconnected,m=ie.onerror;R.rpc.pull=function(L,N){N.reply(null,"push")},ie.onreconnecting=function(){p.debug("--------- ONRECONNECTING -----------"),D!==f?(V(),D=f,W&&W()):p.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},ie.onreconnected=function(){p.debug("--------- ONRECONNECTED -----------"),D!==d?(D=d,E(),K&&K()):p.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},ie.onconnected=function(){p.debug("--------- ONCONNECTED -----------"),D!==d?(D=d,re=!0,g(),S&&S()):p.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},ie.onerror=function(L){p.debug("--------- ONERROR -----------"),D=P,V(),m&&m(L)};var C=new q(ie);p.debug("Connecting websocket to URI: "+ie.uri);var T=new k(k.packers.JsonRPC,{request_timeout:R.rpc.requestTimeout,ping_request_timeout:R.rpc.heartbeatRequestTimeout},C,function(L){p.debug("Received request: "+JSON.stringify(L));try{var N=R.rpc[L.method];void 0===N?p.error("Method "+L.method+" not registered in client"):N(L.params,L)}catch(x){p.error("Exception processing request: "+JSON.stringify(L)),p.error(x)}});function E(){p.debug("notReconnectIfNumLessThan = "+H+" (old="+y+")"),y=H}function G(){if(re){var L=null;(0==H||H==y)&&(L={interval:R.heartbeat||5e3}),H++,Q.send("ping",L,(N=H,function(x,b){x&&(p.debug("Error in ping request #"+N+" ("+x.message+")"),N>y&&(re=!1,E(),p.debug("Server did not respond to ping message #"+N+". Reconnecting... "),C.reconnectWs()))}))}else p.debug("Trying to send ping, but ping is not enabled");var N}function g(){Y||(p.debug("Starting ping (if configured)"),Y=!0,null!=R.heartbeat&&(j=setInterval(G,R.heartbeat),G()))}function V(){clearInterval(j),Y=!1,re=!1,H=-1,T.cancel()}this.send=function(L,N,x){var b=Date.now();T.encode(L,N,function(F,z){if(F){try{p.error("ERROR:"+F.message+" in Request: method:"+L+" params:"+JSON.stringify(N)+" request:"+F.request),F.data&&p.error("ERROR DATA:"+JSON.stringify(F.data))}catch(de){}F.requestTime=b}x&&(null!=z&&"pong"!==z.value&&p.debug("Response: "+JSON.stringify(z)),x(F,z))})},this.close=function(L,N){p.debug("Closing with code: "+L+" because: "+N),null!=j&&(p.debug("Clearing ping interval"),clearInterval(j)),Y=!1,re=!1,C.close(L,N)},this.reconnect=function(){C.reconnectWs()},this.resetPing=function(){re=!0,H=0,g()},this.getReadyState=function(){return C.getReadyState()}}},593:function(be,X,U){var k=U(7182);X.WebSocketWithReconnection=k},7182:function(be,X,U){"use strict";var q=U(6946).OpenViduLogger.getInstance();be.exports=function w(R){var ie,Q=!1,y=R.uri,H=!1,re=new WebSocket(y);re.onopen=function(){q.debug("WebSocket connected to "+y),R.onconnected&&R.onconnected()},re.onerror=function(K){q.error("Could not connect to "+y+" (invoking onerror if defined)",K),R.onerror&&R.onerror(K)};var Y=function(){3===re.readyState?Q?q.debug("Connection closed by user"):R.ismasternodecrashed()?q.error("Master Node has crashed. Stopping reconnection process"):(q.debug("Connection closed unexpectedly. Reconnecting..."),j(2e3,1)):q.debug("Close callback from previous websocket. Ignoring it")};function j(K,S){if(q.debug("reconnect (attempt #"+S+", max="+K+")"),1===S){if(H)return void q.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");H=!0,R.onreconnecting&&R.onreconnecting()}!function W(K,S){q.debug("Reconnection attempt #"+S),re.close(4104,"Connection closed for reconnection"),y=function D(K){var S=new URLSearchParams(new URL(K).search);return S.has("reconnect")||(K=Array.from(S).length>0?K+"&reconnect=true":K+"?reconnect=true"),K}(y),(re=new WebSocket(y)).onopen=function(){q.debug("Reconnected to "+y+" after "+S+" attempts..."),H=!1,ie(),R.onreconnected()&&R.onreconnected(),re.onclose=Y},re.onerror=function(m){q.warn("Reconnection error: ",m),S===K?R.ondisconnect&&R.ondisconnect():setTimeout(function(){j(K,S+1)},3e3)}}(K,S)}re.onclose=Y,this.close=function(K,S){Q=!0,re.close(K,S)},this.reconnectWs=function(){q.debug("reconnectWs"),j(2e3,1)},this.send=function(K){re.send(K)},this.addEventListener=function(K,S){(ie=function(){re.addEventListener(K,S)})()},this.getReadyState=function(){return re.readyState}}},3031:function(be,X,U){var k=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(y){k=!0}Function.prototype.bind||(Function.prototype.bind=function(y){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var H=Array.prototype.slice.call(arguments,1),re=this,Y=function(){},j=function(){return re.apply(this instanceof Y&&y?this:y,H.concat(Array.prototype.slice.call(arguments)))};return Y.prototype=this.prototype,j.prototype=new Y,j});var q=U(9069).EventEmitter,M=U(3894),I=U(8080),f=U(6842),d=5e3;function p(y){if(y){if(y instanceof Function)return{send:y};if(y.send instanceof Function)return y;if(y.postMessage instanceof Function)return y.send=y.postMessage,y;if(y.write instanceof Function)return y.send=y.write,y;if(void 0===y.onmessage&&!(y.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function w(y,H){k?(this.method=y,this.params=H):(Object.defineProperty(this,"method",{value:y,enumerable:!0}),Object.defineProperty(this,"params",{value:H,enumerable:!0}))}function R(y,H,re,Y){var j=this;if(!y)throw new SyntaxError("Packer is not defined");if(!y.pack||!y.unpack)throw new SyntaxError("Packer is invalid");var D=function P(y){if(!y)return{};for(var H in y){var re=y[H];"string"==typeof re&&(y[H]={response:re})}return y}(y.responseMethods);if(H instanceof Function){if(null!=re)throw new SyntaxError("There can't be parameters after onRequest");Y=H,re=void 0,H=void 0}if(H&&H.send instanceof Function){if(re&&!(re instanceof Function))throw new SyntaxError("Only a function can be after transport");Y=re,re=H,H=void 0}if(re instanceof Function){if(null!=Y)throw new SyntaxError("There can't be parameters after onRequest");Y=re,re=void 0}if(re&&re.send instanceof Function&&Y&&!(Y instanceof Function))throw new SyntaxError("Only a function can be after transport");H=H||{},q.call(this),Y&&this.on("request",Y),k?this.peerID=H.peerID:Object.defineProperty(this,"peerID",{value:H.peerID});var W=H.max_retries||0;function K(F){j.decode(F.data||F)}this.getTransport=function(){return re},this.setTransport=function(F){re&&(re.removeEventListener?re.removeEventListener("message",K):re.removeListener&&re.removeListener("data",K)),F&&(F.addEventListener?F.addEventListener("message",K):F.addListener&&F.addListener("data",K)),re=p(F)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(re);var S=H.request_timeout||d,m=H.ping_request_timeout||S,C=H.response_timeout||d,$=H.duplicates_timeout||d,T=0,E=new f,G=new f,g=new f,V={};function N(F,z){var de=setTimeout(function(){g.remove(F,z)},$);g.set(de,F,z)}function x(F,z,de,ve,me){w.call(this,F,z),this.getTransport=function(){return me},this.setTransport=function(Fe){me=p(Fe)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var De=G.get(de,ve);me||j.getTransport()||(k?this.duplicated=Boolean(De):Object.defineProperty(this,"duplicated",{value:Boolean(De)}));var Me=D[F];this.pack=y.pack.bind(y,this,de),this.reply=function(Fe,Le,Ke){if(Fe instanceof Function||Fe&&Fe.send instanceof Function){if(null!=Le)throw new SyntaxError("There can't be parameters after callback");Ke=Fe,Le=null,Fe=void 0}else if(Le instanceof Function||Le&&Le.send instanceof Function){if(null!=Ke)throw new SyntaxError("There can't be parameters after callback");Ke=Le,Le=null}var Qe;return Ke=p(Ke),De&&clearTimeout(De.timeout),null!=ve&&(Fe&&(Fe.dest=ve),Le&&(Le.dest=ve)),Fe||null!=Le?(null!=j.peerID&&(Fe?Fe.from=j.peerID:Le.from=j.peerID),Qe=y.pack(Qe=Me?null==Me.error&&Fe?{error:Fe}:{method:Fe?Me.error:Me.response,params:Fe||Le}:{error:Fe,result:Le},de)):Qe=De?De.message:y.pack({result:null},de),function L(F,z,de){var ve={message:F,timeout:setTimeout(function(){G.remove(z,de)},C)};G.set(ve,z,de)}(Qe,de,ve),(Ke=Ke||this.getTransport()||j.getTransport())?Ke.send(Qe):Qe}}function b(F){var z=V[F];if(z){delete V[F];var de=E.pop(z.id,z.dest);!de||(clearTimeout(de.timeout),N(z.id,z.dest))}}M(x,w),this.cancel=function(F){if(F)return b(F);for(var F in V)b(F)},this.close=function(){var F=this.getTransport();F&&F.close&&F.close(4003,"Cancel request"),this.cancel(),g.forEach(clearTimeout),G.forEach(function(z){clearTimeout(z.timeout)})},this.encode=function(F,z,de,ve,me){if(z instanceof Function){if(null!=de)throw new SyntaxError("There can't be parameters after callback");me=z,ve=void 0,de=void 0,z=void 0}else if(de instanceof Function){if(null!=ve)throw new SyntaxError("There can't be parameters after callback");me=de,ve=void 0,de=void 0}else if(ve instanceof Function){if(null!=me)throw new SyntaxError("There can't be parameters after callback");me=ve,ve=void 0}null!=j.peerID&&((z=z||{}).from=j.peerID),null!=de&&((z=z||{}).dest=de);var De={method:F,params:z};if(me){var Me=function(ae,fe){j.cancel(De),me(ae,fe)},Fe=function(ae){return lt.timeout=setTimeout(Ke,("ping"===F?m:S)*Math.pow(2,se++)),V[De]={id:Qe,dest:de},E.set(lt,Qe,de),(ae=ae||Ve||j.getTransport())?ae.send(De):De},Le=function(ae){ae=p(ae),console.warn(se+" retry for request message:",De);var fe=g.pop(Qe,de);return clearTimeout(fe),Fe(ae)},Ke=function(){if(sep.instance.MAX_LENGTH_STRING_JSON&&(Y="".concat(Y.substring(0,p.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(Y),Y},enabled:!0}),(0,k.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=R,this.instance.info("JSNLog configured.")}}catch(y){console.error("Error configuring JSNLog: "),console.error(y),this.instance.disableLogger()}},f.getInstance=function(){return f.instance||(f.instance=new f),f.instance},f.isInvalidResponse=function(d){return 401==d.status||403==d.status||404==d.status||0==d.status},f.prototype.canConfigureJSNLog=function(d,P){return d.session.sessionId!=P.loggingSessionId},f.prototype.isOpenViduBrowserLogsDebugActive=function(d){return d.sendBrowserLogs===M.OpenViduLoggerConfiguration.debug||d.sendBrowserLogs===M.OpenViduLoggerConfiguration.debug_app},f.prototype.getConsoleWithJSNLog=function(){return d=this,{log:function(){for(var p=[],w=0;w1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return P&&(p.audio={mandatory:{chromeMediaSource:f?"screen":"desktop"},optional:[]}),d&&(p.video.mandatory.chromeMediaSourceId=d,p.audio&&p.audio.mandatory&&(p.audio.mandatory.chromeMediaSourceId=d)),p}function k(f){q?q.isLoaded?q.contentWindow.postMessage(f?f.forEach?{captureCustomSourceId:f}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){k(f)},100):M(function(){k(f)})}var q;function M(f){q?f():((q=document.createElement("iframe")).onload=function(){q.isLoaded=!0,f()},q.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",q.style.display="none",(document.body||document.documentElement).appendChild(q))}function I(){q?q.isLoaded?q.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(I,100):M(I)}globalThis.getScreenId=function(f,d,P){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?d(null,"firefox",{video:{mozMediaSource:f,mediaSource:f}}):(globalThis.addEventListener("message",function p(w){!w.data||(w.data.chromeMediaSourceId&&("PermissionDeniedError"===w.data.chromeMediaSourceId?d("permission-denied"):d(null,w.data.chromeMediaSourceId,U(null,w.data.chromeMediaSourceId,w.data.canRequestAudioTrack)),globalThis.removeEventListener("message",p)),w.data.chromeExtensionStatus&&(d(w.data.chromeExtensionStatus,null,U(w.data.chromeExtensionStatus)),globalThis.removeEventListener("message",p)))}),setTimeout(P?function(){k(P)}:k,100)):d({video:!0})},globalThis.getScreenConstraints=function(f){M(function(){getScreenId(function(d,P,p){p||(p={video:!0}),f(d,p.video)})})},globalThis.getChromeExtensionStatus=function(f){navigator.mozGetUserMedia?f("installed-enabled"):(globalThis.addEventListener("message",function d(P){!P.data||P.data.chromeExtensionStatus&&(f(P.data.chromeExtensionStatus),globalThis.removeEventListener("message",d))}),setTimeout(I,100))},X.getScreenId=globalThis.getScreenId},4627:function(be,X){var k,q,U="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var M=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(H){H.origin==window.location.origin&&function d(H){if("PermissionDeniedError"==H){if(q)return q("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==H&&(U="desktop"),H.sourceId&&q&&q(k=H.sourceId,!0===H.canRequestAudioTrack)}(H.data)})}function p(H){if(!H)throw'"callback" parameter is mandatory.';if(k)return H(k);q=H,window.postMessage("get-sourceId","*")}function y(H,re){if(k="",M)return H(null,{mozMediaSource:"window",mediaSource:"window"});var j={mandatory:{chromeMediaSource:U,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=U||k?("desktop"==U&&(j.mandatory.chromeMediaSourceId=k),H(null,j)):re?function R(H){if(!H)throw'"callback" parameter is mandatory.';if(k)return H(k);q=H,window.postMessage("audio-plus-tab","*")}(function(D,W){j.mandatory.chromeMediaSourceId=D,W&&(j.canRequestAudioTrack=!0),H("PermissionDeniedError"==D?D:null,j)}):p(function(D){j.mandatory.chromeMediaSourceId=D,H("PermissionDeniedError"==D?D:null,j)})}X.getScreenConstraints=y,X.getScreenConstraintsWithAudio=function ie(H){y(H,!0)},X.isChromeExtensionAvailable=function P(H){if(H){if("desktop"==U)return H(!0);window.postMessage("are-you-there","*"),setTimeout(function(){H("screen"!=U)},2e3)}},X.getChromeExtensionStatus=function Q(H,re){if(M)return re("not-chrome");2!=arguments.length&&(re=H,H="lfcgfepafnobdloecchnfaclibenjold");var Y=document.createElement("img");Y.src="chrome-extension://"+H+"/icon.png",Y.onload=function(){U="screen",window.postMessage("are-you-there","*"),setTimeout(function(){re("screen"==U?"installed-disabled":"installed-enabled")},2e3)},Y.onerror=function(){re("not-installed")}},X.getSourceId=p},543:function(be,X,U){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.PlatformUtils=void 0;var k=U(2437),q=function(){function M(){}return M.getInstance=function(){return this.instance||(this.instance=new M),M.instance},M.prototype.isChromeBrowser=function(){return"Chrome"===k.name},M.prototype.isSafariBrowser=function(){return"Safari"===k.name},M.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===k.name},M.prototype.isFirefoxBrowser=function(){return"Firefox"===k.name},M.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===k.name||"Firefox for iOS"===k.name},M.prototype.isOperaBrowser=function(){return"Opera"===k.name},M.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===k.name},M.prototype.isEdgeBrowser=function(){var I=(null==k?void 0:k.version)?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&I>=80},M.prototype.isEdgeMobileBrowser=function(){var I,f,d=(null==k?void 0:k.version)?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&("Android"===(null===(I=k.os)||void 0===I?void 0:I.family)||"iOS"===(null===(f=k.os)||void 0===f?void 0:f.family))&&d>45},M.prototype.isAndroidBrowser=function(){return"Android Browser"===k.name},M.prototype.isElectron=function(){return"Electron"===k.name},M.prototype.isNodeJs=function(){return"Node.js"===k.name},M.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===k.name||"Samsung Internet"===k.name},M.prototype.isIPhoneOrIPad=function(){var I=k.ua?k.ua:navigator.userAgent,f="ontouchend"in document,d=/\b(\w*Macintosh\w*)\b/.test(I)&&f,P=/\b(\w*iPhone\w*)\b/.test(I)&&/\b(\w*Mobile\w*)\b/.test(I)&&f;return d||P},M.prototype.isIOSWithSafari=function(){var I=k.ua?k.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(I)&&!/\b(\w*CriOS\w*)\b/.test(I)&&!/\b(\w*FxiOS\w*)\b/.test(I)},M.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===k.ua.indexOf("Safari")},M.prototype.isIonicAndroid=function(){return"Android"===k.os.family&&"Android Browser"==k.name},M.prototype.isMobileDevice=function(){return"iOS"===k.os.family||"Android"===k.os.family},M.prototype.isReactNative=function(){return!1},M.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},M.prototype.canScreenShare=function(){var I=(null==k?void 0:k.version)?parseFloat(k.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&I>=13)},M.prototype.getName=function(){return k.name||""},M.prototype.getVersion=function(){return k.version||""},M.prototype.getFamily=function(){return k.os.family||""},M.prototype.getDescription=function(){return k.description||""},M}();X.PlatformUtils=q},4641:function(be,X,U){"use strict";var Y,k=this&&this.__extends||(Y=function(D,W){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,S){K.__proto__=S}||function(K,S){for(var m in S)Object.prototype.hasOwnProperty.call(S,m)&&(K[m]=S[m])})(D,W)},function(j,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function W(){this.constructor=j}Y(j,D),j.prototype=null===D?Object.create(D):(W.prototype=D.prototype,new W)}),q=this&&this.__assign||function(){return q=Object.assign||function(Y){for(var j,D=1,W=arguments.length;D0&&S[S.length-1])&&(6===T[0]||2===T[0])){D=0;continue}if(3===T[0]&&(!S||T[1]>S[0]&&T[1]0?j.iceServers:f(),mediaStream:void 0!==j.mediaStream?j.mediaStream:null,mode:j.mode?j.mode:"sendrecv",id:j.id?j.id:this.generateUniqueId()}),R.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(W){if(null!==W.candidate){var S=new RTCIceCandidate(W.candidate);D.configuration.onIceCandidate(S),""!==S.candidate&&D.localCandidatesQueue.push(S)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===D.pc.signalingState)for(;D.iceCandidateList.length>0;){var W=D.iceCandidateList.shift();D.pc.addIceCandidate(W)}})}return Y.prototype.getId=function(){return this.configuration.id},Y.prototype.dispose=function(){if(R.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},Y.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var W={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return R.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(W)),this.pc.createOffer(W)},Y.prototype.createOffer=function(){var j,D,W,K,S,m,C,$;return M(this,void 0,void 0,function(){var T,E,G,g,V,L,N,x,b,F,z,de,ve,me,De,Me,Fe,Le,Ke,Qe,se,lt,Ve;return I(this,function(pt){switch(pt.label){case 0:if(!("addTransceiver"in this.pc))return R.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(R.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,7];if(!this.configuration.mediaStream)throw new Error("[WebRtcPeer.createOffer] Direction is '".concat(this.configuration.mode,"', but no stream was configured to be sent"));T=0,E=this.configuration.mediaStream.getTracks(),pt.label=1;case 1:if(!(T=518400?3:b>=129600?2:1,g.sendEncodings=[],z=0;z0&&y[y.length-1])&&(6===j[0]||2===j[0])){R=0;continue}if(3===j[0]&&(!y||j[1]>y[0]&&j[1]=0||z.candidate.indexOf(T.address)>=0)&&z.candidate.indexOf(T.port)>=0}),T.raw=[],E=0,G=L;E=0||z.candidate.indexOf(g.address)>=0)&&z.candidate.indexOf(g.port)>=0}),g.raw=[],N=0,x=L;N-1&&(S="video"),null!=$&&null!=S&&null!=T&&null!=H[$][S]?H[$][S][T]=Number(K[T]):null!=$&&null!=T&&Y.includes(T)&&(H[$][T]=Number(K[T])))};switch(K.type){case"outbound-rtp":m("outbound","bytesSent"),m("outbound","packetsSent"),m("outbound","framesEncoded"),m("outbound","nackCount"),m("outbound","firCount"),m("outbound","pliCount"),m("outbound","qpSum");break;case"inbound-rtp":m("inbound","bytesReceived"),m("inbound","packetsReceived"),m("inbound","packetsLost"),m("inbound","jitter"),m("inbound","framesDecoded"),m("inbound","nackCount"),m("inbound","firCount"),m("inbound","pliCount");break;case"track":m("inbound","jitterBufferDelay"),m("inbound","framesReceived"),m("outbound","framesDropped"),m("outbound","framesSent"),m(D.stream.isLocal()?"outbound":"inbound","frameHeight"),m(D.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":m("candidatepair","currentRoundTripTime"),m("candidatepair","availableOutgoingBitrate")}}),(!(null==H?void 0:H.candidatepair)||0===Object.keys(H.candidatepair).length)&&delete H.candidatepair,[2,Q(H)];case 2:return j=W.sent(),f.error("Error getting common stats: ",j),[2,ie(j)];case 3:return[2]}})})})]})})},p.prototype.generateJSONStatsResponse=function(w){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:d.getName(),platform_description:d.getDescription(),stream:"webRTC",webrtc_stats:w}},p.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},p}();X.WebRtcStats=P},5039:function(be,X,U){"use strict";X.Dn=void 0;var q=U(8659),M=U(763);Object.defineProperty(X,"Dn",{enumerable:!0,get:function(){return M.OpenVidu}});U(8402),U(4259),U(1758),U(8613),U(2096),U(7490),U(4289),U(4540),U(5156),U(4103),U(5913),U(6274),U(2345),U(8702),U(805),U(7936),U(1018),U(5785),U(2299),U(4006),U(4281),U(2798),U(865),U(2156),U(6237),U(7507),U(8074);q.JL.setOptions({enabled:!1})},835:function(be){"use strict";function X(){this._types=Object.create(null),this._extensions=Object.create(null);for(var U=0;Uf)throw new TypeError("version is longer than ".concat(f," characters"));M("SemVer",re,Y),this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease;var j=re.trim().match(Y.loose?p[w.LOOSE]:p[w.FULL]);if(!j)throw new TypeError("Invalid Version: ".concat(re));if(this.raw=re,this.major=+j[1],this.minor=+j[2],this.patch=+j[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=j[4]?j[4].split(".").map(function(D){if(/^[0-9]+$/.test(D)){var W=+D;if(W>=0&&W=0;)"number"==typeof this.prerelease[D]&&(this.prerelease[D]++,D=-2);-1===D&&this.prerelease.push(0)}j&&(0===ie(this.prerelease[0],j)?isNaN(this.prerelease[1])&&(this.prerelease=[j,0]):this.prerelease=[j,0]);break;default:throw new Error("invalid increment argument: ".concat(Y))}return this.format(),this.raw=this.version,this}}]),H}()},4778:function(be,X,U){var k=U(2463);be.exports=function(I,f){return new k(I,f).major}},3042:function(be,X,U){var k=U(2463);be.exports=function(I,f){return new k(I,f).minor}},3054:function(be){be.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},8977:function(be){var X="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var U,k=arguments.length,q=new Array(k),M=0;M)?=?)"),p("XRANGEIDENTIFIERLOOSE","".concat(f[d.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),p("XRANGEIDENTIFIER","".concat(f[d.NUMERICIDENTIFIER],"|x|X|\\*")),p("XRANGEPLAIN","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIER],")")+"(?:".concat(f[d.PRERELEASE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGEPLAINLOOSE","[v=\\s]*(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(f[d.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(f[d.PRERELEASELOOSE],")?").concat(f[d.BUILD],"?")+")?)?"),p("XRANGE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAIN],"$")),p("XRANGELOOSE","^".concat(f[d.GTLT],"\\s*").concat(f[d.XRANGEPLAINLOOSE],"$")),p("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(q,"})")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:\\.(\\d{1,".concat(q,"}))?")+"(?:$|[^\\d])"),p("COERCERTL",f[d.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM","(\\s*)".concat(f[d.LONETILDE],"\\s+"),!0),X.tildeTrimReplace="$1~",p("TILDE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAIN],"$")),p("TILDELOOSE","^".concat(f[d.LONETILDE]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("LONECARET","(?:\\^)"),p("CARETTRIM","(\\s*)".concat(f[d.LONECARET],"\\s+"),!0),X.caretTrimReplace="$1^",p("CARET","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAIN],"$")),p("CARETLOOSE","^".concat(f[d.LONECARET]).concat(f[d.XRANGEPLAINLOOSE],"$")),p("COMPARATORLOOSE","^".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],")$|^$")),p("COMPARATOR","^".concat(f[d.GTLT],"\\s*(").concat(f[d.FULLPLAIN],")$|^$")),p("COMPARATORTRIM","(\\s*)".concat(f[d.GTLT],"\\s*(").concat(f[d.LOOSEPLAIN],"|").concat(f[d.XRANGEPLAIN],")"),!0),X.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE","^\\s*(".concat(f[d.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAIN],")")+"\\s*$"),p("HYPHENRANGELOOSE","^\\s*(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(f[d.XRANGEPLAINLOOSE],")")+"\\s*$"),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2437:function(be,X,U){var k;be=U.nmd(be),function(){"use strict";var q={function:!0,object:!0},M=q[typeof window]&&window||this,P=q[typeof X]&&X&&q.object&&be&&!be.nodeType&&be&&"object"==typeof global&&global;P&&(P.global===P||P.window===P||P.self===P)&&(M=P);var p=Math.pow(2,53)-1,w=/\bOpera/,Q=Object.prototype,ie=Q.hasOwnProperty,y=Q.toString;function H(E){return(E=String(E)).charAt(0).toUpperCase()+E.slice(1)}function j(E){return E=C(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:H(E)}function D(E,G){for(var g in E)ie.call(E,g)&&G(E[g],g,E)}function W(E){return null==E?H(E):y.call(E).slice(8,-1)}function S(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function m(E,G){var g=null;return function Y(E,G){var g=-1,V=E?E.length:0;if("number"==typeof V&&V>-1&&V<=p)for(;++g3?"WebKit":/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(E)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(ce)&&"WebKit"||!ce&&/\bMSIE\b/i.test(E)&&("Mac OS"==Ae?"Tasman":"Trident")||"WebKit"==ce&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(ce=[se]),"IE"==ne&&(se=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(ne+=" Mobile",Ae="Windows Phone "+(/\+$/.test(se)?se:se+".x"),Ve.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(ne="IE Mobile",Ae="Windows Phone 8.x",Ve.unshift("desktop mode"),fe||(fe=(/\brv:([\d.]+)/.exec(E)||0)[1])):"IE"!=ne&&"Trident"==ce&&(se=/\brv:([\d.]+)/.exec(E))&&(ne&&Ve.push("identifying as "+ne+(fe?" "+fe:"")),ne="IE",fe=se[1]),ae){if(function K(E,G){var g=null!=E?typeof E[G]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(g)||"object"==g&&!E[G])}(G,"global"))if(me&&(lt=(se=me.lang.System).getProperty("os.arch"),Ae=Ae||se.getProperty("os.name")+" "+se.getProperty("os.version")),De){try{fe=G.require("ringo/engine").version.join("."),ne="RingoJS"}catch(un){(se=G.system)&&se.global.system==G.system&&(ne="Narwhal",Ae||(Ae=se[0].os||null))}ne||(ne="Rhino")}else"object"==typeof G.process&&!G.process.browser&&(se=G.process)&&("object"==typeof se.versions&&("string"==typeof se.versions.electron?(Ve.push("Node "+se.versions.node),ne="Electron",fe=se.versions.electron):"string"==typeof se.versions.nw&&(Ve.push("Chromium "+fe,"Node "+se.versions.node),ne="NW.js",fe=se.versions.nw)),ne||(ne="Node.js",lt=se.arch,Ae=se.platform,fe=(fe=/[\d.]+/.exec(se.version))?fe[0]:null));else W(se=G.runtime)==F?(ne="Adobe AIR",Ae=se.flash.system.Capabilities.os):W(se=G.phantom)==ve?(ne="PhantomJS",fe=(se=se.version||null)&&se.major+"."+se.minor+"."+se.patch):"number"==typeof Le.documentMode&&(se=/\bTrident\/(\d+)/i.exec(E))?((se=+se[1]+4)!=(fe=[fe,Le.documentMode])[1]&&(Ve.push("IE "+fe[1]+" mode"),ce&&(ce[1]=""),fe[1]=se),fe="IE"==ne?String(fe[1].toFixed(1)):fe[0]):"number"==typeof Le.documentMode&&/^(?:Chrome|Firefox)\b/.test(ne)&&(Ve.push("masking as "+ne+" "+fe),ne="IE",fe="11.0",ce=["Trident"],Ae="Windows");Ae=Ae&&j(Ae)}if(fe&&(se=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(ae&&V.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(pt=/b/i.test(se)?"beta":"alpha",fe=fe.replace(RegExp(se+"\\+?$"),"")+("beta"==pt?Fe:Me)+(/\d+\+?/.exec(se)||"")),"Fennec"==ne||"Firefox"==ne&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ae))ne="Firefox Mobile";else if("Maxthon"==ne&&fe)fe=fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))"Xbox 360"==he&&(Ae=null),"Xbox 360"==he&&/\bIEMobile\b/.test(E)&&Ve.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||he||/Browser|Mobi/.test(ne))||"Windows CE"!=Ae&&!/Mobi/i.test(E))if("IE"==ne&&ae)try{null===G.external&&Ve.unshift("platform preview")}catch(un){Ve.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(E))&&(se=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||fe)?(Ae=((se=[se,/BB10/.test(E)])[1]?(he=null,Ce="BlackBerry"):"Device Software")+" "+se[0],fe=null):this!=D&&"Wii"!=he&&(ae&&Ke||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(E)||"Firefox"==ne&&/\bOS X (?:\d+\.){2,}/.test(Ae)||"IE"==ne&&(Ae&&!/^Win/.test(Ae)&&fe>5.5||/\bWindows XP\b/.test(Ae)&&fe>8||8==fe&&!/\bTrident\b/.test(E)))&&!w.test(se=$.call(D,E.replace(w,"")+";"))&&se.name&&(se="ing as "+se.name+((se=se.version)?" "+se:""),w.test(ne)?(/\bIE\b/.test(se)&&"Mac OS"==Ae&&(Ae=null),se="identify"+se):(se="mask"+se,ne=Qe?j(Qe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(se)&&(Ae=null),ae||(fe=null)),ce=["Presto"],Ve.push(se));else ne+=" Mobile";(se=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(se=[parseFloat(se.replace(/\.(\d)$/,".0$1")),se],"Safari"==ne&&"+"==se[1].slice(-1)?(ne="WebKit Nightly",pt="alpha",fe=se[1].slice(0,-1)):(fe==se[1]||fe==(se[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(fe=null),se[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(E)||0)[1],537.36==se[0]&&537.36==se[2]&&parseFloat(se[1])>=28&&"WebKit"==ce&&(ce=["Blink"]),ae&&(x||se[1])?(ce&&(ce[1]="like Chrome"),se=se[1]||((se=se[0])<530?1:se<532?2:se<532.05?3:se<533?4:se<534.03?5:se<534.07?6:se<534.1?7:se<534.13?8:se<534.16?9:se<534.24?10:se<534.3?11:se<535.01?12:se<535.02?"13+":se<535.07?15:se<535.11?16:se<535.19?17:se<536.05?18:se<536.1?19:se<537.01?20:se<537.11?"21+":se<537.13?23:se<537.18?24:se<537.24?25:se<537.36?26:"Blink"!=ce?"27":"28")):(ce&&(ce[1]="like Safari"),se=(se=se[0])<400?1:se<500?2:se<526?3:se<533?4:se<534?"4+":se<535?5:se<537?6:se<538?7:se<601?8:se<602?9:se<604?10:se<606?11:se<608?12:"12"),ce&&(ce[1]+=" "+(se+="number"==typeof se?".x":/[.+]/.test(se)?"":"+")),"Safari"==ne&&(!fe||parseInt(fe)>45)?fe=se:"Chrome"==ne&&/\bHeadlessChrome/i.test(E)&&Ve.unshift("headless")),"Opera"==ne&&(se=/\bzbov|zvav$/.exec(Ae))?(ne+=" ",Ve.unshift("desktop mode"),"zvav"==se?(ne+="Mini",fe=null):ne+="Mobile",Ae=Ae.replace(RegExp(" *"+se+"$"),"")):"Safari"==ne&&/\bChrome\b/.exec(ce&&ce[1])?(Ve.unshift("desktop mode"),ne="Chrome Mobile",fe=null,/\bOS X\b/.test(Ae)?(Ce="Apple",Ae="iOS 4.3+"):Ae=null):/\bSRWare Iron\b/.test(ne)&&!fe&&(fe=ct("Chrome")),fe&&0==fe.indexOf(se=/[\d.]+$/.exec(Ae))&&E.indexOf("/"+se+"-")>-1&&(Ae=C(Ae.replace(se,""))),Ae&&-1!=Ae.indexOf(ne)&&!RegExp(ne+" OS").test(Ae)&&(Ae=Ae.replace(RegExp(" *"+S(ne)+" *"),"")),ce&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||"Safari"!=ne&&/^iOS/.test(Ae)&&/\bSafari\b/.test(ce[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ne)&&ce[1])&&(se=ce[ce.length-1])&&Ve.push(se),Ve.length&&(Ve=["("+Ve.join("; ")+")"]),Ce&&he&&he.indexOf(Ce)<0&&Ve.push("on "+Ce),he&&Ve.push((/^on /.test(Ve[Ve.length-1])?"":"on ")+he),Ae&&(se=/ ([\d.+]+)$/.exec(Ae),oe=se&&"/"==Ae.charAt(Ae.length-se[0].length-1),Ae={architecture:32,family:se&&!oe?Ae.replace(se[0],""):Ae,version:se?se[1]:null,toString:function(){var wt=this.version;return this.family+(wt&&!oe?" "+wt:"")+(64==this.architecture?" 64-bit":"")}}),(se=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(lt))&&!/\bi686\b/i.test(lt)?(Ae&&(Ae.architecture=64,Ae.family=Ae.family.replace(RegExp(" *"+se),"")),ne&&(/\bWOW64\b/i.test(E)||ae&&/\w(?:86|32)$/.test(V.cpuClass||V.platform)&&!/\bWin64; x64\b/i.test(E))&&Ve.unshift("32-bit")):Ae&&/^OS X/.test(Ae.family)&&"Chrome"==ne&&parseFloat(fe)>=39&&(Ae.architecture=64),E||(E=null);var sn={};return sn.description=E,sn.layout=ce&&ce[0],sn.manufacturer=Ce,sn.name=ne,sn.prerelease=pt,sn.product=he,sn.ua=E,sn.version=ne&&fe,sn.os=Ae||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=$,sn.toString=function Cr(){return this.description||""},sn.version&&Ve.unshift(fe),sn.name&&Ve.unshift(ne),Ae&&ne&&!(Ae==String(Ae).split(" ")[0]&&(Ae==ne.split(" ")[0]||he))&&Ve.push(he?"("+Ae+")":"on "+Ae),Ve.length&&(sn.description=Ve.join(" ")),sn}();M.platform=T,void 0!==(k=function(){return T}.call(X,U,X,be))&&(be.exports=k)}.call(this)},7854:function(be){var X=function(U){"use strict";var M,k=Object.prototype,q=k.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},f=I.iterator||"@@iterator",d=I.asyncIterator||"@@asyncIterator",P=I.toStringTag||"@@toStringTag";function p(x,b,F){return Object.defineProperty(x,b,{value:F,enumerable:!0,configurable:!0,writable:!0}),x[b]}try{p({},"")}catch(x){p=function(F,z,de){return F[z]=de}}function w(x,b,F,z){var ve=Object.create((b&&b.prototype instanceof Y?b:Y).prototype),me=new V(z||[]);return ve._invoke=function T(x,b,F){var z=Q;return function(ve,me){if(z===y)throw new Error("Generator is already running");if(z===H){if("throw"===ve)throw me;return N()}for(F.method=ve,F.arg=me;;){var De=F.delegate;if(De){var Me=E(De,F);if(Me){if(Me===re)continue;return Me}}if("next"===F.method)F.sent=F._sent=F.arg;else if("throw"===F.method){if(z===Q)throw z=H,F.arg;F.dispatchException(F.arg)}else"return"===F.method&&F.abrupt("return",F.arg);z=y;var Fe=R(x,b,F);if("normal"===Fe.type){if(z=F.done?H:ie,Fe.arg===re)continue;return{value:Fe.arg,done:F.done}}"throw"===Fe.type&&(z=H,F.method="throw",F.arg=Fe.arg)}}}(x,F,me),ve}function R(x,b,F){try{return{type:"normal",arg:x.call(b,F)}}catch(z){return{type:"throw",arg:z}}}U.wrap=w;var Q="suspendedStart",ie="suspendedYield",y="executing",H="completed",re={};function Y(){}function j(){}function D(){}var W={};p(W,f,function(){return this});var K=Object.getPrototypeOf,S=K&&K(K(L([])));S&&S!==k&&q.call(S,f)&&(W=S);var m=D.prototype=Y.prototype=Object.create(W);function C(x){["next","throw","return"].forEach(function(b){p(x,b,function(F){return this._invoke(b,F)})})}function $(x,b){function F(ve,me,De,Me){var Fe=R(x[ve],x,me);if("throw"!==Fe.type){var Le=Fe.arg,Ke=Le.value;return Ke&&"object"==typeof Ke&&q.call(Ke,"__await")?b.resolve(Ke.__await).then(function(Qe){F("next",Qe,De,Me)},function(Qe){F("throw",Qe,De,Me)}):b.resolve(Ke).then(function(Qe){Le.value=Qe,De(Le)},function(Qe){return F("throw",Qe,De,Me)})}Me(Fe.arg)}var z;this._invoke=function de(ve,me){function De(){return new b(function(Me,Fe){F(ve,me,Me,Fe)})}return z=z?z.then(De,De):De()}}function E(x,b){var F=x.iterator[b.method];if(F===M){if(b.delegate=null,"throw"===b.method){if(x.iterator.return&&(b.method="return",b.arg=M,E(x,b),"throw"===b.method))return re;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return re}var z=R(F,x.iterator,b.arg);if("throw"===z.type)return b.method="throw",b.arg=z.arg,b.delegate=null,re;var de=z.arg;return de?de.done?(b[x.resultName]=de.value,b.next=x.nextLoc,"return"!==b.method&&(b.method="next",b.arg=M),b.delegate=null,re):de:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,re)}function G(x){var b={tryLoc:x[0]};1 in x&&(b.catchLoc=x[1]),2 in x&&(b.finallyLoc=x[2],b.afterLoc=x[3]),this.tryEntries.push(b)}function g(x){var b=x.completion||{};b.type="normal",delete b.arg,x.completion=b}function V(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(G,this),this.reset(!0)}function L(x){if(x){var b=x[f];if(b)return b.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var F=-1,z=function de(){for(;++F=0;--de){var ve=this.tryEntries[de],me=ve.completion;if("root"===ve.tryLoc)return z("end");if(ve.tryLoc<=this.prev){var De=q.call(ve,"catchLoc"),Me=q.call(ve,"finallyLoc");if(De&&Me){if(this.prev=0;--z){var de=this.tryEntries[z];if(de.tryLoc<=this.prev&&q.call(de,"finallyLoc")&&this.prev=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===b)return this.complete(z.completion,z.afterLoc),g(z),re}},catch:function(b){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===b){var de=z.completion;if("throw"===de.type){var ve=de.arg;g(z)}return ve}}throw new Error("illegal catch attempt")},delegateYield:function(b,F,z){return this.delegate={iterator:L(b),resultName:F,nextLoc:z},"next"===this.method&&(this.arg=M),re}},U}(be.exports);try{regeneratorRuntime=X}catch(U){"object"==typeof globalThis?globalThis.regeneratorRuntime=X:Function("r","regeneratorRuntime = r")(X)}},1464:function(be,X,U){"use strict";U.r(X),U.d(X,{NIL:function(){return lt},parse:function(){return D},stringify:function(){return R},v1:function(){return Y},v3:function(){return ve},v4:function(){return De},v5:function(){return se},validate:function(){return d},version:function(){return pt}});var k,q=new Uint8Array(16);function M(){if(!k&&!(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(q)}for(var I=/^(?:[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,d=function f(ae){return"string"==typeof ae&&I.test(ae)},P=[],p=0;p<256;++p)P.push((p+256).toString(16).substr(1));var Q,ie,R=function w(ae){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,oe=(P[ae[fe+0]]+P[ae[fe+1]]+P[ae[fe+2]]+P[ae[fe+3]]+"-"+P[ae[fe+4]]+P[ae[fe+5]]+"-"+P[ae[fe+6]]+P[ae[fe+7]]+"-"+P[ae[fe+8]]+P[ae[fe+9]]+"-"+P[ae[fe+10]]+P[ae[fe+11]]+P[ae[fe+12]]+P[ae[fe+13]]+P[ae[fe+14]]+P[ae[fe+15]]).toLowerCase();if(!d(oe))throw TypeError("Stringified UUID is invalid");return oe},y=0,H=0,Y=function re(ae,fe,oe){var ce=fe&&oe||0,ne=fe||new Array(16),he=(ae=ae||{}).node||Q,Ce=void 0!==ae.clockseq?ae.clockseq:ie;if(null==he||null==Ce){var Ae=ae.random||(ae.rng||M)();null==he&&(he=Q=[1|Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5]]),null==Ce&&(Ce=ie=16383&(Ae[6]<<8|Ae[7]))}var Mt=void 0!==ae.msecs?ae.msecs:Date.now(),gn=void 0!==ae.nsecs?ae.nsecs:H+1,en=Mt-y+(gn-H)/1e4;if(en<0&&void 0===ae.clockseq&&(Ce=Ce+1&16383),(en<0||Mt>y)&&void 0===ae.nsecs&&(gn=0),gn>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");y=Mt,H=gn,ie=Ce;var Nr=(1e4*(268435455&(Mt+=122192928e5))+gn)%4294967296;ne[ce++]=Nr>>>24&255,ne[ce++]=Nr>>>16&255,ne[ce++]=Nr>>>8&255,ne[ce++]=255&Nr;var Rn=Mt/4294967296*1e4&268435455;ne[ce++]=Rn>>>8&255,ne[ce++]=255&Rn,ne[ce++]=Rn>>>24&15|16,ne[ce++]=Rn>>>16&255,ne[ce++]=Ce>>>8|128,ne[ce++]=255&Ce;for(var ct=0;ct<6;++ct)ne[ce+ct]=he[ct];return fe||R(ne)},D=function j(ae){if(!d(ae))throw TypeError("Invalid UUID");var fe,oe=new Uint8Array(16);return oe[0]=(fe=parseInt(ae.slice(0,8),16))>>>24,oe[1]=fe>>>16&255,oe[2]=fe>>>8&255,oe[3]=255&fe,oe[4]=(fe=parseInt(ae.slice(9,13),16))>>>8,oe[5]=255&fe,oe[6]=(fe=parseInt(ae.slice(14,18),16))>>>8,oe[7]=255&fe,oe[8]=(fe=parseInt(ae.slice(19,23),16))>>>8,oe[9]=255&fe,oe[10]=(fe=parseInt(ae.slice(24,36),16))/1099511627776&255,oe[11]=fe/4294967296&255,oe[12]=fe>>>24&255,oe[13]=fe>>>16&255,oe[14]=fe>>>8&255,oe[15]=255&fe,oe};function m(ae,fe,oe){function ce(ne,he,Ce,Ae){if("string"==typeof ne&&(ne=function W(ae){ae=unescape(encodeURIComponent(ae));for(var fe=[],oe=0;oe>>9<<4)+1}function g(ae,fe){var oe=(65535&ae)+(65535&fe);return(ae>>16)+(fe>>16)+(oe>>16)<<16|65535&oe}function L(ae,fe,oe,ce,ne,he){return g(function V(ae,fe){return ae<>>32-fe}(g(g(fe,ae),g(ce,he)),ne),oe)}function N(ae,fe,oe,ce,ne,he,Ce){return L(fe&oe|~fe&ce,ae,fe,ne,he,Ce)}function x(ae,fe,oe,ce,ne,he,Ce){return L(fe&ce|oe&~ce,ae,fe,ne,he,Ce)}function b(ae,fe,oe,ce,ne,he,Ce){return L(fe^oe^ce,ae,fe,ne,he,Ce)}function F(ae,fe,oe,ce,ne,he,Ce){return L(oe^(fe|~ce),ae,fe,ne,he,Ce)}var ve=m("v3",48,function C(ae){if("string"==typeof ae){var fe=unescape(encodeURIComponent(ae));ae=new Uint8Array(fe.length);for(var oe=0;oe>5]>>>ne%32&255,Ce=parseInt(ce.charAt(he>>>4&15)+ce.charAt(15&he),16);fe.push(Ce)}return fe}(function E(ae,fe){ae[fe>>5]|=128<>5]|=(255&ae[ce/8])<>>32-fe}var se=m("v5",80,function Le(ae){var fe=[1518500249,1859775393,2400959708,3395469782],oe=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ae){var ce=unescape(encodeURIComponent(ae));ae=[];for(var ne=0;ne>>0;On=Pe,Pe=wt,wt=Fe(un,30)>>>0,un=sn,sn=zt}oe[0]=oe[0]+sn>>>0,oe[1]=oe[1]+un>>>0,oe[2]=oe[2]+wt>>>0,oe[3]=oe[3]+Pe>>>0,oe[4]=oe[4]+On>>>0}return[oe[0]>>24&255,oe[0]>>16&255,oe[0]>>8&255,255&oe[0],oe[1]>>24&255,oe[1]>>16&255,oe[1]>>8&255,255&oe[1],oe[2]>>24&255,oe[2]>>16&255,oe[2]>>8&255,255&oe[2],oe[3]>>24&255,oe[3]>>16&255,oe[3]>>8&255,255&oe[3],oe[4]>>24&255,oe[4]>>16&255,oe[4]>>8&255,255&oe[4]]}),lt="00000000-0000-0000-0000-000000000000",pt=function Ve(ae){if(!d(ae))throw TypeError("Invalid UUID");return parseInt(ae.substr(14,1),16)}},2069:function(be){function X(){}be.exports=X,X.mixin=function(U){var k=U.prototype||U;k.isWildEmitter=!0,k.on=function(q,M,I){this.callbacks=this.callbacks||{};var f=3===arguments.length,d=f?arguments[1]:void 0,P=f?arguments[2]:arguments[1];return P._groupName=d,(this.callbacks[q]=this.callbacks[q]||[]).push(P),this},k.once=function(q,M,I){var f=this,d=3===arguments.length,P=d?arguments[1]:void 0,p=d?arguments[2]:arguments[1];function w(){f.off(q,w),p.apply(this,arguments)}return this.on(q,P,w),this},k.releaseGroup=function(q){var M,I,f,d;for(M in this.callbacks=this.callbacks||{},this.callbacks)for(I=0,f=(d=this.callbacks[M]).length;I