4 lines
1.3 MiB
4 lines
1.3 MiB
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"++zV":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);c(e,t,i(n),r)}})},"/GqU":function(e,t,n){var r=n("RK3t"),o=n("HYAF");e.exports=function(e){return r(o(e))}},"/b8u":function(e,t,n){var r=n("STAE");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"0BK2":function(e,t){e.exports={}},"0Dky":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0GbY":function(e,t,n){var r=n("Qo9l"),o=n("2oRo"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},"0TWp":function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var c=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return R.zone},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return Z},enumerable:!1,configurable:!0}),t.__load_patch=function(o,i){if(P.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var c="Zone:"+o;n(c),P[o]=i(e,t,j),r(c,c)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){R={parent:R,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{R=R.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),R={parent:R,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{R=R.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");if(e.state!==k||e.type!==D&&e.type!==x){var r=e.state!=E;r&&e._transitionTo(E,T),e.runCount++;var o=Z;Z=e,R={parent:R,zone:this};try{e.type==x&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==k&&e.state!==O&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(k,E,k))),R=R.parent,Z=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,k);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(O,_,k),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(T,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new f(S,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new f(x,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new f(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(O,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(k,w),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t}();c.__symbol__=i;var u,s={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},l=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:s,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new c(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");y(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),f=function(){function t(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===D&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==z&&b(),z--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(k,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==k&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(t){if(0===z&&0===d.length)if(u||e[h]&&(u=e[h].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,b)}else e[p](b,0);t&&d.push(t)}function b(){if(!g){for(g=!0;d.length;){var e=d;d=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){j.onUnhandledError(r)}}}j.microtaskDrainDone(),g=!1}}var m={name:"NO ZONE"},k="notScheduled",_="scheduling",T="scheduled",E="running",w="canceling",O="unknown",S="microTask",x="macroTask",D="eventTask",P={},j={symbol:i,currentZoneFrame:function(){return R},onUnhandledError:I,microtaskDrainDone:I,scheduleMicroTask:y,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:I,patchMethod:function(){return I},bindArguments:function(){return[]},patchThen:function(){return I},patchMacroTask:function(){return I},patchEventPrototype:function(){return I},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return I},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return I},wrapWithCurrentZone:function(){return I},filterProperties:function(){return[]},attachOriginToPatched:function(){return I},_redefineProperty:function(){return I},patchCallbacks:function(){return I}},R={parent:null,zone:new c(null,null)},Z=null,z=0;function I(){}r("Zone","Zone"),e.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",c=Zone.__symbol__(i),u=Zone.__symbol__(a),s="true",l="false",f=Zone.__symbol__("");function p(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var v=Zone.__symbol__,d="undefined"!=typeof window,g=d?window:void 0,y=d&&g||"object"==typeof self&&self||global,b=[null];function m(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function k(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!T&&!_&&!(!d||!g.HTMLElement),w=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!_&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n,r=this||e.target||y,o=r[t];return E&&r===g&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null==(n=o&&o.apply(this,arguments))||n||e.preventDefault(),n}};function x(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=v("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=O[s];l||(l=O[s]=v("ON_PROPERTY"+s)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[l]&&t.removeEventListener(s,S),u&&u.apply(t,b),"function"==typeof e?(t[l]=e,t.addEventListener(s,S,!1)):t[l]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[l];if(t)return t;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,i),n[a]=!0}}}function D(e,t,n){if(t)for(var r=0;r<t.length;r++)x(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)x(e,o[a],n)}}var P=v("originalInstance");function j(e){var n=y[e];if(n){y[v(e)]=n,y[e]=function(){var t=m(arguments,e);switch(t.length){case 0:this[P]=new n;break;case 1:this[P]=new n(t[0]);break;case 2:this[P]=new n(t[0],t[1]);break;case 3:this[P]=new n(t[0],t[1],t[2]);break;case 4:this[P]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},z(y[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?y[e].prototype[n]=function(){return this[P][n].apply(this[P],arguments)}:t(y[e].prototype,n,{set:function(t){"function"==typeof t?(this[P][n]=p(t,e+"."+n),z(this[P][n],t)):this[P][n]=t},get:function(){return this[P][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(y[e][r]=n[r])}}function R(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=v(r),c=null;if(i&&!(c=i[a])&&(c=i[a]=i[r],k(i&&e(i,r)))){var u=o(c,a,r);i[r]=function(){return u(this,arguments)},z(i[r],c)}return c}function Z(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=R(e,t,function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?h(i.name,r[i.cbIdx],i,o):e.apply(t,r)}})}function z(e,t){e[v("OriginalDelegate")]=t}var I=!1,C=!1;function M(){if(I)return C;I=!0;try{var e=g.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(C=!0)}catch(t){}return C}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],c=!0===e[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=i("Promise"),s=i("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){if(e.throwOriginal)throw e.rejection;throw e})}catch(r){!function(e){n.onUnhandledError(e);try{var r=t[l];"function"==typeof r&&r.call(this,e)}catch(o){}}(r)}};a.length;)e()};var l=i("unhandledPromiseRejectionHandler");function f(e){return e&&e.then}function p(e){return e}function h(e){return P.reject(e)}var v=i("state"),d=i("value"),g=i("finally"),y=i("parentPromiseValue"),b=i("parentPromiseState"),m=null,k=!0,_=!1;function T(e,t){return function(n){try{w(e,t,n)}catch(r){w(e,!1,r)}}}var E=i("currentTaskTrace");function w(e,r,i){var u,s,l=(u=!1,function(e){return function(){u||(u=!0,e.apply(null,arguments))}});if(e===i)throw new TypeError("Promise resolved with itself");if(e[v]===m){var f=null;try{"object"!=typeof i&&"function"!=typeof i||(f=i&&i.then)}catch(j){return l(function(){w(e,!1,j)})(),e}if(r!==_&&i instanceof P&&i.hasOwnProperty(v)&&i.hasOwnProperty(d)&&i[v]!==m)S(i),w(e,i[v],i[d]);else if(r!==_&&"function"==typeof f)try{f.call(i,l(T(e,r)),l(T(e,!1)))}catch(j){l(function(){w(e,!1,j)})()}else{e[v]=r;var p=e[d];if(e[d]=i,e[g]===g&&r===k&&(e[v]=e[b],e[d]=e[y]),r===_&&i instanceof Error){var h=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;h&&o(i,E,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var O=0;O<p.length;)x(e,p[O++],p[O++],p[O++],p[O++]);if(0==p.length&&r==_){e[v]=0;var D=i;try{throw new Error("Uncaught (in promise): "+((s=i)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(i&&i.stack?"\n"+i.stack:""))}catch(j){D=j}c&&(D.throwOriginal=!0),D.rejection=i,D.promise=e,D.zone=t.current,D.task=t.currentTask,a.push(D),n.scheduleMicroTask()}}}return e}var O=i("rejectionHandledHandler");function S(e){if(0===e[v]){try{var n=t[O];n&&"function"==typeof n&&n.call(this,{rejection:e[d],promise:e})}catch(o){}e[v]=_;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function x(e,t,n,r,o){S(e);var i=e[v],a=i?"function"==typeof r?r:p:"function"==typeof o?o:h;t.scheduleMicroTask("Promise.then",function(){try{var r=e[d],o=!!n&&g===n[g];o&&(n[y]=r,n[b]=i);var c=t.run(a,void 0,o&&a!==h&&a!==p?[]:[r]);w(n,!0,c)}catch(u){w(n,!1,u)}},n)}var D=function(){},P=function(){function e(t){var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[v]=m,n[d]=[];try{t&&t(T(n,k),T(n,_))}catch(r){w(n,!1,r)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return w(new this(null),k,e)},e.reject=function(e){return w(new this(null),_,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){t(e)}function i(e){n(e)}for(var a=0,c=e;a<c.length;a++){var u=c[a];f(u)||(u=this.resolve(u)),u.then(o,i)}return r},e.all=function(t){return e.allWithCallback(t)},e.allSettled=function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})},e.allWithCallback=function(e,t){for(var n,r,o=new this(function(e,t){n=e,r=t}),i=2,a=0,c=[],u=function(e){f(e)||(e=s.resolve(e));var o=a;try{e.then(function(e){c[o]=t?t.thenCallback(e):e,0==--i&&n(c)},function(e){t?(c[o]=t.errorCallback(e),0==--i&&n(c)):r(e)})}catch(u){r(u)}i++,a++},s=this,l=0,p=e;l<p.length;l++)u(p[l]);return 0==(i-=2)&&n(c),o},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.then=function(n,r){var o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||e);var i=new o(D),a=t.current;return this[v]==m?this[d].push(a,i,n,r):x(this,a,i,n,r),i},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(n){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=e);var o=new r(D);o[g]=g;var i=t.current;return this[v]==m?this[d].push(i,o,n,n):x(this,i,o,n,n),o},e}();P.resolve=P.resolve,P.reject=P.reject,P.race=P.race,P.all=P.all;var j=e[u]=e.Promise;e.Promise=P;var Z=i("thenPatched");function z(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[s]=o,e.prototype.then=function(e,t){var n=this;return new P(function(e,t){o.call(n,e,t)}).then(e,t)},e[Z]=!0}}return n.patchThen=z,j&&(z(j),R(e,"fetch",function(e){return t=e,function(e,n){var r=t.apply(e,n);if(r instanceof P)return r;var o=r.constructor;return o[Z]||z(o),r};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,P}),Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=v("OriginalDelegate"),r=v("Promise"),o=v("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});var A=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(Ee){A=!1}var L={useG:!0},F={},H={},W=new RegExp("^"+f+"(\\w+)(true|false)$"),G=v("propagationStopped");function U(e,t){var n=(t?t(e):e)+l,r=(t?t(e):e)+s,o=f+n,i=f+r;F[e]={},F[e].false=o,F[e].true=i}function B(e,t,r){var o=r&&r.add||i,c=r&&r.rm||a,u=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=v(o),d="."+o+":",g=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[c].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},y=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[F[t.type].false];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[G]);i++)g(o[i],n,t)}},b=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[F[t.type].true];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[G]);i++)g(o[i],n,t)}};function m(t,r){if(!t)return!1;var i=!0;r&&void 0!==r.useG&&(i=r.useG);var a=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var m=!1;r&&void 0!==r.rt&&(m=r.rt);for(var k=t;k&&!k.hasOwnProperty(o);)k=n(k);if(!k&&t[o]&&(k=t),!k)return!1;if(k[h])return!1;var _,E=r&&r.eventNameToString,w={},O=k[h]=k[o],S=k[v(c)]=k[c],x=k[v(u)]=k[u],D=k[v(p)]=k[p];function P(e,t){return!A&&"object"==typeof e&&e?!!e.capture:A&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}r&&r.prepend&&(_=k[v(r.prepend)]=k[r.prepend]);var j=i?function(e){if(!w.isExisting)return O.call(w.target,w.eventName,w.capture?b:y,w.options)}:function(e){return O.call(w.target,w.eventName,e.invoke,w.options)},R=i?function(e){if(!e.isRemoved){var t=F[e.eventName],n=void 0;t&&(n=t[e.capture?s:l]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?b:y,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},Z=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},I=Zone[v("UNPATCHED_EVENTS")],C=e[v("PASSIVE_EVENTS")],M=function(t,n,o,c,u,f){return void 0===u&&(u=!1),void 0===f&&(f=!1),function(){var p=this||e,h=arguments[0];r&&r.transferEventName&&(h=r.transferEventName(h));var v=arguments[1];if(!v)return t.apply(this,arguments);if(T&&"uncaughtException"===h)return t.apply(this,arguments);var d=!1;if("function"!=typeof v){if(!v.handleEvent)return t.apply(this,arguments);d=!0}if(!a||a(t,v,p,arguments)){var y=A&&!!C&&-1!==C.indexOf(h),b=P(arguments[2],y);if(I)for(var m=0;m<I.length;m++)if(h===I[m])return y?t.call(p,h,v,b):t.apply(this,arguments);var k=!!b&&("boolean"==typeof b||b.capture),_=!(!b||"object"!=typeof b)&&b.once,O=Zone.current,S=F[h];S||(U(h,E),S=F[h]);var x,D=S[k?s:l],j=p[D],R=!1;if(j){if(R=!0,g)for(m=0;m<j.length;m++)if(Z(j[m],v))return}else j=p[D]=[];var z=p.constructor.name,M=H[z];M&&(x=M[h]),x||(x=z+n+(E?E(h):h)),w.options=b,_&&(w.options.once=!1),w.target=p,w.capture=k,w.eventName=h,w.isExisting=R;var N=i?L:void 0;N&&(N.taskData=w);var W=O.scheduleEventTask(x,v,N,o,c);return w.target=null,N&&(N.taskData=null),_&&(b.once=!0),(A||"boolean"!=typeof W.options)&&(W.options=b),W.target=p,W.capture=k,W.eventName=h,d&&(W.originalDelegate=v),f?j.unshift(W):j.push(W),u?p:void 0}}};return k[o]=M(O,d,j,R,m),_&&(k.prependListener=M(_,".prependListener:",function(e){return _.call(w.target,w.eventName,e.invoke,w.options)},R,m,!0)),k[c]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),c=arguments[1];if(!c)return S.apply(this,arguments);if(!a||a(S,c,t,arguments)){var u,p=F[n];p&&(u=p[i?s:l]);var h=u&&t[u];if(h)for(var v=0;v<h.length;v++){var d=h[v];if(Z(d,c))return h.splice(v,1),d.isRemoved=!0,0===h.length&&(d.allRemoved=!0,t[u]=null,"string"==typeof n&&(t[f+"ON_PROPERTY"+n]=null)),d.zone.cancelTask(d),m?t:void 0}return S.apply(this,arguments)}},k[u]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=K(t,E?E(n):n),a=0;a<i.length;a++){var c=i[a];o.push(c.originalDelegate?c.originalDelegate:c.callback)}return o},k[p]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=F[n];if(o){var i=t[o.false],a=t[o.true];if(i){var u=i.slice();for(f=0;f<u.length;f++)this[c].call(this,n,(s=u[f]).originalDelegate?s.originalDelegate:s.callback,s.options)}if(a)for(u=a.slice(),f=0;f<u.length;f++){var s;this[c].call(this,n,(s=u[f]).originalDelegate?s.originalDelegate:s.callback,s.options)}}}else{for(var l=Object.keys(t),f=0;f<l.length;f++){var h=W.exec(l[f]),v=h&&h[1];v&&"removeListener"!==v&&this[p].call(this,v)}this[p].call(this,"removeListener")}if(m)return this},z(k[o],O),z(k[c],S),D&&z(k[p],D),x&&z(k[u],x),!0}for(var k=[],_=0;_<t.length;_++)k[_]=m(t[_],r);return k}function K(e,t){if(!t){var n=[];for(var r in e){var o=W.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}var u=F[t];u||(U(t),u=F[t]);var s=e[u.false],l=e[u.true];return s?l?s.concat(l):s.slice():l?l.slice():[]}function V(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[G]=!0,e&&e.apply(t,n)}})}function q(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,u){return c&&c.prototype&&o.forEach(function(t){var o=n+"."+r+"::"+t,i=c.prototype;if(i.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(i,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,o),e._redefineProperty(c.prototype,t,a)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}),a.call(t,i,c,u)},e.attachOriginToPatched(t[r],a)}}var Y,X,J,Q,$,ee=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],te=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ne=["load"],re=["blur","error","focus","load","resize","scroll","messageerror"],oe=["bounce","finish","start"],ie=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ae=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ce=["close","error","open","message"],ue=["error","message"],se=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],ee,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function le(e,t,n){if(!n||0===n.length)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter(function(e){return-1===o.indexOf(e)})}function fe(e,t,n,r){e&&D(e,le(e,t,n),r)}function pe(e,t){if((!T||w)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(E){var i=window,a=function(){try{var e=g.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];fe(i,se.concat(["messageerror"]),o?o.concat(a):o,n(i)),fe(Document.prototype,se,o),void 0!==i.SVGElement&&fe(i.SVGElement.prototype,se,o),fe(Element.prototype,se,o),fe(HTMLElement.prototype,se,o),fe(HTMLMediaElement.prototype,te,o),fe(HTMLFrameSetElement.prototype,ee.concat(re),o),fe(HTMLBodyElement.prototype,ee.concat(re),o),fe(HTMLFrameElement.prototype,ne,o),fe(HTMLIFrameElement.prototype,ne,o);var c=i.HTMLMarqueeElement;c&&fe(c.prototype,oe,o);var u=i.Worker;u&&fe(u.prototype,ue,o)}var s=t.XMLHttpRequest;s&&fe(s.prototype,ie,o);var l=t.XMLHttpRequestEventTarget;l&&fe(l&&l.prototype,ie,o),"undefined"!=typeof IDBIndex&&(fe(IDBIndex.prototype,ae,o),fe(IDBRequest.prototype,ae,o),fe(IDBOpenDBRequest.prototype,ae,o),fe(IDBDatabase.prototype,ae,o),fe(IDBTransaction.prototype,ae,o),fe(IDBCursor.prototype,ae,o)),r&&fe(WebSocket.prototype,ce,o)}}function he(){Y=Zone.__symbol__,X=Object[Y("defineProperty")]=Object.defineProperty,J=Object[Y("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Q=Object.create,$=Y("unconfigurables"),Object.defineProperty=function(e,t,n){if(de(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=ge(e,t,n)),ye(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=ge(e,n,t[n])}),Q(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=J(e,t);return n&&de(e,t)&&(n.configurable=!1),n}}function ve(e,t,n){var r=n.configurable;return ye(e,t,n=ge(e,t,n),r)}function de(e,t){return e&&e[$]&&e[$][t]}function ge(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[$]||Object.isFrozen(e)||X(e,$,{writable:!0,value:{}}),e[$]&&(e[$][t]=!0)),n}function ye(e,t,n,r){try{return X(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return X(e,t,n)}catch(a){var o=!1;if("createdCallback"!==t&&"attachedCallback"!==t&&"detachedCallback"!==t&&"attributeChangedCallback"!==t||(o=!0),!o)throw a;var i=null;try{i=JSON.stringify(n)}catch(a){i=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+i+"' on object '"+e+"' and got error, giving up: "+a)}}}function be(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),l=[],f=e.wtf,p="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");f?l=p.map(function(e){return"HTML"+e+"Element"}).concat(s):e.EventTarget?l.push("EventTarget"):l=s;for(var h=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,d=t.isIEOrEdge(),g="[object FunctionWrapper]",y="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",b={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},m=0;m<r.length;m++){var k=u+((O=r[m])+c),_=u+(O+a);i[O]={},i[O][c]=k,i[O][a]=_}for(m=0;m<p.length;m++)for(var T=p[m],E=o[T]={},w=0;w<r.length;w++){var O;E[O=r[w]]=T+".addEventListener:"+O}var S=[];for(m=0;m<l.length;m++){var x=e[l[m]];S.push(x&&x.prototype)}return t.patchEventTarget(e,S,{vh:function(e,t,n,r){if(!h&&d){if(v)try{var o;if((o=t.toString())===g||o==y)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if((o=t.toString())===g||o==y)return e.apply(n,r),!1}else if(v)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0},transferEventName:function(e){return b[e]||e}}),Zone[t.symbol("patchEventTarget")]=!!e.EventTarget,!0}function me(e,t){var n=e.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(e,t){var n=e.getGlobalObjects();if((n.isBrowser||n.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var i=t.XMLHttpRequest;if(!i)return!1;var a="onreadystatechange",c=i.prototype,u=e.ObjectGetOwnPropertyDescriptor(c,a);if(u)return e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(l=new i).onreadystatechange,e.ObjectDefineProperty(c,a,u||{}),o;var s=e.symbol("fake");e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return this[s]},set:function(e){this[s]=e}});var l,f=function(){};return(l=new i).onreadystatechange=f,o=l[s]===f,l.onreadystatechange=null,o}(e,t)){var r="undefined"!=typeof WebSocket;(function(e){for(var t=e.getGlobalObjects().eventNames,n=e.symbol("unbound"),r=function(r){var o=t[r],i="on"+o;self.addEventListener(o,function(t){var r,o,a=t.target;for(o=a?a.constructor.name+"."+i:"unknown."+i;a;)a[i]&&!a[i][n]&&((r=e.wrapWithCurrentZone(a[i],o))[n]=a[i],a[i]=r),a=a.parentElement},!0)},o=0;o<t.length;o++)r(o)})(e),e.patchClass("XMLHttpRequest"),r&&function(e,t){var n=e.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,i=t.WebSocket;t.EventTarget||e.patchEventTarget(t,[i.prototype]),t.WebSocket=function(t,n){var a,c,u=arguments.length>1?new i(t,n):new i(t),s=e.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=e.ObjectCreate(u),c=u,[r,o,"send","close"].forEach(function(t){a[t]=function(){var n=e.ArraySlice.call(arguments);if(t===r||t===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[t].apply(u,n)}})):a=u,e.patchOnProperties(a,["close","error","message","open"],c),a};var a=t.WebSocket;for(var c in i)a[c]=i[c]}(e,t),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(n,c,u){u.patchOnProperties=D,u.patchMethod=R,u.bindArguments=m,u.patchMacroTask=Z;var h=c.__symbol__("BLACK_LISTED_EVENTS"),v=c.__symbol__("UNPATCHED_EVENTS");n[v]&&(n[h]=n[v]),n[h]&&(c[h]=c[v]=n[h]),u.patchEventPrototype=V,u.patchEventTarget=B,u.isIEOrEdge=M,u.ObjectDefineProperty=t,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=r,u.ArraySlice=o,u.patchClass=j,u.wrapWithCurrentZone=p,u.filterProperties=le,u.attachOriginToPatched=z,u._redefineProperty=Object.defineProperty,u.patchCallbacks=q,u.getGlobalObjects=function(){return{globalSources:H,zoneSymbolEventNames:F,eventNames:se,isBrowser:E,isMix:w,isNode:T,TRUE_STR:s,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f,ADD_EVENT_LISTENER_STR:i,REMOVE_EVENT_LISTENER_STR:a}}}),function(e){e[("legacyPatch",(e.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch")]=function(){var t=e.Zone;t.__load_patch("defineProperty",function(e,t,n){n._redefineProperty=ve,he()}),t.__load_patch("registerElement",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in e.document&&t.patchCallbacks(t,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,n)}),t.__load_patch("EventTargetLegacy",function(e,t,n){be(e,n),me(n,e)})}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var ke=v("zoneTask");function _e(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[ke]=null))}},n.handleId=o.apply(e,n.args),t}function u(t){return i.call(e,t.data.handleId)}o=R(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s=h(t,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!s)return s;var l=s.data.handleId;return"number"==typeof l?a[l]=s:l&&(l[ke]=s),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(s.ref=l.ref.bind(l),s.unref=l.unref.bind(l)),"number"==typeof l||l?l:s}return n.apply(e,i)}}),i=R(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[ke])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[ke]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}function Te(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var s=r[u],l=c+(s+a),f=c+(s+i);o[s]={},o[s][a]=l,o[s][i]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",function(e){var t="set",n="clear";_e(e,t,n,"Timeout"),_e(e,t,n,"Interval"),_e(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){_e(e,"request","cancel","AnimationFrame"),_e(e,"mozRequest","mozCancel","AnimationFrame"),_e(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)R(e,n[r],function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}})}),Zone.__load_patch("EventTarget",function(e,t,n){(function(e,t){t.patchEventPrototype(e,t)})(e,n),Te(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype])}),Zone.__load_patch("MutationObserver",function(e,t,n){j("MutationObserver"),j("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,n){j("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,n){j("FileReader")}),Zone.__load_patch("on_property",function(e,t,n){pe(n,e)}),Zone.__load_patch("customElements",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",function(e,t){!function(e){var l=e.XMLHttpRequest;if(l){var f=l.prototype,p=f[c],d=f[u];if(!p){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;p=y[c],d=y[u]}}var b="readystatechange",m="scheduled",k=R(f,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],k.apply(e,t)}}),_=v("fetchTaskAborting"),T=v("fetchTaskScheduling"),E=R(f,"send",function(){return function(e,n){if(!0===t.current[T])return E.apply(e,n);if(e[r])return E.apply(e,n);var o={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},i=h("XMLHttpRequest.send",S,o,O,x);e&&!0===e[s]&&!o.aborted&&i.state===m&&i.invoke()}}),w=R(f,"abort",function(){return function(e,r){var o=e[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[_])return w.apply(e,r)}})}function O(e){var r=e.data,a=r.target;a[i]=!1,a[s]=!1;var l=a[o];p||(p=a[c],d=a[u]),l&&d.call(a,b,l);var f=a[o]=function(){if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&e.state===m){var n=a[t.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);r.aborted||e.state!==m||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==a[i]||(a[s]=!0)};return p.call(a,b,f),a[n]||(a[n]=e),E.apply(a,r.args),a[i]=!0,e}function S(){}function x(e){var t=e.data;return t.aborted=!0,w.apply(t.target,t.args)}}(e);var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL"),s=v("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!k(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,m(arguments,r+"."+i))};return z(t,e),t}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){K(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}})}}e.PromiseRejectionEvent&&(t[v("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[v("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=o)},"0eef":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"0rvr":function(e,t,n){var r=n("glrk"),o=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"1E5z":function(e,t,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},2:function(e,t,n){e.exports=n("hN/g")},"2oRo":function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},"33Wh":function(e,t,n){var r=n("yoRg"),o=n("eDl+");e.exports=Object.keys||function(e){return r(e,o)}},"4WOD":function(e,t,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"5r1n":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.get,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},"6JNq":function(e,t,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},"6LWA":function(e,t,n){var r=n("xrYK");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"6PKz":function(e,t,n){n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA")},"6VoE":function(e,t,n){var r=n("tiKp"),o=n("P4y1"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"8YOa":function(e,t,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,c=n("kOOl"),u=n("uy83"),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},"93I0":function(e,t,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},"9d/t":function(e,t,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},A2ZE:function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"AO7/":function(e,t,n){var r={};r[n("tiKp")("toStringTag")]="z",e.exports="[object z]"===String(r)},AwgR:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.has,c=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},Bs8V:function(e,t,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),u=n("UTVS"),s=n("DPsx"),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},DPsx:function(e,t,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");e.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},ENF9:function(e,t,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d=e.exports=c("WeakMap",v,u);if(f&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,k=g.set;i(g,{delete:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?m.call(this,e):t.frozen.get(e)}return m.call(this,e)},set:function(e,t){if(s(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?k.call(this,e,t):n.frozen.set(e,t)}else k.call(this,e,t);return this}})}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},HH4o:function(e,t,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},HYAF:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"I+eb":function(e,t,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");e.exports=function(e,t){var n,l,f,p,h,v=e.target,d=e.global,g=e.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!s(d?l:v+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},I8vh:function(e,t,n){var r=n("ppGB"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},ImZN:function(e,t,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("KmKo"),s=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,p,h,v,d,g,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),k=a(t,n&&n.that,1+y+m),_=function(e){return l&&u(l),new s(!0,e)},T=function(e){return y?(r(e),m?k(e[0],e[1],_):k(e[0],e[1])):m?k(e,_):k(e)};if(b)l=e;else{if("function"!=typeof(f=c(e)))throw TypeError("Target is not iterable");if(o(f)){for(p=0,h=i(e.length);h>p;p++)if((v=T(e[p]))&&v instanceof s)return v;return new s(!1)}l=f.call(e)}for(d=l.next;!(g=d.call(l)).done;){try{v=T(g.value)}catch(E){throw u(l),E}if("object"==typeof v&&v&&v instanceof s)return v}return new s(!1)}},JBy8:function(e,t,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&(0,o.f)(t,c,{configurable:!0,get:function(){return this}})}},KmKo:function(e,t,n){var r=n("glrk");e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},"N+g0":function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},NaFW:function(e,t,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},P4y1:function(e,t){e.exports={}},Qo9l:function(e,t,n){var r=n("2oRo");e.exports=r},RK3t:function(e,t,n){var r=n("0Dky"),o=n("xrYK"),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},TWQb:function(e,t,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},UMSQ:function(e,t,n){var r=n("ppGB"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},VpIT:function(e,t,n){var r=n("xDBR"),o=n("xs3f");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.3",mode:r?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},XGwC:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},Y4C7:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.getMap,u=o.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=c(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var o=u.get(t);return o.delete(n),!!o.size||u.delete(t)}})},YGK4:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),l=n("JiZb"),f=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e(function(e,r){c(e,l,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})}),h=d(t),g=function(e,t,n){var r,o,i=h(e),a=y(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var n,r=h(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=d(t),i=d(r);s(e,t,function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}},ZfDv:function(e,t,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},ZsH6:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.get,s=o.toKey,l=function(e,t,n){if(c(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return l(e,i(t),n)}})},afO8:function(e,t,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),l=n("UTVS"),f=n("xs3f"),p=n("93I0"),h=n("0BK2");if(a){var v=f.state||(f.state=new(0,c.WeakMap)),d=v.get,g=v.has,y=v.set;r=function(e,t){return t.facade=e,y.call(v,e,t),t},o=function(e){return d.call(v,e)||{}},i=function(e){return g.call(v,e)}}else{var b=p("state");h[b]=!0,r=function(e,t){return t.facade=e,s(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),l=n("hh1v"),f=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");e.exports=function(e,t,n){var d=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),y=d?"set":"add",b=o[e],m=b&&b.prototype,k=b,_={},T=function(e){var t=m[e];a(m,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(g||m.forEach&&!f(function(){(new b).entries().next()}))))k=n.getConstructor(t,e,d,y),c.REQUIRED=!0;else if(i(e,!0)){var E=new k,w=E[y](g?{}:-0,1)!=E,O=f(function(){E.has(1)}),S=p(function(e){new b(e)}),x=!g&&f(function(){for(var e=new b,t=5;t--;)e[y](t,t);return!e.has(-0)});S||((k=t(function(t,n){s(t,k,e);var r=v(new b,t,k);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:d}),r})).prototype=m,m.constructor=k),(O||x)&&(T("delete"),T("has"),d&&T("get")),(x||w)&&T(y),g&&m.clear&&delete m.clear}return _[e]=k,r({global:!0,forced:k!=b},_),h(k,e),g||n.setStrong(k,e,d),k}},bdeN:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.toKey,s=function(e,t,n){if(c(e,t,n))return!0;var r=a(t);return null!==r&&s(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,i(t),n)}})},busE:function(e,t,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(s?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||c(this)})},cVYH:function(e,t,n){var r=n("hh1v"),o=n("0rvr");e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eDxR:function(e,t,n){var r=n("Tskq"),o=n("ENF9"),i=n("VpIT")("metadata"),a=i.store||(i.store=new o),c=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,getMap:c,has:function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){c(n,r,!0).set(e,t)},keys:function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},f5p1:function(e,t,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(e,t,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),l=n("93I0")("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},fdAy:function(e,t,n){"use strict";var r=n("I+eb"),o=n("ntOU"),i=n("4WOD"),a=n("0rvr"),c=n("1E5z"),u=n("kRJp"),s=n("busE"),l=n("tiKp"),f=n("xDBR"),p=n("P4y1"),h=n("rpNk"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",b="values",m="entries",k=function(){return this};e.exports=function(e,t,n,l,h,_,T){o(n,t,l);var E,w,O,S=function(e){if(e===h&&R)return R;if(!d&&e in P)return P[e];switch(e){case y:case b:case m:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",D=!1,P=e.prototype,j=P[g]||P["@@iterator"]||h&&P[h],R=!d&&j||S(h),Z="Array"==t&&P.entries||j;if(Z&&(E=i(Z.call(new e)),v!==Object.prototype&&E.next&&(f||i(E)===v||(a?a(E,v):"function"!=typeof E[g]&&u(E,g,k)),c(E,x,!0,!0),f&&(p[x]=k))),h==b&&j&&j.name!==b&&(D=!0,R=function(){return j.call(this)}),f&&!T||P[g]===R||u(P,g,R),p[t]=R,h)if(w={values:S(b),keys:_?R:S(y),entries:S(m)},T)for(O in w)(d||D||!(O in P))&&s(P,O,w[O]);else r({target:t,proto:!0,forced:d||D},w);return w}},"g6v/":function(e,t,n){var r=n("0Dky");e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"hN/g":function(e,t,n){"use strict";n.r(t),n("6PKz"),n("0TWp"),n("vU8d"),window.global=window},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},iSVu:function(e,t,n){var r=n("xs3f"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},kRJp:function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("XGwC");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},lMq5:function(e,t,n){var r=n("0Dky"),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},"m/L8":function(e,t,n){var r=n("g6v/"),o=n("DPsx"),i=n("glrk"),a=n("wE6v"),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,o=n("fHMY"),i=n("XGwC"),a=n("1E5z"),c=n("P4y1"),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},ppGB:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},qgGA:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){c(e,t,i(n),a(r))}}})},rKzb:function(e,t,n){"use strict";var r=n("4syw"),o=n("8YOa").getWeakData,i=n("glrk"),a=n("hh1v"),c=n("GarU"),u=n("ImZN"),s=n("tycR"),l=n("UTVS"),f=n("afO8"),p=f.set,h=f.getterFor,v=s.find,d=s.findIndex,g=0,y=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},m=function(e,t){return v(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=d(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e(function(e,r){c(e,f,t),p(e,{type:t,id:g++,frozen:void 0}),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})}),v=h(t),d=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return d(this,e,t)}}:{add:function(e){return d(this,e,!0)}}),f}}},rpNk:function(e,t,n){"use strict";var r,o,i,a=n("0Dky"),c=n("4WOD"),u=n("kRJp"),s=n("UTVS"),l=n("tiKp"),f=n("xDBR"),p=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):h=!0);var v=null==r||a(function(){var e={};return r[p].call(e)!==e});v&&(r={}),f&&!v||s(r,p)||u(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},sQ9d:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.keys,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return a(i(e),t)}})},tiKp:function(e,t,n){var r=n("2oRo"),o=n("VpIT"),i=n("UTVS"),a=n("kOOl"),c=n("STAE"),u=n("/b8u"),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)||(s[e]=c&&i(l,e)?l[e]:f("Symbol."+e)),s[e]}},tycR:function(e,t,n){var r=n("A2ZE"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv"),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=7==e,h=5==e||f;return function(v,d,g,y){for(var b,m,k=i(v),_=o(k),T=r(d,g,3),E=a(_.length),w=0,O=y||c,S=t?O(v,E):n||p?O(v,0):void 0;E>w;w++)if((h||w in _)&&(m=T(b=_[w],w,k),e))if(t)S[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u.call(S,b)}else switch(e){case 4:return!1;case 7:u.call(S,b)}return f?-1:s||l?l:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},vU8d:function(e,t){!function(){"use strict";!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}()}()},vZi8:function(e,t,n){var r=n("I+eb"),o=n("YGK4"),i=n("eDxR"),a=n("glrk"),c=n("4WOD"),u=n("ImZN"),s=i.keys,l=i.toKey,f=function(e,t){var n=s(e,t),r=c(e);if(null===r)return n;var i,a,l=f(r,t);return l.length?n.length?(i=new o(n.concat(l)),u(i,(a=[]).push,{that:a}),a):l:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:l(arguments[1]);return f(a(e),t)}})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},xDBR:function(e,t){e.exports=!1},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},xs3f:function(e,t,n){var r=n("2oRo"),o=n("zk60"),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},yoRg:function(e,t,n){var r=n("UTVS"),o=n("/GqU"),i=n("TWQb").indexOf,a=n("0BK2");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},zBJ4:function(e,t,n){var r=n("2oRo"),o=n("hh1v"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},zk60:function(e,t,n){var r=n("2oRo"),o=n("kRJp");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}}},[[2,0]]]);
|
|
!function(e,t){"use strict";function n(){var e=C.splice(0,C.length);for(We=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)p(e[n],t)}function o(e){return function(t){Re(t)&&(p(t,e),le.length&&r(t.querySelectorAll(le),e))}}function l(e){var t=Be.call(e,"is"),n=e.nodeName.toUpperCase(),r=ie.call(re,t?ee+t.toUpperCase():J+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<le.indexOf(e+'[is="'+t+'"]')}function i(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[X]||2,a=e[$]||3;!rt||o&&o!==t||!t[B]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==l&&n!==a)||t[B](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){C.push(t,e.target),We&&clearTimeout(We),We=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(W,c)),le.length&&r((e.target||g).querySelectorAll(le),e.detail===x?x:_),Ve&&function(){for(var e,t=0,n=Ue.length;t<n;t++)ae.contains(e=Ue[t])||(n--,Ue.splice(t--,1),p(e,x))}()}function s(e,t){var n=this;Ge.call(n,e,t),w.call(n,{target:n})}function m(e,t,n){var r=t.apply(e,n),o=l(r);return-1<o&&F(r,oe[o]),n.pop()&&le.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)F(t=e[n],oe[l(t)])}(r.querySelectorAll(le)),r}function f(e,t){De(e,t),N?N.observe(e,$e):(tt&&(e.setAttribute=s,e[R]=O(e),e[U](Y,w)),e[U](Q,i)),e[z]&&rt&&(e.created=!0,e[z](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function p(e,t){var n,r,o=l(e);-1<o&&!xe.call(e,"TEMPLATE")&&(I(e,oe[o]),o=0,t!==_||e[_]?t!==x||e[x]||(e[_]=!1,e[x]=!0,r="disconnected",o=1):(e[x]=!1,e[_]=!0,r="connected",o=1,Ve&&ie.call(Ue,e)<0&&Ue.push(e)),o&&(n=e[t+k]||e[r+k])&&n.call(e))}function h(){}function T(e,t,n){var r=n&&n[q]||"",o=t.prototype,l=Ne(o),a=t.observedAttributes||fe,i={prototype:l};Pe(l,z,{value:function(){if(ye)ye=!1;else if(!this[Me]){this[Me]=!0,new t(this),o[z]&&o[z].call(this);var e=Ce[Ae.get(t)];(!ve||e.create.length>1)&&E(this)}}}),Pe(l,B,{value:function(e){-1<ie.call(a,e)&&o[B]&&o[B].apply(this,arguments)}}),o[j]&&Pe(l,Z,{value:o[j]}),o[G]&&Pe(l,K,{value:o[G]}),r&&(i[q]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,Oe(e)]:[e]},Ae.set(t,e),g[V](e.toLowerCase(),i),v(e),we[e].r()}function L(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function M(e){return"string"==typeof e?e:e&&e.is||""}function E(e){for(var t,n=e[B],r=n?e.attributes:fe,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function v(e){return(e=e.toUpperCase())in we||(we[e]={},we[e].p=new be(function(t){we[e].r=t})),we[e].p}function H(){Ee&&delete e.customElements,me(e,"customElements",{configurable:!0,value:new h}),me(e,"CustomElementRegistry",{configurable:!0,value:h});for(var t=y.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[Me]||(ye=!0,t=Ce[Ae.get(e.constructor)],(e=(r=ve&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):g.createElement.apply(g,t.create))[Me]=!0,ye=!1,r||E(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){me(n,Me,{value:e[t]})}}}(t[n]));g.createElement=function(e,t){var n=M(t);return n?Xe.call(this,e,Oe(n)):Xe.call(this,e)},Ye||(et=!0,g[V](""))}var g=e.document,b=e.Object,y=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in i||(i[e]=(i[e]||[]).concat(t),i[t]=i[t.toUpperCase()]=e)},i=(b.create||b)(null),u={};for(n in e)for(o in e[n])for(i[o]=r=e[n][o],t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?i[e]||(l.test(e)?[]:""):function(e){var t,n=[];for(t in i)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return l.test(e)?a(e,t):a(t,e),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var C,w,A,O,N,D,I,F,S,V="registerElement",P=1e5*e.Math.random()>>0,R="__"+V+P,U="addEventListener",_="attached",k="Callback",x="detached",q="extends",B="attributeChanged"+k,Z=_+k,j="connected"+k,G="disconnected"+k,z="created"+k,K=x+k,X="ADDITION",$="REMOVAL",Q="DOMAttrModified",W="DOMContentLoaded",Y="DOMSubtreeModified",J="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],oe=[],le="",ae=g.documentElement,ie=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=b.prototype,ce=ue.hasOwnProperty,se=ue.isPrototypeOf,me=b.defineProperty,fe=[],de=b.getOwnPropertyDescriptor,pe=b.getOwnPropertyNames,he=b.getPrototypeOf,Te=b.setPrototypeOf,Le=!!b.__proto__,Me="__dreCEv1",Ee=e.customElements,ve=!/^force/.test(t.type)&&!!(Ee&&Ee.define&&Ee.get&&Ee.whenDefined),He=b.create||b,ge=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ie.call(t,e)]},set:function(r,o){(e=ie.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},be=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},ye=!1,Ce=He(null),we=He(null),Ae=new ge,Oe=function(e){return e.toLowerCase()},Ne=b.create||function e(t){return t?(e.prototype=t,new e):this},De=Te||(Le?function(e,t){return e.__proto__=t,e}:pe&&de?function(){function e(e,t){for(var n,r=pe(t),o=0,l=r.length;o<l;o++)ce.call(e,n=r[o])||me(e,n,de(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!se.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Ie=e.MutationObserver||e.WebKitMutationObserver,Fe=e.HTMLAnchorElement,Se=(e.HTMLElement||e.Element||e.Node).prototype,Ve=!se.call(Se,ae),Pe=Ve?function(e,t,n){return e[t]=n.value,e}:me,Re=Ve?function(e){return 1===e.nodeType}:function(e){return se.call(Se,e)},Ue=Ve&&[],_e=Se.attachShadow,ke=Se.cloneNode,xe=Se.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},qe=Se.dispatchEvent,Be=Se.getAttribute,Ze=Se.hasAttribute,je=Se.removeAttribute,Ge=Se.setAttribute,ze=g.createElement,Ke=g.importNode,Xe=ze,$e=Ie&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=Ie||function(e){tt=!1,ae.removeEventListener(Q,Qe)},We=0,Ye=V in g&&!/^force-all/.test(t.type),Je=!0,et=!1,tt=!0,nt=!0,rt=!0;if(Ie&&((S=g.createElement("div")).innerHTML="<div><div></div></div>",new Ie(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(S=de(Se,"innerHTML"))&&S.set;n&&me(Se,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),S=null}).observe(S,{childList:!0,subtree:!0}),S.innerHTML=""),Ye||(Te||Le?(I=function(e,t){se.call(t,e)||f(e,t)},F=f):F=I=function(e,t){e[R]||(e[R]=b(!0),f(e,t))},Ve?(tt=!1,function(){var e=de(Se,U),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=Be.call(this,e),t.newValue=null,t[$]=t.attrChange=2,je.call(this,e),qe.call(this,t)},r=function(e,t){var n=Ze.call(this,e),r=n&&Be.call(this,e),o=new CustomEvent(Q,{bubbles:!0});Ge.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[X]=o.attrChange=0,qe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[R],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Q,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[X]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,qe.call(n,t))};e.value=function(e,l,a){e===Q&&this[B]&&this.setAttribute!==r&&(this[R]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,l,a)},me(Se,U,e)}()):Ie||(ae[U](Q,Qe),ae.setAttribute(R,1),ae.removeAttribute(R),tt&&(w=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[R],o[R]=n=O(o),n){if(!(r in t))return A(0,o,r,t[r],n[r],X);if(n[r]!==t[r])return A(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return A(2,o,r,t[r],n[r],$)}},A=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,i(a)},O=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)"setAttribute"!==(n=(t=o[l]).name)&&(r[n]=t.value);return r})),g[V]=function(e,t){if(n=e.toUpperCase(),Je&&(Je=!1,Ie?(N=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Ie(function(r){for(var o,l,a,i=0,u=r.length;i<u;i++)"childList"===(o=r[i]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(l=o.target,rt&&l[B]&&"style"!==o.attributeName&&(a=Be.call(l,o.attributeName))!==o.oldValue&&l[B](o.attributeName,o.oldValue,a))})}(o(_),o(x)),(D=function(e){return N.observe(e,{childList:!0,subtree:!0}),e})(g),_e&&(Se.attachShadow=function(){return D(_e.apply(this,arguments))})):(C=[],g[U]("DOMNodeInserted",u(_)),g[U]("DOMNodeRemoved",u(x))),g[U](W,c),g[U]("readystatechange",c),g.importNode=function(e,t){switch(e.nodeType){case 1:return m(g,Ke,[e,!!t]);case 11:for(var n=g.createDocumentFragment(),r=e.childNodes,o=r.length,l=0;l<o;l++)n.appendChild(g.importNode(r[l],!!t));return n;default:return ke.call(e,!!t)}},Se.cloneNode=function(e){return m(this,ke,[!!e])}),et)return et=!1;if(-2<ie.call(re,ee+n)+ie.call(re,J+n)&&d(e),!te.test(n)||-1<ie.call(ne,n))throw new Error("The type "+e+" is invalid");var n,l,a=function(){return s?g.createElement(f,n):g.createElement(f)},i=t||ue,s=ce.call(i,q),f=s?t[q].toUpperCase():n;return s&&-1<ie.call(re,J+f)&&d(f),l=re.push((s?ee:J)+n)-1,le=le.concat(le.length?",":"",s?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=oe[l]=ce.call(i,"prototype")?i.prototype:Ne(Se),le.length&&r(g.querySelectorAll(le),_),a},g.createElement=Xe=function(e,t){var n=M(t),r=n?ze.call(g,e,Oe(n)):ze.call(g,e),o=""+e,l=ie.call(re,(n?ee:J)+(n||o).toUpperCase()),i=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),i&&(i=a(o.toUpperCase(),n))),rt=!g.createElement.innerHTMLHelper,i&&F(r,oe[l]),r}),addEventListener("beforeunload",function(){delete g.createElement,delete g.importNode,delete g[V]},!1),h.prototype={constructor:h,define:ve?function(e,t,n){if(n)T(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ae.set(t,r),Ee.define(e,t)}}:T,get:ve?function(e){return Ee.get(e)||L(e)}:L,whenDefined:ve?function(e){return be.race([Ee.whenDefined(e),v(e)])}:v},!Ee||/^force/.test(t.type))H();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[q]="a",(t.prototype=Ne(Fe.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(g.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}(function e(){return Reflect.construct(Fe,[],e)},{},"document-register-element-a"+P)}catch(ot){H()}if(!t.noBuiltIn)try{if(ze.call(g,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(lt){Oe=function(e){return{is:e.toLowerCase()}}}}(window);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(e,t){function n(e,t,n){var i={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(i.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(i.video.mandatory.chromeMediaSourceId=t,i.audio&&i.audio.mandatory&&(i.audio.mandatory.chromeMediaSourceId=t)),i}function i(e){r?r.isLoaded?r.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){i(e)},100):o(function(){i(e)})}var r;function o(e){r?e():((r=document.createElement("iframe")).onload=function(){r.isLoaded=!0,e()},r.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",r.style.display="none",(document.body||document.documentElement).appendChild(r))}function a(){r?r.isLoaded?r.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(a,100):o(a)}window.getScreenId=function(e,t,r){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?t(null,"firefox",{video:{mozMediaSource:e,mediaSource:e}}):(window.addEventListener("message",function e(i){i.data&&(i.data.chromeMediaSourceId&&("PermissionDeniedError"===i.data.chromeMediaSourceId?t("permission-denied"):t(null,i.data.chromeMediaSourceId,n(null,i.data.chromeMediaSourceId,i.data.canRequestAudioTrack)),window.removeEventListener("message",e)),i.data.chromeExtensionStatus&&(t(i.data.chromeExtensionStatus,null,n(i.data.chromeExtensionStatus)),window.removeEventListener("message",e)))}),r?setTimeout(function(){i(r)},100):setTimeout(i,100)):t({video:!0})},window.getScreenConstraints=function(e){o(function(){getScreenId(function(t,n,i){i||(i={video:!0}),e(t,i.video)})})},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))}),setTimeout(a,100))},t.getScreenId=window.getScreenId},"+FKC":function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.WebRtcStats=void 0;var o,a=n("9m68"),s=n("4jfU"),u=a.OpenViduLogger.getInstance(),c=function(){function e(e){this.stream=e,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,o=s.PlatformUtils.getInstance()}return e.prototype.isEnabled=function(){return this.webRtcStatsEnabled},e.prototype.initWebRtcStats=function(){var e=this,t=localStorage.getItem(this.STATS_ITEM_NAME);if(t){this.webRtcStatsEnabled=!0;var n=JSON.parse(t);u.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),u.warn("localStorage item: "+JSON.stringify(n)),this.POST_URL=n.httpEndpoint,this.statsInterval=n.interval,this.webRtcStatsIntervalId=setInterval(function(){return i(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return e.sent(),[2]}})})},1e3*this.statsInterval)}else u.debug("WebRtc stats not enabled")},e.prototype.getSelectedIceCandidateInfo=function(){var e=this;return new Promise(function(t,n){return i(e,void 0,void 0,function(){var e,n,i,a,s,u,c,l,h,d,f,p,v,m,g,y,b,_,k;return r(this,function(r){switch(r.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(e=r.sent(),i=new Map,a=new Map,s=new Map,e.forEach(function(e){switch("transport"===e.type&&(o.isChromium()||o.isSafariBrowser()||o.isReactNative())&&(n=e),e.type){case"candidate-pair":i.set(e.id,e);break;case"local-candidate":a.set(e.id,e);break;case"remote-candidate":s.set(e.id,e)}}),null!=n)u=i.get(n.selectedCandidatePairId);else for(c=i.size,l=i.values(),h=0;h<c;h++)if((d=l.next().value).selected){u=d;break}if(f=u.remoteCandidateId,p=a.get(u.localCandidateId))for(y=this.stream.getLocalIceCandidateList(),b=y.filter(function(e){return!!e.candidate&&(e.candidate.indexOf(p.ip)>=0||e.candidate.indexOf(p.address)>=0)&&e.candidate.indexOf(p.port)>=0}),p.raw=[],v=0,m=b;v<m.length;v++)p.raw.push(m[v].candidate);else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(g=s.get(f))for(y=this.stream.getRemoteIceCandidateList(),b=y.filter(function(e){return!!e.candidate&&(e.candidate.indexOf(g.ip)>=0||e.candidate.indexOf(g.address)>=0)&&e.candidate.indexOf(g.port)>=0}),g.raw=[],_=0,k=b;_<k.length;_++)g.raw.push(k[_].candidate);else g="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return t({localCandidate:p,remoteCandidate:g}),[2]}})})})},e.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),u.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},e.prototype.sendStats=function(e,t){return i(this,void 0,void 0,function(){var n,i;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),n={headers:{"Content-type":"application/json"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,n)];case 1:return r.sent(),[3,3];case 2:return i=r.sent(),u.error(i),[3,3];case 3:return[2]}})})},e.prototype.sendStatsToHttpEndpoint=function(){return i(this,void 0,void 0,function(){var e,t,n;return r(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return e=i.sent(),t=this.generateJSONStatsResponse(e),[4,this.sendStats(this.POST_URL,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),u.log(n),[3,4];case 4:return[2]}})})},e.prototype.getCommonStats=function(){return i(this,void 0,void 0,function(){var e=this;return r(this,function(t){return[2,new Promise(function(t,n){return i(e,void 0,void 0,function(){var e,n,i,o=this;return r(this,function(r){switch(r.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:return e=r.sent(),n=this.getWebRtcStatsResponseOutline(),i=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],e.forEach(function(e){var t=null!=e.mediaType?e.mediaType:e.kind,r=function(r,o){null!=e[o]&&null!=n[r]&&(!t&&i.indexOf(o)>-1&&(t="video"),null!=r&&null!=t&&null!=o&&null!=n[r]&&null!=n[r][t]&&(n[r][t][o]=Number(e[o])))};switch(e.type){case"outbound-rtp":r("outbound","bytesSent"),r("outbound","packetsSent"),r("outbound","framesEncoded"),r("outbound","nackCount"),r("outbound","firCount"),r("outbound","pliCount"),r("outbound","qpSum");break;case"inbound-rtp":r("inbound","bytesReceived"),r("inbound","packetsReceived"),r("inbound","packetsLost"),r("inbound","jitter"),r("inbound","framesDecoded"),r("inbound","nackCount"),r("inbound","firCount"),r("inbound","pliCount");break;case"track":r("inbound","jitterBufferDelay"),r("inbound","framesReceived"),r("outbound","framesDropped"),r("outbound","framesSent"),r(o.stream.isLocal()?"outbound":"inbound","frameHeight"),r(o.stream.isLocal()?"outbound":"inbound","frameWidth")}}),[2,t(n)]}})})})]})})},e.prototype.generateJSONStatsResponse=function(e){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:o.getName(),platform_description:o.getDescription(),stream:"webRTC",webrtc_stats:e}},e.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}}}:{inbound:{audio:{},video:{}}}},e}();t.WebRtcStats=c},"+ig+":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.FilterEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.data=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.FilterEvent=o},"+qE3":function(e,t,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,i){function r(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,r),i(n)},e.once("error",o)),e.once(t,r)})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var r,o,a;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(e))>0&&a.length>r&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=r[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n<c;++n)o(l[n],this,t)}return!0},s.prototype.on=s.prototype.addListener=function(e,t){return h(this,e,t,!1)},s.prototype.prependListener=function(e,t){return h(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.off=s.prototype.removeListener=function(e,t){var n,i,r,o,a;if(c(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},"+qwt":function(e,t,n){(function(e){var i;(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,a=r[typeof t]&&t&&r[typeof e]&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a);var s=Math.pow(2,53)-1,u=/\bOpera/,c=Object.prototype,l=c.hasOwnProperty,h=c.toString;function d(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function f(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:d(e)}function p(e,t){for(var n in e)l.call(e,n)&&t(e[n],n,e)}function v(e){return null==e?d(e):h.call(e).slice(8,-1)}function m(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function g(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=s)for(;++n<i;)t(e[n],n);else p(e,t)}(e,function(i,r){n=t(n,i,r,e)}),n}function y(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=o,i=t&&"object"==typeof t&&"String"!=v(t);i&&(n=t,t=null);var r=n.navigator||{},a=r.userAgent||"";t||(t=a);var s,c,l,d,b=i?!!r.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(h.toString()),_="Object",k=i?_:"ScriptBridgingProxyObject",w=i?_:"Environment",S=i&&n.java?"JavaPackage":v(n.java),C=i?_:"RuntimeObject",E=/\bJava/.test(S)&&n.java,O=E&&v(n.environment)==w,x=E?"a":"\u03b1",T=E?"b":"\u03b2",M=n.document||{},P=n.operamini||n.opera,I=u.test(I=i&&P?P["[[Class]]"]:v(P))?I:P=null,A=t,R=[],D=null,N=t==a,L=N&&P&&"function"==typeof P.version&&P.version(),V=g([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)}),j=g(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)}),F=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),B=g({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(e,n,i){return e||(n[F]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(F)]||RegExp("\\b"+m(i)+"(?:\\b|\\w*\\d)","i").exec(t))&&i}),U=g(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(i=i[/[\d.]+$/.exec(e)])&&(e="Windows "+i),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),f(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,i,n.label||n)),e});function z(e){return g(e,function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=f(e[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e})}function W(e){return g(e,function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})}if(V&&(V=[V]),/\bAndroid\b/.test(U)&&!F&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(F=y(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),B&&!F?F=z([B]):B&&F&&(F=F.replace(RegExp("^("+m(B)+")[-_.\\s]","i"),B+" ").replace(RegExp("^("+m(B)+")[-_.]?(\\w)","i"),B+" $2")),(s=/\bGoogle TV\b/.exec(F))&&(F=s[0]),/\bSimulator\b/i.test(t)&&(F=(F?F+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(t)&&R.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(t)?(B=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,F=s.product):/^iP/.test(F)?(j||(j="Safari"),U="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==j&&/^Linux\b/i.test(U)?U="Kubuntu":B&&"Google"!=B&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(F))||/\bAndroid\b/.test(U)&&/^Chrome/.test(j)&&/\bVersion\//i.test(t)?(j="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==j?(/\bMobi/i.test(t)||(U="Android",R.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&R.unshift("accelerated")):"UC Browser"==j&&/\bUCWEB\b/.test(t)?R.push("speed mode"):"PaleMoon"==j&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+s[1]):"Firefox"==j&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),F||(F=s[1])):!j||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!F&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(j=null),(s=F||B||U)&&(F||B||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:s)+" Browser")):"Electron"==j&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+s),L||(L=W(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",m(j),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==V&&parseFloat(L)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(V=[s]),"IE"==j&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",U="Windows Phone "+(/\+$/.test(s)?s:s+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",U="Windows Phone 8.x",R.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==V&&(s=/\brv:([\d.]+)/.exec(t))&&(j&&R.push("identifying as "+j+(L?" "+L:"")),j="IE",L=s[1]),N){if(/^(?:boolean|number|string|undefined)$/.test(d=null!=(l=n)?typeof l.global:"number")||"object"==d&&!l.global)v(s=n.runtime)==k?(j="Adobe AIR",U=s.flash.system.Capabilities.os):v(s=n.phantom)==C?(j="PhantomJS",L=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof M.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?((s=+s[1]+4)!=(L=[L,M.documentMode])[1]&&(R.push("IE "+L[1]+" mode"),V&&(V[1]=""),L[1]=s),L="IE"==j?String(L[1].toFixed(1)):L[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(R.push("masking as "+j+" "+L),j="IE",L="11.0",V=["Trident"],U="Windows");else if(E&&(A=(s=E.lang.System).getProperty("os.arch"),U=U||s.getProperty("os.name")+" "+s.getProperty("os.version")),O){try{L=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(G){(s=n.system)&&s.global.system==n.system&&(j="Narwhal",U||(U=s[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(R.push("Node "+s.versions.node),j="Electron",L=s.versions.electron):"string"==typeof s.versions.nw&&(R.push("Chromium "+L,"Node "+s.versions.node),j="NW.js",L=s.versions.nw)),j||(j="Node.js",A=s.arch,U=s.platform,L=(L=/[\d.]+/.exec(s.version))?L[0]:null));U=U&&f(U)}if(L&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(N&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(D=/b/i.test(s)?"beta":"alpha",L=L.replace(RegExp(s+"\\+?$"),"")+("beta"==D?T:x)+(/\d+\+?/.exec(s)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))j="Firefox Mobile";else if("Maxthon"==j&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(t)&&R.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||F||/Browser|Mobi/.test(j))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==j&&N)try{null===n.external&&R.unshift("platform preview")}catch(G){R.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(t))&&(s=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(U=((s=[s,/BB10/.test(t)])[1]?(F=null,B="BlackBerry"):"Device Software")+" "+s[0],L=null):this!=p&&"Wii"!=F&&(N&&P||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==j&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!u.test(s=e.call(p,t.replace(u,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),u.test(j)?(/\bIE\b/.test(s)&&"Mac OS"==U&&(U=null),s="identify"+s):(s="mask"+s,j=I?f(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(U=null),N||(L=null)),V=["Presto"],R.push(s));else j+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==j&&"+"==s[1].slice(-1)?(j="WebKit Nightly",D="alpha",L=s[1].slice(0,-1)):L!=s[1]&&L!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==V&&(V=["Blink"]),N&&(b||s[1])?(V&&(V[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),V&&(V[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==j&&(!L||parseInt(L)>45)?L=s:"Chrome"==j&&/\bHeadlessChrome/i.test(t)&&R.unshift("headless")),"Opera"==j&&(s=/\bzbov|zvav$/.exec(U))?(j+=" ",R.unshift("desktop mode"),"zvav"==s?(j+="Mini",L=null):j+="Mobile",U=U.replace(RegExp(" *"+s+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(V&&V[1])?(R.unshift("desktop mode"),j="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(B="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(j)&&!L&&(L=W("Chrome")),L&&0==L.indexOf(s=/[\d.]+$/.exec(U))&&t.indexOf("/"+s+"-")>-1&&(U=y(U.replace(s,""))),U&&-1!=U.indexOf(j)&&!RegExp(j+" OS").test(U)&&(U=U.replace(RegExp(" *"+m(j)+" *"),"")),V&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(U)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(j)&&V[1])&&(s=V[V.length-1])&&R.push(s),R.length&&(R=["("+R.join("; ")+")"]),B&&F&&F.indexOf(B)<0&&R.push("on "+B),F&&R.push((/^on /.test(R[R.length-1])?"":"on ")+F),U&&(s=/ ([\d.+]+)$/.exec(U),c=s&&"/"==U.charAt(U.length-s[0].length-1),U={architecture:32,family:s&&!c?U.replace(s[0],""):U,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+s),"")),j&&(/\bWOW64\b/i.test(t)||N&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&R.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==j&&parseFloat(L)>=39&&(U.architecture=64),t||(t=null);var H={};return H.description=t,H.layout=V&&V[0],H.manufacturer=B,H.name=j,H.prerelease=D,H.product=F,H.ua=t,H.version=j&&L,H.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=e,H.toString=function(){return this.description||""},H.version&&R.unshift(L),H.name&&R.unshift(j),U&&j&&(U!=String(U).split(" ")[0]||U!=j.split(" ")[0]&&!F)&&R.push(F?"("+U+")":"on "+U),R.length&&(H.description=R.join(" ")),H}();o.platform=b,void 0===(i=(function(){return b}).call(t,n,t,e))||(e.exports=i)}).call(this)}).call(this,n("YuTi")(e))},"/dLB":function(e,t,n){"use strict";var i;t.__esModule=!0,t.VideoInsertMode=void 0,(i=t.VideoInsertMode||(t.VideoInsertMode={})).AFTER="AFTER",i.APPEND="APPEND",i.BEFORE="BEFORE",i.PREPEND="PREPEND",i.REPLACE="REPLACE"},"/u9M":function(e,t,n){"use strict";t.__esModule=!0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("LXjW")),r=i.tokenize,o=i.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}function u(e){if(!e)return"";var t=[];for(var n in e)t.push(n+'="'+s(e[n]+"")+'"');return t.join(" ")}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=r(e),i=[],c=0;c<n.length;c++){var l=n[c];if("nl"===l.type&&t.nl2br)i.push("<br>\n");else if(l.isLink&&t.check(l)){var h=t.resolve(l),d=h.formatted,f=h.formattedHref,p=h.tagName,v=h.className,m=h.target,g=h.attributes,y="<"+p+' href="'+s(f)+'"';v&&(y+=' class="'+s(v)+'"'),m&&(y+=' target="'+s(m)+'"'),g&&(y+=" "+u(g)),y+=">"+a(d)+"</"+p+">",i.push(y)}else i.push(a(l.toString()))}return i.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return c(this,e)}}})}catch(l){String.prototype.linkify||(String.prototype.linkify=function(e){return c(this,e)})}t.default=c},0:function(e,t,n){e.exports=n("zUnb")},"0wxW":function(e,t,n){var i=n("de4E"),r=n("pLL0");t.JsonRPC=i,t.XmlRPC=r},"4O8T":function(e,t,n){var i;!function(t){"use strict";function r(){}var o=r.prototype,a=t.EventEmitter;function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}function c(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&c(e.listener)}o.getListeners=function(e){var t,n,i=this._getEvents();if(e instanceof RegExp)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},o.addListener=function(e,t){if(!c(t))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(e),r="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],t)&&i[n].push(r?t:{listener:t,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&-1!==(n=s(r[i],t))&&r[i].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},o.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if(e instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(e,i.listener),i.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,i.listener);return this},o.trigger=u("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return t.EventEmitter=a,r},void 0===(i=(function(){return r}).call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof window?window:this||{})},"4USb":function(e,t,n){"use strict";var i;n.r(t),n.d(t,"v1",function(){return v}),n.d(t,"v3",function(){return E}),n.d(t,"v4",function(){return O}),n.d(t,"v5",function(){return M}),n.d(t,"NIL",function(){return P}),n.d(t,"version",function(){return I}),n.d(t,"validate",function(){return s}),n.d(t,"stringify",function(){return d}),n.d(t,"parse",function(){return m});var r=new Uint8Array(16);function o(){if(!i&&!(i="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 i(r)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,h,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},f=0,p=0,v=function(e,t,n){var i=t&&n||0,r=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:h;if(null==a||null==s){var u=e.random||(e.rng||o)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=h=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,m=c-f+(v-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>f)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=c,p=v,h=s;var g=(1e4*(268435455&(c+=122192928e5))+v)%4294967296;r[i++]=g>>>24&255,r[i++]=g>>>16&255,r[i++]=g>>>8&255,r[i++]=255&g;var y=c/4294967296*1e4&268435455;r[i++]=y>>>8&255,r[i++]=255&y,r[i++]=y>>>24&15|16,r[i++]=y>>>16&255,r[i++]=s>>>8|128,r[i++]=255&s;for(var b=0;b<6;++b)r[i+b]=a[b];return t||d(r)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n},g=function(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=m(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,r){o=o||0;for(var s=0;s<16;++s)r[o+s]=a[s];return r}return d(a)}try{i.name=e}catch(r){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,i,r,o){return b((a=b(b(t,e),b(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function k(e,t,n,i,r,o,a){return _(t&n|~t&i,e,t,r,o,a)}function w(e,t,n,i,r,o,a){return _(t&i|n&~i,e,t,r,o,a)}function S(e,t,n,i,r,o,a){return _(t^n^i,e,t,r,o,a)}function C(e,t,n,i,r,o,a){return _(n^(t|~i),e,t,r,o,a)}var E=g("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=i,c=r,l=o;n=k(n,i,r,o,e[a],7,-680876936),o=k(o,n,i,r,e[a+1],12,-389564586),r=k(r,o,n,i,e[a+2],17,606105819),i=k(i,r,o,n,e[a+3],22,-1044525330),n=k(n,i,r,o,e[a+4],7,-176418897),o=k(o,n,i,r,e[a+5],12,1200080426),r=k(r,o,n,i,e[a+6],17,-1473231341),i=k(i,r,o,n,e[a+7],22,-45705983),n=k(n,i,r,o,e[a+8],7,1770035416),o=k(o,n,i,r,e[a+9],12,-1958414417),r=k(r,o,n,i,e[a+10],17,-42063),i=k(i,r,o,n,e[a+11],22,-1990404162),n=k(n,i,r,o,e[a+12],7,1804603682),o=k(o,n,i,r,e[a+13],12,-40341101),r=k(r,o,n,i,e[a+14],17,-1502002290),n=w(n,i=k(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=w(o,n,i,r,e[a+6],9,-1069501632),r=w(r,o,n,i,e[a+11],14,643717713),i=w(i,r,o,n,e[a],20,-373897302),n=w(n,i,r,o,e[a+5],5,-701558691),o=w(o,n,i,r,e[a+10],9,38016083),r=w(r,o,n,i,e[a+15],14,-660478335),i=w(i,r,o,n,e[a+4],20,-405537848),n=w(n,i,r,o,e[a+9],5,568446438),o=w(o,n,i,r,e[a+14],9,-1019803690),r=w(r,o,n,i,e[a+3],14,-187363961),i=w(i,r,o,n,e[a+8],20,1163531501),n=w(n,i,r,o,e[a+13],5,-1444681467),o=w(o,n,i,r,e[a+2],9,-51403784),r=w(r,o,n,i,e[a+7],14,1735328473),n=S(n,i=w(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=S(o,n,i,r,e[a+8],11,-2022574463),r=S(r,o,n,i,e[a+11],16,1839030562),i=S(i,r,o,n,e[a+14],23,-35309556),n=S(n,i,r,o,e[a+1],4,-1530992060),o=S(o,n,i,r,e[a+4],11,1272893353),r=S(r,o,n,i,e[a+7],16,-155497632),i=S(i,r,o,n,e[a+10],23,-1094730640),n=S(n,i,r,o,e[a+13],4,681279174),o=S(o,n,i,r,e[a],11,-358537222),r=S(r,o,n,i,e[a+3],16,-722521979),i=S(i,r,o,n,e[a+6],23,76029189),n=S(n,i,r,o,e[a+9],4,-640364487),o=S(o,n,i,r,e[a+12],11,-421815835),r=S(r,o,n,i,e[a+15],16,530742520),n=C(n,i=S(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=C(o,n,i,r,e[a+7],10,1126891415),r=C(r,o,n,i,e[a+14],15,-1416354905),i=C(i,r,o,n,e[a+5],21,-57434055),n=C(n,i,r,o,e[a+12],6,1700485571),o=C(o,n,i,r,e[a+3],10,-1894986606),r=C(r,o,n,i,e[a+10],15,-1051523),i=C(i,r,o,n,e[a+1],21,-2054922799),n=C(n,i,r,o,e[a+8],6,1873313359),o=C(o,n,i,r,e[a+15],10,-30611744),r=C(r,o,n,i,e[a+6],15,-1560198380),i=C(i,r,o,n,e[a+13],21,1309151649),n=C(n,i,r,o,e[a+4],6,-145523070),o=C(o,n,i,r,e[a+11],10,-1120210379),r=C(r,o,n,i,e[a+2],15,718787259),i=C(i,r,o,n,e[a+9],21,-343485551),n=b(n,s),i=b(i,u),r=b(r,c),o=b(o,l)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}),O=function(e,t,n){var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return d(i)};function x(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function T(e,t){return e<<t|e>>>32-t}var M=g("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=new Array(o),s=0;s<o;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=u}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<o;++l){for(var h=new Uint32Array(80),d=0;d<16;++d)h[d]=a[l][d];for(var f=16;f<80;++f)h[f]=T(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var p=n[0],v=n[1],m=n[2],g=n[3],y=n[4],b=0;b<80;++b){var _=Math.floor(b/20),k=T(p,5)+x(_,v,m,g)+y+t[_]+h[b]>>>0;y=g,g=m,m=T(v,30)>>>0,v=p,p=k}n[0]=n[0]+p>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),P="00000000-0000-0000-0000-000000000000",I=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},"4jfU":function(e,t,n){"use strict";t.__esModule=!0,t.PlatformUtils=void 0;var i=n("+qwt"),r=function(){function e(){}return e.getInstance=function(){return this.instance||(this.instance=new e),e.instance},e.prototype.isChromeBrowser=function(){return"Chrome"===i.name},e.prototype.isSafariBrowser=function(){return"Safari"===i.name},e.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===i.name},e.prototype.isFirefoxBrowser=function(){return"Firefox"===i.name},e.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===i.name},e.prototype.isOperaBrowser=function(){return"Opera"===i.name},e.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===i.name},e.prototype.isEdgeBrowser=function(){var e=(null==i?void 0:i.version)?parseFloat(i.version):-1;return"Microsoft Edge"===i.name&&e>=80},e.prototype.isEdgeMobileBrowser=function(){var e,t=(null==i?void 0:i.version)?parseFloat(i.version):-1;return"Microsoft Edge"===i.name&&"Android"===(null===(e=i.os)||void 0===e?void 0:e.family)&&t>45},e.prototype.isAndroidBrowser=function(){return"Android Browser"===i.name},e.prototype.isElectron=function(){return"Electron"===i.name},e.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===i.name||"Samsung Internet"===i.name},e.prototype.isIPhoneOrIPad=function(){var e=i.ua?i.ua:navigator.userAgent,t="ontouchend"in document,n=/\b(\w*Macintosh\w*)\b/.test(e)&&t,r=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e)&&t;return n||r},e.prototype.isIOSWithSafari=function(){var e=i.ua?i.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)},e.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===i.ua.indexOf("Safari")},e.prototype.isIonicAndroid=function(){return"Android"===i.os.family&&"Android Browser"==i.name},e.prototype.isMobileDevice=function(){return"iOS"===i.os.family||"Android"===i.os.family},e.prototype.isReactNative=function(){return!1},e.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},e.prototype.canScreenShare=function(){var e=(null==i?void 0:i.version)?parseFloat(i.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&e>=13)},e.prototype.getName=function(){return i.name||""},e.prototype.getVersion=function(){return i.version||""},e.prototype.getFamily=function(){return i.os.family||""},e.prototype.getDescription=function(){return i.description||""},e}();t.PlatformUtils=r},"5bWi":function(e){e.exports=JSON.parse('["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]')},"5kmN":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.WebRtcPeerSendrecv=t.WebRtcPeerSendonly=t.WebRtcPeerRecvonly=t.WebRtcPeer=void 0;var s=n("8fGR"),u=n("4USb"),c=n("6cvo"),l=n("9m68"),h=n("4jfU"),d=l.OpenViduLogger.getInstance(),f=function(){function e(e){var t=this;this.configuration=e,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],h.PlatformUtils.getInstance(),this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:s(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=e.id?e.id:this.generateUniqueId(),this.pc.addEventListener("icecandidate",function(e){if(null!=e.candidate){var n=e.candidate;t.configuration.onIceCandidate(n),""!==n.candidate&&t.localCandidatesQueue.push({candidate:n.candidate})}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;){var e=t.iceCandidateList.shift();t.pc.addIceCandidate(e)}}),this.start()}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){if("closed"===e.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),e.configuration.mediaStream){for(var i=0,r=e.configuration.mediaStream.getTracks();i<r.length;i++)e.pc.addTrack(r[i],e.configuration.mediaStream);t()}})},e.prototype.dispose=function(){if(d.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},e.prototype.createOffer=function(){var e=this;return new Promise(function(t,n){var i,r=!0;if(e.configuration.mediaConstraints&&(i="boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,r="boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video),"function"==typeof e.pc.addTransceiver)d.debug("Unified Plan supported"),i&&e.pc.addTransceiver("audio",{direction:e.configuration.mode}),r&&e.pc.addTransceiver("video",{direction:e.configuration.mode}),e.pc.createOffer().then(function(e){d.debug("Created SDP offer"),t(e)}).catch(function(e){return n(e)});else{var o={offerToReceiveAudio:"sendonly"!==e.configuration.mode&&i,offerToReceiveVideo:"sendonly"!==e.configuration.mode&&r};d.debug("Unified Plan not supported. Using Plan B. RTCPeerConnection constraints: "+JSON.stringify(o)),e.pc.createOffer(o).then(function(e){d.debug("Created SDP offer"),t(e)}).catch(function(e){return n(e)})}})},e.prototype.createAnswer=function(){var e=this;return new Promise(function(t,n){var i,r=!0;e.configuration.mediaConstraints&&(i="boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,r="boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video),e.pc.createAnswer({offerToReceiveAudio:i,offerToReceiveVideo:r}).then(function(e){t(e)}).catch(function(e){n(e)})})},e.prototype.processLocalOffer=function(e){var t=this;return new Promise(function(n,i){t.pc.setLocalDescription(e).then(function(){var e=t.pc.localDescription;e?(d.debug("Local description set",e.sdp),n()):i("Local description is not defined")}).catch(function(e){i(e)})})},e.prototype.processRemoteOffer=function(e){var t=this;return new Promise(function(n,i){var r={type:"offer",sdp:e};d.debug("SDP offer received, setting remote description",r),"closed"===t.pc.signalingState&&i("RTCPeerConnection is closed when trying to set remote description"),t.setRemoteDescription(r).then(function(){n()}).catch(function(e){i(e)})})},e.prototype.processLocalAnswer=function(e){var t=this;return new Promise(function(n,i){d.debug("SDP answer created, setting local description"),"closed"===t.pc.signalingState&&i("RTCPeerConnection is closed when trying to set local description"),t.pc.setLocalDescription(e).then(function(){return n()}).catch(function(e){return i(e)})})},e.prototype.processRemoteAnswer=function(e){var t=this;return new Promise(function(n,i){var r={type:"answer",sdp:e};d.debug("SDP answer received, setting remote description"),"closed"===t.pc.signalingState&&i("RTCPeerConnection is closed when trying to set remote description"),t.setRemoteDescription(r).then(function(){return n()}).catch(function(e){return i(e)})})},e.prototype.setRemoteDescription=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){return[2,this.pc.setRemoteDescription(e)]})})},e.prototype.addIceCandidate=function(e){var t=this;return new Promise(function(n,i){switch(d.debug("Remote ICE candidate received",e),t.remoteCandidatesQueue.push(e),t.pc.signalingState){case"closed":i(new Error("PeerConnection object is closed"));break;case"stable":t.pc.remoteDescription?t.pc.addIceCandidate(e).then(function(){return n()}).catch(function(e){return i(e)}):(t.iceCandidateList.push(e),n());break;default:t.iceCandidateList.push(e),n()}})},e.prototype.addIceConnectionStateChangeListener=function(e){var t=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(t.pc.iceConnectionState){case"disconnected":var n="IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "disconnected". Possible network disconnection';d.warn(n),t.configuration.onIceConnectionStateException(c.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,n);break;case"failed":var i="IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') to "failed"';d.error(i),t.configuration.onIceConnectionStateException(c.ExceptionEventName.ICE_CONNECTION_FAILED,i);break;case"closed":d.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "closed"');break;case"new":d.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "new"');break;case"checking":d.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "checking"');break;case"connected":d.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "connected"');break;case"completed":d.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "completed"')}})},e.prototype.generateUniqueId=function(){return u.v4()},e}();t.WebRtcPeer=f;var p=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(f);t.WebRtcPeerRecvonly=p;var v=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(f);t.WebRtcPeerSendonly=v;var m=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(f);t.WebRtcPeerSendrecv=m},"6cvo":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.ExceptionEvent=t.ExceptionEventName=void 0;var o,a=n("hzOQ");(o=t.ExceptionEventName||(t.ExceptionEventName={})).ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",o.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",o.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",o.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT";var s=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,"exception")||this;return a.name=n,a.origin=i,a.message=r,a.data=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(a.Event);t.ExceptionEvent=s},"6qA3":function(e,t,n){"use strict";var i=n("OAkW"),r=n("Z5tI"),o=n("poJ0"),a=n("ozli"),s=n("yRPT"),u=n("90cg"),c=n("GMZp"),l=n("VKeD"),h=n("zfKp");t.subscribeTo=function(e){if(e&&"function"==typeof e[h.observable])return a.subscribeToObservable(e);if(s.isArrayLike(e))return i.subscribeToArray(e);if(u.isPromise(e))return r.subscribeToPromise(e);if(e&&"function"==typeof e[l.iterator])return o.subscribeToIterable(e);var t=c.isObject(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},"74bm":function(e,t,n){"use strict";t.__esModule=!0,t.Filter=void 0;var i=n("BwMD"),r=n("Tt94"),o=n("9m68").OpenViduLogger.getInstance(),a=function(){function e(e,t){this.handlers=new Map,this.type=e,this.options=t}return e.prototype.execMethod=function(e,t){var n=this;return new Promise(function(a,s){var u;if(o.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof t)try{u=JSON.stringify(t)}catch(l){var c="'params' property must be a JSON formatted object";o.error(c),s(c)}else u=t;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:e,params:u},function(t,c){if(t)o.error("Error executing filter method for Stream "+n.stream.streamId,t),s(401===t.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):t);else{o.info("Filter method successfully executed on Stream "+n.stream.streamId);var l=Object.assign({},n.stream.filter);n.stream.filter.lastExecMethod={method:e,params:JSON.parse(u)},n.stream.session.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),a()}})})},e.prototype.addEventListener=function(e,t){var n=this;return new Promise(function(i,a){o.info("Adding filter event listener to event "+e+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:e},function(s,u){s?(o.error("Error adding filter event listener to event "+e+"for Stream "+n.stream.streamId,s),a(401===s.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(n.handlers.set(e,t),o.info("Filter event listener to event "+e+" successfully applied on Stream "+n.stream.streamId),i())})})},e.prototype.removeEventListener=function(e){var t=this;return new Promise(function(n,i){o.info("Removing filter event listener to event "+e+" to stream "+t.stream.streamId),t.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:t.stream.streamId,eventType:e},function(a,s){a?(o.error("Error removing filter event listener to event "+e+"for Stream "+t.stream.streamId,a),i(401===a.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(t.handlers.delete(e),o.info("Filter event listener to event "+e+" successfully removed on Stream "+t.stream.streamId),n())})})},e}();t.Filter=a},"7RJT":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("Mxlh"),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r.Subject);t.BehaviorSubject=a},"8KVD":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.ConnectionEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.connection=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.ConnectionEvent=o},"8b8G":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.ConnectionPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,"connectionPropertyChanged")||this;return a.connection=n,a.changedProperty=i,a.newValue=r,a.oldValue=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.ConnectionPropertyChangedEvent=o},"8fGR":function(e,t,n){"use strict";var i=n("ohuM");e.exports=function(e){var t,r={stun:(e||{}).stun||n("5bWi"),turn:(e||{}).turn||n("wJ6L")},o=(e||{}).turnCount||0;function a(e,t){for(var n,o=[],a=[].concat(r[e]);a.length&&o.length<t;)n=Math.random()*a.length|0,o=o.concat(a.splice(n,1));return o.map(function(t){return"string"==typeof t||t instanceof String?i(e+":"+t):t})}return t=[].concat(a("stun",(e||{}).stunCount||2)),o&&(t=t.concat(a("turn",o))),t}},"90cg":function(e,t,n){"use strict";t.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},"9AGB":function(e,t,n){"use strict";var i=n("yoF8");function r(e){return 0===e.length?i.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},t.pipeFromArray=r},"9m68":function(e,t,n){"use strict";t.__esModule=!0,t.OpenViduLogger=void 0;var i=n("MCn7"),r=n("SdlI"),o=function(){function e(){this.JSNLOG_URL="/openvidu/elk/openvidu-browser-logs",this.MAX_JSNLOG_BATCH_LOG_MESSAGES=100,this.MAX_MSECONDS_BATCH_MESSAGES=5e3,this.MAX_LENGTH_STRING_JSON=1e3,this.logger=window.console,this.LOG_FNS=[this.logger.log,this.logger.debug,this.logger.info,this.logger.warn,this.logger.error],this.isProdMode=!1,this.isJSNLogSetup=!1}return e.configureJSNLog=function(e,t){var n=this;try{if(this.instance&&e.webrtcStatsInterval>-1&&e.sendBrowserLogs===r.OpenViduLoggerConfiguration.debug&&this.instance.canConfigureJSNLog(e,this.instance)){this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var o=e.finalUserId,a=e.session.sessionId;this.instance.currentAppender=i.JL.createAjaxAppender("appender-"+o+"-"+a),this.instance.currentAppender.setOptions({beforeSend:function(e){var n=e.onreadystatechange;e.onreadystatechange=function(){401!=e.status&&403!=e.status&&404!=e.status||(Object.defineProperty(e,"readyState",{value:4}),Object.defineProperty(e,"status",{value:200})),n()},e.setRequestHeader("Authorization","Basic "+btoa(o+"%/%"+a+":"+t)),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.setRequestHeader("OV-Final-User-Id",o),e.setRequestHeader("OV-Session-Id",a),e.setRequestHeader("OV-Token",t)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),i.JL.setOptions({defaultAjaxUrl:e.httpUri+this.instance.JSNLOG_URL,serialize:function(e){var t,i=JSON.stringify(e,(t=new WeakSet,function(e,n){if("object"==typeof n&&null!=n){if(t.has(n)||n instanceof HTMLElement)return;t.add(n)}return n}));return i.length>n.instance.MAX_LENGTH_STRING_JSON?i.substring(0,n.instance.MAX_LENGTH_STRING_JSON)+"...":i}}),i.JL().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=a,this.instance.loggingFinalUserId=o,this.instance.info("JSNLog configured.")}}catch(s){console.error("Error configuring JSNLog: "),console.error(s),this.instance.isJSNLogSetup=!1,this.instance.loggingSessionId=void 0,this.instance.loggingFinalUserId=void 0,this.instance.currentAppender=void 0}},e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.isDebugLogEnabled=function(){return this.isJSNLogSetup},e.prototype.canConfigureJSNLog=function(e,t){return e.session.sessionId!=t.loggingSessionId},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[0].apply(this.logger,arguments),this.isDebugLogEnabled()&&i.JL().info(arguments)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[1].apply(this.logger,arguments)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[2].apply(this.logger,arguments),this.isDebugLogEnabled()&&i.JL().info(arguments)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[3].apply(this.logger,arguments),this.isDebugLogEnabled()&&i.JL().warn(arguments)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.LOG_FNS[4].apply(this.logger,arguments),this.isDebugLogEnabled()&&i.JL().error(arguments)},e.prototype.flush=function(){this.isDebugLogEnabled()&&null!=this.currentAppender&&this.currentAppender.sendBatch()},e.prototype.enableProdMode=function(){this.isProdMode=!0},e}();t.OpenViduLogger=o},AeG9:function(e,t,n){var i=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(p){i=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r});var r=n("+qE3").EventEmitter,o=n("P7XM"),a=n("0wxW"),s=n("gUCu"),u=5e3;function c(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function l(e,t){i?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function h(e,t,n,a){var h=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var d=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");a=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");a=n,n=t,t=void 0}if(n instanceof Function){if(null!=a)throw new SyntaxError("There can't be parameters after onRequest");a=n,n=void 0}if(n&&n.send instanceof Function&&a&&!(a instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},r.call(this),a&&this.on("request",a),i?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var f=t.max_retries||0;function v(e){h.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",v):n.removeListener&&n.removeListener("data",v)),e&&(e.addEventListener?e.addEventListener("message",v):e.addListener&&e.addListener("data",v)),n=c(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=t.request_timeout||u,g=t.ping_request_timeout||m,y=t.response_timeout||u,b=t.duplicates_timeout||u,_=0,k=new s,w=new s,S=new s,C={};function E(e,t){var n=setTimeout(function(){S.remove(e,t)},b);S.set(n,e,t)}function O(t,n,r,o,a){l.call(this,t,n),this.getTransport=function(){return a},this.setTransport=function(e){a=c(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var s=w.get(r,o);a||h.getTransport()||(i?this.duplicated=Boolean(s):Object.defineProperty(this,"duplicated",{value:Boolean(s)}));var u=d[t];this.pack=e.pack.bind(e,this,r),this.reply=function(t,n,i){if(t instanceof Function||t&&t.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");i=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");i=n,n=null}var a;return i=c(i),s&&clearTimeout(s.timeout),null!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||null!=n?(null!=h.peerID&&(t?t.from=h.peerID:n.from=h.peerID),a=e.pack(a=u?null==u.error&&t?{error:t}:{method:t?u.error:u.response,params:t||n}:{error:t,result:n},r)):a=s?s.message:e.pack({result:null},r),function(e,t,n){var i={message:e,timeout:setTimeout(function(){w.remove(t,n)},y)};w.set(i,t,n)}(a,r,o),(i=i||this.getTransport()||h.getTransport())?i.send(a):a}}function x(e){var t=C[e];if(t){delete C[e];var n=k.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),E(t.id,t.dest))}}o(O,l),this.cancel=function(e){if(e)return x(e);for(var e in C)x(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(4003,"Cancel request"),this.cancel(),S.forEach(clearTimeout),w.forEach(function(e){clearTimeout(e.timeout)})},this.encode=function(t,n,i,r,o){if(n instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=n,r=void 0,i=void 0,n=void 0}else if(i instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=i,r=void 0,i=void 0}else if(r instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=r,r=void 0}null!=h.peerID&&((n=n||{}).from=h.peerID),null!=i&&((n=n||{}).dest=i);var a={method:t,params:n};if(o){var s=function(e,t){h.cancel(a),o(e,t)},u=function(e){return b.timeout=setTimeout(p,("ping"===t?g:m)*Math.pow(2,y++)),C[a]={id:v,dest:i},k.set(b,v,i),(e=e||w||h.getTransport())?e.send(a):a},l=function(e){e=c(e),console.warn(y+" retry for request message:",a);var t=S.pop(v,i);return clearTimeout(t),u(e)},p=function(){if(y<f)return l(r);var e=new Error("Request has timed out");e.request=a,e.retry=l,s(e)},v=_++,y=0,b={message:a=e.pack(a,v),callback:s,responseMethods:d[t]||{}},w=c(r);return u(r)}return a=e.pack(a),(r=r||this.getTransport())?r.send(a):a},this.decode=function(t,n){if(!t)throw new TypeError("Message is not defined");try{t=e.unpack(t)}catch(p){return console.debug(p,t)}var i=t.id,r=t.ack,o=t.method,a=t.params||{},s=a.from,u=a.dest;if(null==h.peerID||s!=h.peerID){if(null==i&&null==r){var d=new l(o,a);if(h.emit("request",d))return;return d}if(o){if(null==u||u==h.peerID){if(g=k.get(r,s)){var f=g.responseMethods;return o==f.error?_(g,a):o==f.response?_(g,null,a):b()}if(y=S.get(r,s))return C(y)}return b()}var v=t.error,m=t.result;if(!(v&&v.dest&&v.dest!=h.peerID||m&&m.dest&&m.dest!=h.peerID)){var g,y;if(!(g=k.get(r,s)))return(y=S.get(r,s))?C(y):console.warn("No callback was defined for this message",t);_(g,v,m)}}function b(){if(n=c(n)||h.getTransport()){var e=w.get(i,s);if(e)return n.send(e.message)}var t=new O(o,a,null!=i?i:r,s,n);if(!h.emit("request",t))return t}function _(e,t,n){e.callback(t,n)}function C(e){console.warn("Response already processed",t),clearTimeout(e),E(r,s)}}}o(h,r),h.RpcNotification=l,e.exports=h;var d=n("SYuc"),f=n("ee8k");(h.clients=d).transports=f,h.packers=a},BDvu:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.NetworkQualityLevelChangedEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"networkQualityLevelChanged")||this;return o.newValue=n,o.oldValue=i,o.connection=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.NetworkQualityLevelChangedEvent=o},BwMD:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,!1,t,"streamPropertyChanged")||this;return s.stream=n,s.changedProperty=i,s.newValue=r,s.oldValue=o,s.reason=a,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.StreamPropertyChangedEvent=o},DPKQ:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.Stream=void 0;var o,a=n("74bm"),s=n("bk74"),u=n("5kmN"),c=n("+FKC"),l=n("6cvo"),h=n("e8ps"),d=n("HxXY"),f=n("BwMD"),p=n("Tt94"),v=n("9m68"),m=n("4jfU"),g=n("aMtt"),y=n("4O8T"),b=v.OpenViduLogger.getInstance(),_=function(){function e(e,t){var n=this;this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.harkSpeakingEnabled=!1,this.harkSpeakingEnabledOnce=!1,this.harkStoppedSpeakingEnabled=!1,this.harkStoppedSpeakingEnabledOnce=!1,this.harkVolumeChangeEnabled=!1,this.harkVolumeChangeEnabledOnce=!1,this.ee=new y,o=m.PlatformUtils.getInstance(),this.session=e,t.hasOwnProperty("id")?(this.inboundStreamOpts=t,this.streamId=this.inboundStreamOpts.id,this.creationTime=this.inboundStreamOpts.createdAt,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>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=t,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?"CUSTOM":this.isSendScreen()?"SCREEN":"CAMERA"),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){n.streamManager.updateMediaStream(n.mediaStream),b.debug("Video srcObject ["+n.mediaStream+"] updated in stream ["+n.streamId+"]")})}return e.prototype.reconnect=function(){return this.reconnectStream("API")},e.prototype.applyFilter=function(e,t){var n=this;return new Promise(function(i,r){n.session.sessionConnected()||r(n.session.notConnectedError()),b.info("Applying filter to stream "+n.streamId);var o=t=null!=t?t:{};"string"!=typeof o&&(o=JSON.stringify(o)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:e,options:o},function(o,s){if(o)b.error("Error applying filter for Stream "+n.streamId,o),r(401===o.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):o);else{b.info("Filter successfully applied on Stream "+n.streamId);var u=n.filter;n.filter=new a.Filter(e,t),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,u,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,u,"applyFilter")]),i(n.filter)}})})},e.prototype.removeFilter=function(){var e=this;return new Promise(function(t,n){e.session.sessionConnected()||n(e.session.notConnectedError()),b.info("Removing filter of stream "+e.streamId),e.session.openvidu.sendRequest("removeFilter",{streamId:e.streamId},function(i,r){if(i)b.error("Error removing filter for Stream "+e.streamId,i),n(401===i.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):i);else{b.info("Filter successfully removed from Stream "+e.streamId);var o=e.filter;delete e.filter,e.session.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(e.session,e,"filter",e.filter,o,"applyFilter")]),e.streamManager.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(e.streamManager,e,"filter",e.filter,o,"applyFilter")]),t()}})})},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(e){this.mediaStream=e},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},e.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},e.prototype.subscribe=function(){var e=this;return new Promise(function(t,n){e.initWebRtcPeerReceive(!1).then(function(){t()}).catch(function(e){n(e)})})},e.prototype.publish=function(){var e=this;return new Promise(function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend(!1).then(function(){t()}).catch(function(e){n(e)}):e.ee.once("stream-ready-to-publish",function(){e.publish().then(function(){t()}).catch(function(e){n(e)})})})},e.prototype.disposeWebRtcPeer=function(){var e=this.webRtcPeer.id;this.webRtcPeer&&(this.webRtcPeer.dispose(),this.stopWebRtcStats()),b.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+e+"] from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(e){e.stop()}),this.mediaStream.getVideoTracks().forEach(function(e){e.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(e){e.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(e){e.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),b.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},e.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},e.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},e.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.isSendScreen=function(){var e="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return o.isElectron()&&(e="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&e},e.prototype.enableHarkSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),this.harkSpeakingEnabled||(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStartSpeaking",e.connection,e.streamId)]),e.harkSpeakingEnabledOnce=!1}))},e.prototype.enableOnceHarkSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),this.harkSpeakingEnabledOnce||(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){e.harkSpeakingEnabledOnce&&(e.session.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStartSpeaking",e.connection,e.streamId)])),e.disableHarkSpeakingEvent(!0)}))},e.prototype.disableHarkSpeakingEvent=function(e){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,e){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)}},e.prototype.enableHarkStoppedSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),this.harkStoppedSpeakingEnabled||(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStopSpeaking",e.connection,e.streamId)]),e.harkStoppedSpeakingEnabledOnce=!1}))},e.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),this.harkStoppedSpeakingEnabledOnce||(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){e.harkStoppedSpeakingEnabledOnce&&(e.session.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStopSpeaking",e.connection,e.streamId)])),e.disableHarkStoppedSpeakingEvent(!0)}))},e.prototype.disableHarkStoppedSpeakingEvent=function(e){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,e){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)}},e.prototype.enableHarkVolumeChangeEvent=function(e){var t=this;this.setHarkListenerIfNotExists()?this.harkVolumeChangeEnabled&&!e||(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])})):this.harkVolumeChangeEnabled=!0},e.prototype.enableOnceHarkVolumeChangeEvent=function(e){var t=this;this.setHarkListenerIfNotExists()?this.harkVolumeChangeEnabledOnce&&!e||(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.disableHarkVolumeChangeEvent(!0),t.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])})):this.harkVolumeChangeEnabledOnce=!0},e.prototype.disableHarkVolumeChangeEvent=function(e){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,e){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)}},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise(function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},e.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},e.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 '+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") will force a reconnection"),!0;var e=this.getRTCPeerConnection().iceConnectionState;return"connected"!==e&&"completed"!==e},e.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var e=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:100,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=g(this.mediaStream,e)}return!0}return!1},e.prototype.initWebRtcPeerSend=function(e){var t=this;return new Promise(function(n,i){if(e){if(null!=t.reconnectionEventEmitter)return console.warn("Trying to reconnect stream "+t.streamId+" (Publisher) but an ongoing reconnection process is active. Waiting for response..."),t.reconnectionEventEmitter.once("success",function(){n()}),void t.reconnectionEventEmitter.once("error",function(e){i(e)});t.reconnectionEventEmitter=new y}else t.initHarkEvents();var r=function(n){var r;e&&(null===(r=t.reconnectionEventEmitter)||void 0===r||r.emitEvent("error",[n]),delete t.reconnectionEventEmitter),i(n)},o={audio:t.isSendAudio(),video:t.isSendVideo()},a={mediaStream:t.mediaStream,mediaConstraints:o,onIceCandidate:t.connection.sendIceCandidate.bind(t.connection),onIceConnectionStateException:t.onIceConnectionStateExceptionHandler.bind(t),iceServers:t.getIceServersConf(),simulcast:!1};e&&t.disposeWebRtcPeer(),t.webRtcPeer=t.displayMyRemote()?new u.WebRtcPeerSendrecv(a):new u.WebRtcPeerSendonly(a),t.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+t.connection.connectionId),t.webRtcPeer.createOffer().then(function(i){t.webRtcPeer.processLocalOffer(i).then(function(){!function(i){b.debug("Sending SDP offer to publish as "+t.streamId,i);var o,a=e?"reconnectStream":"publishVideo";if(e)o={stream:t.streamId,sdpString:i};else{var s="";t.isSendVideo()&&(s="undefined"!=typeof MediaStreamTrack&&t.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":t.isSendScreen()?"SCREEN":"CAMERA"),o={doLoopback:t.displayMyRemote()||!1,hasAudio:t.isSendAudio(),hasVideo:t.isSendVideo(),audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:s,frameRate:t.frameRate?t.frameRate:-1,videoDimensions:JSON.stringify(t.videoDimensions),filter:t.outboundStreamOpts.publisherProperties.filter,sdpOffer:i}}t.session.openvidu.sendRequest(a,o,function(i,o){i?r(401===i.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(i)):t.webRtcPeer.processRemoteAnswer(o.sdpAnswer).then(function(){var i;t.streamId=o.id,t.creationTime=o.createdAt,t.isLocalStreamPublished=!0,t.publishedOnce=!0,t.displayMyRemote()&&(t.localMediaStreamWhenSubscribedToRemote=t.mediaStream,t.remotePeerSuccessfullyEstablished(e)),t.ee.emitEvent(e?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),t.initWebRtcStats(),b.info("'Publisher' ("+t.streamId+") successfully "+(e?"reconnected":"published")+" to session"),e&&(null===(i=t.reconnectionEventEmitter)||void 0===i||i.emitEvent("success"),delete t.reconnectionEventEmitter),n()}).catch(function(e){r(e)})})}(i.sdp)}).catch(function(e){r(new Error("(publish) SDP process local offer error: "+JSON.stringify(e)))})}).catch(function(e){r(new Error("(publish) SDP create offer error: "+JSON.stringify(e)))})})},e.prototype.initWebRtcPeerReceive=function(e){var t=this;return new Promise(function(n,i){if(e){if(null!=t.reconnectionEventEmitter)return console.warn("Trying to reconnect stream "+t.streamId+" (Subscriber) but an ongoing reconnection process is active. Waiting for response..."),t.reconnectionEventEmitter.once("success",function(){n()}),void t.reconnectionEventEmitter.once("error",function(e){i(e)});t.reconnectionEventEmitter=new y}var r=function(){var i;b.info("'Subscriber' ("+t.streamId+") successfully "+(e?"reconnected":"subscribed")),t.remotePeerSuccessfullyEstablished(e),t.initWebRtcStats(),e&&(null===(i=t.reconnectionEventEmitter)||void 0===i||i.emitEvent("success"),delete t.reconnectionEventEmitter),n()},o=function(n){var r;e&&(null===(r=t.reconnectionEventEmitter)||void 0===r||r.emitEvent("error",[n]),delete t.reconnectionEventEmitter),i(n)};"mediasoup"===t.session.openvidu.mediaServer?t.initWebRtcPeerReceiveFromServer(e).then(function(){return r()}).catch(function(e){return o(e)}):t.initWebRtcPeerReceiveFromClient(e).then(function(){return r()}).catch(function(e){return o(e)})})},e.prototype.initWebRtcPeerReceiveFromClient=function(e){var t=this;return new Promise(function(n,i){t.completeWebRtcPeerReceive(e).then(function(e){t.webRtcPeer.processRemoteAnswer(e.sdpAnswer).then(function(){return n()}).catch(function(e){return i(e)})}).catch(function(e){return i(e)})})},e.prototype.initWebRtcPeerReceiveFromServer=function(e){var t=this;return new Promise(function(n,i){t.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:t.streamId,reconnect:e},function(r,o){r?i(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(r))):t.completeWebRtcPeerReceive(e,o.sdpOffer).then(function(){return n()}).catch(function(e){return i(e)})})})},e.prototype.completeWebRtcPeerReceive=function(e,t){var n=this;return new Promise(function(i,r){var o={audio:n.inboundStreamOpts.hasAudio,video:n.inboundStreamOpts.hasVideo};b.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",o);var a={mediaConstraints:o,onIceCandidate:n.connection.sendIceCandidate.bind(n.connection),onIceConnectionStateException:n.onIceConnectionStateExceptionHandler.bind(n),iceServers:n.getIceServersConf(),simulcast:!1},s=function(o){b.debug("Sending local SDP "+(t?"answer":"offer")+" to subscribe to "+n.streamId,o);var a=e?"reconnectStream":"receiveVideoFrom",s={};s[e?"stream":"sender"]=n.streamId,t?s[e?"sdpString":"sdpAnswer"]=o:s.sdpOffer=o,n.session.openvidu.sendRequest(a,s,function(e,t){e?r(new Error("Error on "+a+" : "+JSON.stringify(e))):i(t)})};e&&n.disposeWebRtcPeer(),n.webRtcPeer=new u.WebRtcPeerRecvonly(a),n.webRtcPeer.addIceConnectionStateChangeListener(n.streamId),t?n.webRtcPeer.processRemoteOffer(t).then(function(){n.webRtcPeer.createAnswer().then(function(e){n.webRtcPeer.processLocalAnswer(e).then(function(){s(e.sdp)}).catch(function(e){r(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(e)))})}).catch(function(e){r(new Error("(subscribe) SDP create answer error: "+JSON.stringify(e)))})}).catch(function(e){r(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(e)))}):n.webRtcPeer.createOffer().then(function(e){n.webRtcPeer.processLocalOffer(e).then(function(){s(e.sdp)}).catch(function(e){r(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(e)))})}).catch(function(e){r(new Error("(subscribe) SDP create offer error: "+JSON.stringify(e)))})})},e.prototype.remotePeerSuccessfullyEstablished=function(e){var t;e&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var n=0,i=this.webRtcPeer.pc.getReceivers();n<i.length;n++)(t=i[n]).track&&this.mediaStream.addTrack(t.track);if(b.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof s.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var r=e?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=r}this.mediaStream.getVideoTracks()[0]&&(r=e?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=r)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},e.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!0,this.streamManager)&&this.enableOnceHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.streamManager)&&this.enableHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!0,this.streamManager)&&this.enableOnceHarkStoppedSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.streamManager)&&this.enableHarkStoppedSpeakingEvent(),this.harkVolumeChangeEnabledOnce&&this.enableOnceHarkVolumeChangeEvent(!0),this.harkVolumeChangeEnabled&&this.enableHarkVolumeChangeEvent(!0))},e.prototype.onIceConnectionStateExceptionHandler=function(e,t,n){switch(e){case l.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new l.ExceptionEvent(this.session,e,this,t,n)])},e.prototype.onIceConnectionFailed=function(){b.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+")"),this.reconnectStreamAndLogResultingIceConnectionState(l.ExceptionEventName.ICE_CONNECTION_FAILED)},e.prototype.onIceConnectionDisconnected=function(){var e=this;b.log("[ICE_CONNECTION_DISCONNECTED] Handling ICE_CONNECTION_DISCONNECTED event. Waiting for ICE to be restored and reconnect stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") if not possible");var t=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(t).then(function(n){switch(n){case"failed":b.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream "+e.streamId+" ("+(e.isLocal()?"Publisher":"Subscriber")+") is now failed after ICE_CONNECTION_DISCONNECTED");break;case"connected":case"completed":b.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream "+e.streamId+" ("+(e.isLocal()?"Publisher":"Subscriber")+") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: "+n);break;case"closed":case"checking":case"new":case"disconnected":b.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream "+e.streamId+" ("+(e.isLocal()?"Publisher":"Subscriber")+") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after "+t+" ms: "+n),e.reconnectStreamAndLogResultingIceConnectionState(l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},e.prototype.reconnectStreamAndLogResultingIceConnectionState=function(e){return i(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(e)];case 1:switch(t=i.sent()){case"connected":case"completed":b.log("["+e+"] Stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") successfully reconnected after "+e+". Current ICE connection state: "+t);break;default:b.error("["+e+"] Stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") failed to reconnect after "+e+". Current ICE connection state: "+t)}return[3,3];case 2:return n=i.sent(),b.error("["+e+"] Error reconnecting stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") after "+e+": "+n),[3,3];case 3:return[2]}})})},e.prototype.reconnectStreamAndReturnIceConnectionState=function(e){return i(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:b.log("["+e+"] Reconnecting stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") after event "+e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.reconnectStream(e)];case 2:return n.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return t=n.sent(),b.warn("["+e+"] Error reconnecting stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+"). Reason: "+t),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},e.prototype.reconnectStream=function(e){return i(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return[4,this.isWebsocketConnected(e,3e3)];case 1:if(n.sent())return b.log("["+e+"] Trying to reconnect stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") and the websocket is opened"),this.isLocal()?[2,this.initWebRtcPeerSend(!0)]:[2,this.initWebRtcPeerReceive(!0)];throw t="["+e+"] Trying to reconnect stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") but the websocket wasn't opened",b.error(t),Error(t)}})})},e.prototype.isWebsocketConnected=function(e,t){var n=this;return new Promise(function(i,r){var o=n.session.openvidu.getWsReadyState();if(1===o){var a=setTimeout(function(){console.warn("["+e+"] Websocket timeout of "+t+"ms"),i(!1)},t);n.session.openvidu.sendRequest("echo",{},function(t,n){clearTimeout(a),t?(console.warn("["+e+"] Websocket 'echo' returned error: "+t),i(!1)):i(!0)})}else console.warn("["+e+"] Websocket readyState is "+o),i(!1)})},e.prototype.awaitWebRtcPeerConnectionState=function(e){return i(this,void 0,void 0,function(){var t,n,i,o;return r(this,function(r){switch(r.label){case 0:t=this.getRTCPeerConnection().iceConnectionState,n=150,i=Math.ceil(e/n),o=0,r.label=1;case 1:return o<i?"connected"===(t=this.getRTCPeerConnection().iceConnectionState)||"completed"===t?[3,4]:[4,new Promise(function(e){return setTimeout(e,n)})]:[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:return[2,t]}})})},e.prototype.initWebRtcStats=function(){this.webRtcStats=new c.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},e.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},e.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},e.prototype.gatherStatsForPeer=function(){var e=this;return new Promise(function(t,n){e.isLocal()?e.getRTCPeerConnection().getSenders().forEach(function(t){return t.getStats().then(function(t){t.forEach(function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"outbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesEncoded=t.framesEncoded),n.packetsSent=t.packetsSent,n.bytesSent=t.bytesSent),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableOutgoingBitrate=t.availableOutgoingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),b.log(n)}})})}):e.getRTCPeerConnection().getReceivers().forEach(function(t){return t.getStats().then(function(t){t.forEach(function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"inbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesDecoded=t.framesDecoded),n.packetsReceived=t.packetsReceived,n.packetsLost=t.packetsLost,n.jitter=t.jitter,n.bytesReceived=t.bytesReceived),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableIncomingBitrate=t.availableIncomingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),b.log(n)}})})})})},e.prototype.isReportWanted=function(e){return"inbound-rtp"===e.type&&!this.isLocal()||"outbound-rtp"===e.type&&this.isLocal()||"candidate-pair"===e.type&&e.nominated&&e.bytesSent>0},e}();t.Stream=_},Dztv:function(e,t,n){"use strict";t.__esModule=!0,t.EventDispatcher=void 0;var i=n("4O8T"),r=n("9m68").OpenViduLogger.getInstance(),o=function(){function e(){this.userHandlerArrowHandler=new WeakMap,this.ee=new i}return e.prototype.off=function(e,t){if(t){var n=this.userHandlerArrowHandler.get(t);n&&this.ee.off(e,n),this.userHandlerArrowHandler.delete(t)}else this.ee.removeAllListeners(e);return this},e.prototype.onAux=function(e,t,n){var i=function(e){e?r.info(t,e):r.info(t),n(e)};return this.userHandlerArrowHandler.set(n,i),this.ee.on(e,i),this},e.prototype.onceAux=function(e,t,n){var i=this,o=function(e){e?r.info(t,e):r.info(t),n(e),i.userHandlerArrowHandler.delete(n)};return this.userHandlerArrowHandler.set(n,o),this.ee.once(e,o),this},e}();t.EventDispatcher=o},EDod:function(e,t,n){var i=n("AeG9"),r=n("cUzU"),o=n("9m68").OpenViduLogger;Date.now=Date.now||function(){return+new Date};var a="RECONNECTING",s="CONNECTED",u="DISCONNECTED",c=o.getInstance();e.exports=function(e){var t,n=this,o=e.ws,l=-1,h=0,d=!0,f=!1,p=u,v=o.onreconnecting,m=o.onreconnected,g=o.onconnected,y=o.onerror;e.rpc.pull=function(e,t){t.reply(null,"push")},o.onreconnecting=function(){c.debug("--------- ONRECONNECTING -----------"),p!==a?(C(),p=a,v&&v()):c.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},o.onreconnected=function(){c.debug("--------- ONRECONNECTED -----------"),p!==s?(p=s,k(),m&&m()):c.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},o.onconnected=function(){c.debug("--------- ONCONNECTED -----------"),p!==s?(p=s,d=!0,S(),g&&g()):c.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},o.onerror=function(e){c.debug("--------- ONERROR -----------"),p=u,C(),y&&y(e)};var b=new r(o);c.debug("Connecting websocket to URI: "+o.uri);var _=new i(i.packers.JsonRPC,{request_timeout:e.rpc.requestTimeout,ping_request_timeout:e.rpc.heartbeatRequestTimeout},b,function(t){c.debug("Received request: "+JSON.stringify(t));try{var n=e.rpc[t.method];void 0===n?c.error("Method "+t.method+" not registered in client"):n(t.params,t)}catch(i){c.error("Exception processing request: "+JSON.stringify(t)),c.error(i)}});function k(){c.debug("notReconnectIfNumLessThan = "+h+" (old="+l+")"),l=h}function w(){if(d){var t=null;0!=h&&h!=l||(t={interval:e.heartbeat||5e3}),h++,n.send("ping",t,(i=h,function(e,t){e&&(c.debug("Error in ping request #"+i+" ("+e.message+")"),i>l&&(d=!1,k(),c.debug("Server did not respond to ping message #"+i+". Reconnecting... "),b.reconnectWs()))}))}else c.debug("Trying to send ping, but ping is not enabled");var i}function S(){f||(c.debug("Starting ping (if configured)"),f=!0,null!=e.heartbeat&&(t=setInterval(w,e.heartbeat),w()))}function C(){clearInterval(t),f=!1,d=!1,h=-1,_.cancel()}this.send=function(e,t,n){var i=Date.now();_.encode(e,t,function(r,o){if(r){try{c.error("ERROR:"+r.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+r.request),r.data&&c.error("ERROR DATA:"+JSON.stringify(r.data))}catch(a){}r.requestTime=i}n&&(null!=o&&"pong"!==o.value&&c.debug("Response: "+JSON.stringify(o)),n(r,o))})},this.close=function(e,n){c.debug("Closing with code: "+e+" because: "+n),null!=t&&(c.debug("Clearing ping interval"),clearInterval(t)),f=!1,d=!1,b.close(e,n)},this.forceClose=function(e){b.forceClose(e)},this.reconnect=function(){b.reconnectWs()},this.resetPing=function(){d=!0,h=0,S()},this.getReadyState=function(){return b.getReadyState()}}},EcWD:function(e,t){var n,i,r="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var o=void 0!==window.InstallTrigger;window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(i)return i("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(r="desktop"),e.sourceId&&i&&i(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)})}function a(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("get-sourceId","*")}function s(e,t){if(n="",o)return e(null,{mozMediaSource:"window",mediaSource:"window"});var s={mandatory:{chromeMediaSource:r,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=r||n?("desktop"==r&&(s.mandatory.chromeMediaSourceId=n),e(null,s)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("audio-plus-tab","*")}(function(t,n){s.mandatory.chromeMediaSourceId=t,n&&(s.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,s)}):a(function(t){s.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,s)})}t.getScreenConstraints=s,t.getScreenConstraintsWithAudio=function(e){s(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==r)return e(!0);window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"!=r)},2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){r="screen",window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"==r?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=a},FWf1:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("pshJ"),o=n("GiSu"),a=n("zB/H"),s=n("p//D"),u=n("n3uD"),c=n("MkmW"),l=function(e){function t(n,i,r){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.empty;break;case 1:if(!n){a.destination=o.empty;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new h(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new h(a,n,i,r)}return a}return i(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.Subscription);t.Subscriber=l;var h=function(e){function t(t,n,i,a){var s,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return r.isFunction(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.empty&&(c=Object.create(n),r.isFunction(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=i,u._complete=a,u}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):c.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.config.useDeprecatedSynchronousErrorHandling)throw n;c.hostReportError(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return u.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(c.hostReportError(i),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l);t.SafeSubscriber=h},FiyT:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("zB/H").Subscription);t.SubjectSubscription=r},FlKs:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var i=n("JUw6"),r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],i=n[1];if(this.test(e,n[0]))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var o=(0,i.inherits)(r,function(e){this.j=[],this.T=e||null},{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,i.inherits)(r,function(e){this.j=[],this.T=e||null},{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=o,t.TokenState=a,t.stateify=function(e,t,n,i){for(var r=0,a=e.length,s=t,u=[],c=void 0;r<a&&(c=s.next(e[r]));)s=c,r++;if(r>=a)return[];for(;r<a-1;)c=new o(i),u.push(c),s.on(e[r],c),s=c,r++;return c=new o(n),u.push(c),s.on(e[a-1],c),u}},GMZp:function(e,t,n){"use strict";t.isObject=function(e){return null!==e&&"object"==typeof e}},GiSu:function(e,t,n){"use strict";var i=n("n3uD"),r=n("MkmW");t.empty={closed:!0,next:function(e){},error:function(e){if(i.config.useDeprecatedSynchronousErrorHandling)throw e;r.hostReportError(e)},complete:function(){}}},HxXY:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamManagerEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.value=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.StreamManagerEvent=o},JTMn:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.Session=void 0;var s,u=n("ryRr"),c=n("74bm"),l=n("bk74"),h=n("Dztv"),d=n("8KVD"),f=n("+ig+"),p=n("rUL0"),v=n("ksJj"),m=n("suHS"),g=n("Te8r"),y=n("BwMD"),b=n("8b8G"),_=n("BDvu"),k=n("Tt94"),w=n("/dLB"),S=n("9m68"),C=n("4jfU"),E=S.OpenViduLogger.getInstance(),O=function(e){function t(t){var n=e.call(this)||this;return n.streamManagers=[],n.remoteStreamsCreated=new Map,n.remoteConnections=new Map,s=C.PlatformUtils.getInstance(),n.openvidu=t,n}return r(t,e),t.prototype.connect=function(e,t){var n=this;return new Promise(function(i,r){n.processToken(e),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:e,metadata:t?n.stringClientMetadata(t):""},n.connectAux(e).then(function(){i()}).catch(function(e){r(e)})):r(new k.OpenViduError(k.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+s.getName()+" (version "+s.getVersion()+") for "+s.getFamily()+" is not supported in OpenVidu"))})},t.prototype.disconnect=function(){this.leave(!1,"disconnect")},t.prototype.subscribe=function(e,t,n,i){var r={};r=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?w.VideoInsertMode[n.insertMode]:r.insertMode:w.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:w.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var o=void 0;if(n&&"function"==typeof n?o=n:i&&(o=i),!this.sessionConnected())throw void 0!==o&&o(this.notConnectedError()),this.notConnectedError();E.info("Subscribing to "+e.connection.connectionId),e.subscribe().then(function(){E.info("Subscribed correctly to "+e.connection.connectionId),void 0!==o&&o(void 0)}).catch(function(e){void 0!==o&&o(e)});var a=new l.Subscriber(e,t,r);return a.targetElement&&e.streamManager.createVideoElement(a.targetElement,r.insertMode),a},t.prototype.subscribeAsync=function(e,t,n){var i=this;return new Promise(function(r,o){var a;i.sessionConnected()||o(i.notConnectedError());var s=function(e){e?o(e):r(a)};a=n?i.subscribe(e,t,n,s):i.subscribe(e,t,s)})},t.prototype.unsubscribe=function(e){var t=this;return new Promise(function(n,i){if(t.sessionConnected()){var r=e.stream.connection.connectionId;E.info("Unsubscribing from "+r),t.openvidu.sendRequest("unsubscribeFromVideo",{sender:e.stream.connection.connectionId},function(t,o){t?(E.error("Error unsubscribing from "+r),i(t)):(E.info("Unsubscribed correctly from "+r),e.stream.streamManager.removeAllVideos(),e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),n())})}else i(t.notConnectedError())})},t.prototype.publish=function(e){var t=this;return new Promise(function(n,i){t.sessionConnected()||i(t.notConnectedError()),e.session=t,e.stream.session=t,e.stream.publishedOnce?e.initialize().then(function(){t.connection.addStream(e.stream),e.reestablishStreamPlayingEvent(),e.stream.publish().then(function(){t.sendVideoData(e,8,!0,5),n()}).catch(function(e){i(e)})}).catch(function(e){i(e)}):(t.connection.addStream(e.stream),e.stream.publish().then(function(){t.sendVideoData(e,8,!0,5),n()}).catch(function(e){i(e)}))})},t.prototype.unpublish=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())throw t.notConnectedError();var r=e.stream;r.connection?r.connection!==t.connection?i(new Error("The associated Connection object of this Publisher is not your local Connection.Only moderators can force unpublish on remote Streams via 'forceUnpublish' method")):(E.info("Unpublishing local media ("+r.connection.connectionId+")"),t.openvidu.sendRequest("unpublishVideo",function(t,o){if(t)i(t);else{E.info("Media unpublished correctly"),r.disposeWebRtcPeer(),r.connection.stream==r&&delete r.connection.stream;var a=new g.StreamEvent(!0,e,"streamDestroyed",e.stream,"unpublish");e.emitEvent("streamDestroyed",[a]),a.callDefaultBehavior(),n()}})):i(new Error("The associated Connection object of this Publisher is null"))})},t.prototype.forceDisconnect=function(e){var t=this;return new Promise(function(n,i){t.sessionConnected()||i(t.notConnectedError()),E.info("Forcing disconnect for connection "+e.connectionId),t.openvidu.sendRequest("forceDisconnect",{connectionId:e.connectionId},function(t,r){t?(E.error("Error forcing disconnect for Connection "+e.connectionId,t),i(401===t.code?new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):t)):(E.info("Forcing disconnect correctly for Connection "+e.connectionId),n())})})},t.prototype.forceUnpublish=function(e){var t=this;return new Promise(function(n,i){t.sessionConnected()||i(t.notConnectedError()),E.info("Forcing unpublish for stream "+e.streamId),t.openvidu.sendRequest("forceUnpublish",{streamId:e.streamId},function(t,r){t?(E.error("Error forcing unpublish for Stream "+e.streamId,t),i(401===t.code?new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):t)):(E.info("Forcing unpublish correctly for Stream "+e.streamId),n())})})},t.prototype.signal=function(e){var t=this;return new Promise(function(n,i){t.sessionConnected()||i(t.notConnectedError());var r={};if(e.to&&e.to.length>0){var o=[];e.to.forEach(function(e){e.connectionId&&o.push(e.connectionId)}),r.to=o}else r.to=[];r.data=e.data?e.data:"";var a=e.type?e.type:"signal";a&&"signal:"!==a.substring(0,7)&&(a="signal:"+a),r.type=a,t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(r)},function(e,t){e?i(e):n()})})},t.prototype.on=function(t,n){var i,r,o,a;return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by 'Session'",n),"publisherStartSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableHarkSpeakingEvent()}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableHarkStoppedSpeakingEvent()}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},t.prototype.once=function(t,n){var i,r,o,a;return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by 'Session'",n),"publisherStartSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableOnceHarkSpeakingEvent()}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},t.prototype.off=function(t,n){var i,r,o,a,s=this;return e.prototype.off.call(this,t,n),"publisherStartSpeaking"===t&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.streamManager)&&(s.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,e.stream.streamManager)||e.stream.disableHarkSpeakingEvent(!1))}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===t&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.streamManager)&&(s.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,e.stream.streamManager)||e.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},t.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then(function(t){E.warn("Connection "+e.id+" already exists in connections list")}).catch(function(n){var i=new u.Connection(t,e);t.remoteConnections.set(e.id,i),t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",i,"")])})},t.prototype.onParticipantLeft=function(e){var t=this;this.remoteConnections.size>0&&this.getRemoteConnection(e.connectionId,"onParticipantLeft").then(function(n){if(n.stream){var i=n.stream,r=new g.StreamEvent(!0,t,"streamDestroyed",i,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior(),t.remoteStreamsCreated.delete(i.streamId)}t.remoteConnections.delete(n.connectionId),t.ee.emitEvent("connectionDestroyed",[new d.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])}).catch(function(e){E.error(e)})},t.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections.set(e.connectionId,e),n.remoteStreamsCreated.get(e.stream.streamId)||n.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated.set(e.stream.streamId,!0)};this.getRemoteConnection(e.id,"onParticipantPublished").then(function(n){t=n,e.metadata=n.data,t.remoteOptions=e,t.initRemoteStreams(e.streams),i(t)}).catch(function(r){t=new u.Connection(n,e),i(t)})},t.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"onParticipantUnpublished").then(function(n){var i=new g.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior();var r=n.stream.streamId;t.remoteStreamsCreated.delete(r),n.removeStream(r)}).catch(function(e){E.error(e)})},t.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},t.prototype.onNewMessage=function(e){var t=this;E.info("New signal: "+JSON.stringify(e));var n=e.type?e.type.replace(/^(signal:)/,""):void 0;e.from?this.getConnection(e.from,"Connection '"+e.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(i){t.ee.emitEvent("signal",[new m.SignalEvent(t,n,e.data,i)]),"signal"!==e.type&&t.ee.emitEvent(e.type,[new m.SignalEvent(t,n,e.data,i)])}).catch(function(e){E.error(e)}):(this.ee.emitEvent("signal",[new m.SignalEvent(this,n,e.data,void 0)]),"signal"!==e.type&&this.ee.emitEvent(e.type,[new m.SignalEvent(this,n,e.data,void 0)]))},t.prototype.onStreamPropertyChanged=function(e){var t=this,n=function(n){if(n.stream&&n.stream.streamId===e.streamId){var i=n.stream,r=void 0;switch(e.property){case"audioActive":r=i.audioActive,e.newValue="true"===e.newValue,i.audioActive=e.newValue;break;case"videoActive":r=i.videoActive,e.newValue="true"===e.newValue,i.videoActive=e.newValue;break;case"videoDimensions":r=i.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),i.videoDimensions=e.newValue;break;case"filter":r=i.filter,e.newValue=Object.keys(e.newValue).length>0?e.newValue:void 0,void 0!==e.newValue?(i.filter=new c.Filter(e.newValue.type,e.newValue.options),i.filter.stream=i,e.newValue.lastExecMethod&&(i.filter.lastExecMethod=e.newValue.lastExecMethod)):delete i.filter,e.newValue=i.filter}t.ee.emitEvent("streamPropertyChanged",[new y.StreamPropertyChangedEvent(t,i,e.property,e.newValue,r,e.reason)]),i.streamManager&&i.streamManager.emitEvent("streamPropertyChanged",[new y.StreamPropertyChangedEvent(i.streamManager,i,e.property,e.newValue,r,e.reason)])}else E.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")};e.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(e.connectionId,"onStreamPropertyChanged").then(function(e){n(e)}).catch(function(e){E.error(e)})},t.prototype.onConnectionPropertyChanged=function(e){var t;switch(e.property){case"role":t=this.connection.role.slice(),this.connection.role=e.newValue,this.connection.localOptions.role=e.newValue;break;case"record":t=this.connection.record,e.newValue="true"===e.newValue,this.connection.record=e.newValue,this.connection.localOptions.record=e.newValue}this.ee.emitEvent("connectionPropertyChanged",[new b.ConnectionPropertyChangedEvent(this,this.connection,e.property,e.newValue,t)])},t.prototype.onNetworkQualityLevelChangedChanged=function(e){var t=this;e.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new _.NetworkQualityLevelChangedEvent(this,e.newValue,e.oldValue,this.connection)]):this.getConnection(e.connectionId,"Connection not found for connectionId "+e.connectionId).then(function(n){t.ee.emitEvent("networkQualityLevelChanged",[new _.NetworkQualityLevelChangedEvent(t,e.newValue,e.oldValue,n)])}).catch(function(e){E.error(e)})},t.prototype.recvIceCandidate=function(e){var t={candidate:e.candidate,component:e.component,foundation:e.foundation,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,tcpType:e.tcpType,usernameFragment:e.usernameFragment,type:e.type,toJSON:function(){return{candidate:e.candidate}}};this.getConnection(e.senderConnectionId,"Connection not found for connectionId "+e.senderConnectionId+" owning endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then(function(n){var i=n.stream;i.getWebRtcPeer().addIceCandidate(t).catch(function(t){E.error("Error adding candidate for "+i.streamId+" stream of endpoint "+e.endpointName+": "+t)})}).catch(function(e){E.error(e)})},t.prototype.onSessionClosed=function(e){E.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):E.warn("Session undefined on session closed",e)},t.prototype.onLostConnection=function(e){E.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,e)},t.prototype.onRecoveredConnection=function(){E.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},t.prototype.onMediaError=function(e){E.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):E.warn("Received undefined media error. Params:",e)},t.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new p.RecordingEvent(this,"recordingStarted",e.id,e.name)])},t.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new p.RecordingEvent(this,"recordingStopped",e.id,e.name,e.reason)])},t.prototype.onFilterEventDispatched=function(e){var t=this,n=e.connectionId;this.getConnection(n,"No connection found for connectionId "+n).then(function(n){var i;E.info("Filter event dispatched");var r=n.stream;null===(i=r.filter.handlers.get(e.eventType))||void 0===i||i.call(t,new f.FilterEvent(r.filter,e.eventType,e.data))})},t.prototype.reconnectBrokenStreams=function(){E.info("Re-establishing media connections...");var e=!1;this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(E.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),e=!0),this.remoteConnections.forEach(function(t){t.stream&&t.stream.streamIceConnectionStateBroken()&&(E.warn("Re-establishing Subscriber "+t.stream.streamId),t.stream.initWebRtcPeerReceive(!0),e=!0)}),e||E.info("There were no media streams in need of a reconnection")},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.leave=function(e,t){var n=this;if(E.info("Leaving Session (forced="+(e=!!e)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(e,t){e&&E.error(e),n.openvidu.closeWs()}),this.stopPublisherStream(t),!this.connection.disposed){var i=new v.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[i]),i.callDefaultBehavior()}}else E.warn("You were not connected to the session "+this.sessionId);E.flush()},t.prototype.initializeParams=function(e){return{token:e||"",session:this.sessionId,platform:s.getDescription()?s.getDescription():"unknown",metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},t.prototype.sendVideoData=function(e,t,n,i){var r,u,c=this;if(void 0===t&&(t=1),void 0===n&&(n=!1),void 0===i&&(i=1),s.isChromeBrowser()||s.isChromeMobileBrowser()||s.isOperaBrowser()||s.isOperaMobileBrowser()||s.isEdgeBrowser()||s.isEdgeMobileBrowser()||s.isElectron()||s.isSafariBrowser()&&!s.isIonicIos()||s.isAndroidBrowser()||s.isSamsungBrowser()||s.isIonicAndroid()||s.isIOSWithSafari()){var l=function(){return o(c,void 0,void 0,function(){var t,n,i;return a(this,function(r){switch(r.label){case 0:return"connected"!==(t=e.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,t.getStats()];case 1:n=r.sent(),i=[],n.forEach(function(e){"frameWidth"in e&&"frameHeight"in e&&0===i.length&&i.push(e)}),i.length>0&&this.openvidu.sendRequest("videoData",{height:i[0].frameHeight,width:i[0].frameWidth,videoActive:null!=e.stream.videoActive&&e.stream.videoActive,audioActive:null!=e.stream.audioActive&&e.stream.audioActive},function(e,t){e&&E.error("Error sending 'videoData' event",e)}),r.label=2;case 2:return[2]}})})};if(n){var h=1;this.videoDataInterval=setInterval(function(){h<i?(h++,l()):clearInterval(c.videoDataInterval)},1e3*t)}else this.videoDataTimeout=setTimeout(l,1e3*t)}else s.isFirefoxBrowser()||s.isFirefoxMobileBrowser()||s.isIonicIos()||s.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(r=e.stream.videoDimensions)||void 0===r?void 0:r.height)||0,width:(null===(u=e.stream.videoDimensions)||void 0===u?void 0:u.width)||0,videoActive:null!=e.stream.videoActive&&e.stream.videoActive,audioActive:null!=e.stream.audioActive&&e.stream.audioActive},function(e,t){e&&E.error("Error sending 'videoData' event",e)}):E.error("Browser "+s.getName()+" (version "+s.getVersion()+") for "+s.getFamily()+" is not supported in OpenVidu for Network Quality")},t.prototype.sessionConnected=function(){return null!=this.connection},t.prototype.notConnectedError=function(){return new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},t.prototype.anySpeechEventListenerEnabled=function(e,t,n){var i=this.ee.getListeners(e);if(t&&(i=i.filter(function(e){return e.once})),i.length>0)return!0;var r=0;if(n){var o=n.ee.getListeners(e);t&&(o=o.filter(function(e){return e.once})),r=o.length}return r>0},t.prototype.connectAux=function(e){var t=this;return new Promise(function(n,i){t.openvidu.startWs(function(r){if(r)i(r);else{var o=t.initializeParams(e);t.openvidu.sendRequest("joinRoom",o,function(r,o){if(r)i(r);else{t.processJoinRoomResponse(o),S.OpenViduLogger.configureJSNLog(t.openvidu,e),t.connection=new u.Connection(t,o);var a={connections:new Array,streams:new Array};o.value.forEach(function(e){var n=new u.Connection(t,e);t.remoteConnections.set(n.connectionId,n),a.connections.push(n),n.stream&&(t.remoteStreamsCreated.set(n.stream.streamId,!0),a.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),a.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),a.streams.forEach(function(e){t.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,t,"streamCreated",e,"")])}),n()}})}})})},t.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},t.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},t.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},t.prototype.getConnection=function(e,t){var n=this;return new Promise(function(i,r){var o=n.remoteConnections.get(e);o?i(o):n.connection.connectionId===e?i(n.connection):r(new k.OpenViduError(k.OpenViduErrorName.GENERIC_ERROR,t))})},t.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise(function(i,r){var o=n.remoteConnections.get(e);if(o)i(o);else{var a="Remote connection "+e+" unknown when '"+t+"'. Existing remote connections: "+JSON.stringify(n.remoteConnections.keys());r(new k.OpenViduError(k.OpenViduErrorName.GENERIC_ERROR,a))}})},t.prototype.processToken=function(e){var t=e.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(t){var n={protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]},i=e.split("?"),r=decodeURI(i[1]).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){return e[t[0]]=t[1],e},{});this.sessionId=r.sessionId;var o=r.secret,a=r.recorder,s=r.webrtcStatsInterval,u=r.sendBrowserLogs;o&&(this.openvidu.secret=o),a&&(this.openvidu.recorder=!0),s&&(this.openvidu.webrtcStatsInterval=+s),u&&(this.openvidu.sendBrowserLogs=u),this.openvidu.wsUri="wss://"+n.host+"/openvidu",this.openvidu.httpUri="https://"+n.host}else E.error('Token "'+e+'" is not valid')},t.prototype.processJoinRoomResponse=function(e){this.sessionId=e.session,null!=e.coturnIp&&null!=e.turnUsername&&null!=e.turnCredential&&(this.openvidu.iceServers=[{urls:["turn:"+e.coturnIp+":3478"],username:e.turnUsername,credential:e.turnCredential}],E.log("STUN/TURN server IP: "+e.coturnIp),E.log("TURN temp credentials ["+e.turnUsername+":"+e.turnCredential+"]")),this.openvidu.role=e.role,this.openvidu.finalUserId=e.finalUserId,this.openvidu.mediaServer=e.mediaServer,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},E.info("openvidu-server version: "+e.version),e.version!==this.openvidu.libraryVersion&&E.warn("OpenVidu Server ("+e.version+") and OpenVidu Browser ("+this.openvidu.libraryVersion+") versions do NOT match. There may be incompatibilities")},t}(h.EventDispatcher);t.Session=O},JUw6:function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(e.prototype);for(var r in n)i[r]=n[r];return i.constructor=t,t.prototype=i,t}},LBXl:function(e,t,n){"use strict";t.UnsubscriptionError=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},LXjW:function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var i=n("JUw6"),r=s(n("MW5i")),o=s(n("t/6/")),a=s(n("QSjB"));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||t&&o.type!==t||i.push(o.toObject())}return i},t.inherits=i.inherits,t.options=r,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},MCn7:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){if(!e)return o.__;Array.prototype.reduce||(Array.prototype.reduce=function(e,t){for(var n=t,i=0;i<this.length;i++)n=e(n,this[i],i,this);return n});var t="";return("."+e).split(".").reduce(function(e,n,i,r){t?t+="."+n:t=n;var a=e["__"+t];return void 0===a&&(o.Logger.prototype=e,a=new o.Logger(t),e["__"+t]=a),a},o.__)}!function(e){function t(e,t,n){void 0!==t[e]&&(null!==t[e]?n[e]=t[e]:delete n[e])}function n(t){if(null!=e.enabled&&!e.enabled)return!1;try{if(t.userAgentRegex&&!new RegExp(t.userAgentRegex).test(navigator.userAgent))return!1}catch(n){}try{if(t.ipRegex&&e.clientIP&&!new RegExp(t.ipRegex).test(e.clientIP))return!1}catch(n){}return!0}function i(e,t){try{if(e.disallow&&new RegExp(e.disallow).test(t))return!1}catch(n){}return!0}function o(e){return"function"==typeof e?e instanceof RegExp?e.toString():e():e}e.requestId="",e.entryId=0,e._createXMLHttpRequest=function(){return new XMLHttpRequest},e._getTime=function(){return(new Date).getTime()},e._console=console,e._appenderNames=[];var a=function(e,t,n){this.msg=e,this.meta=t,this.finalString=n};function s(t){var n,i=o(t);switch(typeof i){case"string":return new a(i,null,i);case"number":case"boolean":return n=i.toString(),new a(n,null,n);case"undefined":return new a("undefined",null,"undefined");case"object":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(n=i.toString(),new a(n,null,n)):(n="function"==typeof e.serialize?e.serialize.call(this,i):JSON.stringify(i),new a("",i,n));default:return new a("unknown",null,"unknown")}}function u(e){return e<=1e3?"trace":e<=2e3?"debug":e<=3e3?"info":e<=4e3?"warn":e<=5e3?"error":"fatal"}e.setOptions=function(e){return t("enabled",e,this),t("maxMessages",e,this),t("defaultAjaxUrl",e,this),t("clientIP",e,this),t("requestId",e,this),t("defaultBeforeSend",e,this),t("serialize",e,this),this},e.getAllLevel=function(){return-2147483648},e.getTraceLevel=function(){return 1e3},e.getDebugLevel=function(){return 2e3},e.getInfoLevel=function(){return 3e3},e.getWarnLevel=function(){return 4e3},e.getErrorLevel=function(){return 5e3},e.getFatalLevel=function(){return 6e3},e.getOffLevel=function(){return 2147483647};var c=function(e,t){this.inner=t,this.name="JL.Exception",this.message=s(e).finalString};e.Exception=c,c.prototype=new Error;var l=function(e,t,n,i,r){this.l=e,this.m=t,this.n=n,this.t=i,this.u=r};function h(t,n,i){return e.entryId++,new l(t,n,i,e._getTime(),e.entryId)}function d(e){e.id&&(clearTimeout(e.id),e.id=null)}function f(e,t,n){var i=this;e.id||(e.id=setTimeout(function(){n.call(i)},t))}e.LogItem=l;var p=function(){function r(t,n){this.appenderName=t,this.sendLogItems=n,this.level=e.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.maxBatchSize=20,this.batchTimeout=2147483647,this.sendTimeout=5e3,this.buffer=[],this.batchBuffer=[],this.batchTimeoutTimer={id:null},this.sendTimeoutTimer={id:null},this.nbrLogItemsSkipped=0,this.nbrLogItemsBeingSent=0;var i="Trying to create an appender without a name or with an empty name";if(null==t)throw i;if(-1!=e._appenderNames.indexOf(t)){if(!t)throw i;throw"Multiple appenders use the same name "+t}e._appenderNames.push(t)}return r.prototype.addLogItemsToBuffer=function(t){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=t.length;else{if(null!=e.maxMessages){if(e.maxMessages<1)return;e.maxMessages-=t.length}this.batchBuffer=this.batchBuffer.concat(t);var n=this;f(this.batchTimeoutTimer,this.batchTimeout,function(){n.sendBatch.call(n)})}},r.prototype.batchBufferHasOverdueMessages=function(){for(var t=0;t<this.batchBuffer.length;t++)if(e._getTime()-this.batchBuffer[t].t>this.batchTimeout)return!0;return!1},r.prototype.batchBufferHasStrandedMessage=function(){return!(null==e.maxMessages)&&e.maxMessages<1&&this.batchBuffer.length>0},r.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},r.prototype.onSendingEnded=function(){d(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},r.prototype.setOptions=function(n){if(t("level",n,this),t("ipRegex",n,this),t("userAgentRegex",n,this),t("disallow",n,this),t("sendWithBufferLevel",n,this),t("storeInBufferLevel",n,this),t("bufferSize",n,this),t("batchSize",n,this),t("maxBatchSize",n,this),t("batchTimeout",n,this),t("sendTimeout",n,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new e.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},r.prototype.log=function(e,t,r,o,a,s,u){var c;n(this)&&i(this,s)&&(a<this.storeInBufferLevel||(c=h(a,s,u),a<this.level?this.bufferSize>0&&(this.buffer.push(c),this.buffer.length>this.bufferSize&&this.buffer.shift()):(this.addLogItemsToBuffer([c]),a>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete())))},r.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(d(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var e=this;f(this.sendTimeoutTimer,this.sendTimeout,function(){e.onSendingEnded.call(e)}),this.sendLogItems(this.batchBuffer,function(){e.batchBuffer.splice(0,e.nbrLogItemsBeingSent),e.nbrLogItemsSkipped>0&&(e.batchBuffer.push(h(4e3,"Lost "+e.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.",e.appenderName)),e.nbrLogItemsSkipped=0),e.onSendingEnded.call(e)})}},r}();e.Appender=p;var v=function(i){function o(e){return i.call(this,e,o.prototype.sendLogItemsAjax)||this}return r(o,i),o.prototype.setOptions=function(e){return t("url",e,this),t("beforeSend",e,this),i.prototype.setOptions.call(this,e),this},o.prototype.sendLogItemsAjax=function(t,i){try{if(!n(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=e._createXMLHttpRequest();var r="/jsnlog.logger";null!=e.defaultAjaxUrl&&(r=e.defaultAjaxUrl),this.url&&(r=this.url),this.xhr.open("POST",r),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",e.requestId);var o=this;this.xhr.onreadystatechange=function(){4==o.xhr.readyState&&o.xhr.status>=200&&o.xhr.status<300&&i()};var a={r:e.requestId,lg:t};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,a):"function"==typeof e.defaultBeforeSend&&e.defaultBeforeSend.call(this,this.xhr,a);var s=JSON.stringify(a);this.xhr.send(s)}catch(u){}},o}(p);e.AjaxAppender=v;var m=function(t){function i(e){return t.call(this,e,i.prototype.sendLogItemsConsole)||this}return r(i,t),i.prototype.clog=function(t){e._console.log(t)},i.prototype.cerror=function(t){e._console.error?e._console.error(t):this.clog(t)},i.prototype.cwarn=function(t){e._console.warn?e._console.warn(t):this.clog(t)},i.prototype.cinfo=function(t){e._console.info?e._console.info(t):this.clog(t)},i.prototype.cdebug=function(t){e._console.debug?e._console.debug(t):this.cinfo(t)},i.prototype.sendLogItemsConsole=function(t,i){try{if(!n(this))return;if(!e._console)return;var r;for(r=0;r<t.length;++r){var o=t[r],a=o.n+": "+o.m;"undefined"==typeof window&&(a=new Date(o.t)+" | "+a),o.l<=e.getDebugLevel()?this.cdebug(a):o.l<=e.getInfoLevel()?this.cinfo(a):o.l<=e.getWarnLevel()?this.cwarn(a):this.cerror(a)}}catch(s){}i()},i}(p);e.ConsoleAppender=m;var g,y=function(){function e(e){this.loggerName=e,this.seenRegexes=[]}return e.prototype.setOptions=function(e){return t("level",e,this),t("userAgentRegex",e,this),t("disallow",e,this),t("ipRegex",e,this),t("appenders",e,this),t("onceOnly",e,this),this.seenRegexes=[],this},e.prototype.buildExceptionObject=function(e){var t={};return e.stack?t.stack=e.stack:t.e=e,e.message&&(t.message=e.message),e.name&&(t.name=e.name),e.data&&(t.data=e.data),e.inner&&(t.inner=this.buildExceptionObject(e.inner)),t},e.prototype.log=function(e,t,r){var a,c,l=0;if(!this.appenders)return this;if(e>=this.level&&n(this)&&(r?(c=this.buildExceptionObject(r)).logData=o(t):c=t,i(this,(a=s(c)).finalString))){if(this.onceOnly)for(l=this.onceOnly.length-1;l>=0;){if(new RegExp(this.onceOnly[l]).test(a.finalString)){if(this.seenRegexes[l])return this;this.seenRegexes[l]=!0}l--}for(a.meta=a.meta||{},l=this.appenders.length-1;l>=0;)this.appenders[l].log(u(e),a.msg,a.meta,function(){},e,a.finalString,this.loggerName),l--}return this},e.prototype.trace=function(e){return this.log(1e3,e)},e.prototype.debug=function(e){return this.log(2e3,e)},e.prototype.info=function(e){return this.log(3e3,e)},e.prototype.warn=function(e){return this.log(4e3,e)},e.prototype.error=function(e){return this.log(5e3,e)},e.prototype.fatal=function(e){return this.log(6e3,e)},e.prototype.fatalException=function(e,t){return this.log(6e3,e,t)},e}();e.Logger=y,e.createAjaxAppender=function(e){return new v(e)},e.createConsoleAppender=function(e){return new m(e)},g="undefined"!=typeof window?new v(""):new m(""),e.__=new e.Logger(""),e.__.setOptions({level:e.getDebugLevel(),appenders:[g]})}(o||(o={})),t.__esModule=!0,t.JL=o,"function"==typeof __jsnlog_configure&&__jsnlog_configure(o),"undefined"==typeof window||window.onerror||(window.onerror=function(e,t,n,i,r){return o("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:e?e.message||e:"",url:t,"line number":n,column:i},r),!1}),"undefined"==typeof window||window.onunhandledrejection||(window.onunhandledrejection=function(e){o("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:e.reason?e.reason.message:e.message||null},e.reason)})},MW5i:function(e,t,n){"use strict";t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(e){this.defaultProtocol=(e=e||{}).hasOwnProperty("defaultProtocol")?e.defaultProtocol:r.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:r.events,this.format=e.hasOwnProperty("format")?e.format:r.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:r.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:r.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:r.tagName,this.target=e.hasOwnProperty("target")?e.target:r.target,this.validate=e.hasOwnProperty("validate")?e.validate:r.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||r.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||r.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:r.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=r,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":i(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:r[e])?o(t,n.type):o}return a},getObject:function(e,t,n){var i=this[e];return"function"==typeof i?i(t,n.type):i}}},MkmW:function(e,t,n){"use strict";t.hostReportError=function(e){setTimeout(function(){throw e},0)}},Mxlh:function(e,t,n){"use strict";t.ObjectUnsubscribedError=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},OAkW:function(e,t,n){"use strict";t.subscribeToArray=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},P3vI:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamManager=void 0;var o,a=n("Dztv"),s=n("HxXY"),u=n("oIG1"),c=n("/dLB"),l=n("9m68"),h=n("4jfU"),d=n("6cvo"),f=l.OpenViduLogger.getInstance(),p=function(e){function t(t,n){var i=e.call(this)||this;if(i.videos=[],i.lazyLaunchVideoElementCreatedEvent=!1,o=h.PlatformUtils.getInstance(),i.stream=t,i.stream.streamManager=i,i.remote=!i.stream.isLocal(),n){var r=void 0;"string"==typeof n?r=document.getElementById(n):n instanceof HTMLElement&&(r=n),r&&(i.firstVideoElement={targetElement:r,video:document.createElement("video"),id:"",canplayListenerAdded:!1},o.isSafariBrowser()&&i.firstVideoElement.video.setAttribute("playsinline","true"),i.targetElement=r,i.element=r)}return i.canPlayListener=function(){i.deactivateStreamPlayingEventExceptionTimeout(),i.remote?(f.info("Remote 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("videoPlaying",[new u.VideoElementEvent(i.videos[0].video,i,"videoPlaying")])):i.stream.displayMyRemote()?(f.info("Your own remote 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("remoteVideoPlaying",[new u.VideoElementEvent(i.videos[0].video,i,"remoteVideoPlaying")])):(f.info("Your local 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("videoPlaying",[new u.VideoElementEvent(i.videos[0].video,i,"videoPlaying")])),i.ee.emitEvent("streamPlaying",[new s.StreamManagerEvent(i,"streamPlaying",void 0)])},i}return r(t,e),t.prototype.on=function(t,n){return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new u.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new s.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new u.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this.stream.hasAudio&&("publisherStartSpeaking"===t&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===t&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===t&&this.stream.enableHarkVolumeChangeEvent(!1)),this},t.prototype.once=function(t,n){return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new u.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new s.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new u.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this.stream.hasAudio&&("publisherStartSpeaking"===t&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===t&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===t&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},t.prototype.off=function(t,n){return e.prototype.off.call(this,t,n),"publisherStartSpeaking"===t&&0===this.ee.getListeners(t).length+this.stream.session.ee.getListeners(t).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===t&&0===this.ee.getListeners(t).length+this.stream.session.ee.getListeners(t).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===t&&0===this.ee.getListeners(t).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},t.prototype.addVideoElement=function(e){this.initializeVideoProperties(e),!this.remote&&this.stream.displayMyRemote()&&e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream());for(var t=0,n=this.videos;t<n.length;t++)if(n[t].video===e)return 0;for(var i=1,r=0,o=this.stream.session.streamManagers;r<o.length;r++)if(o[r].disassociateVideo(e)){i=-1;break}return this.stream.session.streamManagers.forEach(function(t){t.disassociateVideo(e)}),this.pushNewStreamManagerVideo({video:e,id:e.id,canplayListenerAdded:!1}),f.info("New video element associated to ",this),i},t.prototype.createVideoElement=function(e,t){var n;if("string"==typeof e){if(!(n=document.getElementById(e)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e)}else{if(!(e instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e);n=e}var i=this.createVideo();this.initializeVideoProperties(i);var r=t||c.VideoInsertMode.APPEND;switch(r){case c.VideoInsertMode.AFTER:n.parentNode.insertBefore(i,n.nextSibling);break;case c.VideoInsertMode.APPEND:n.appendChild(i);break;case c.VideoInsertMode.BEFORE:n.parentNode.insertBefore(i,n);break;case c.VideoInsertMode.PREPEND:n.insertBefore(i,n.childNodes[0]);break;case c.VideoInsertMode.REPLACE:n.parentNode.replaceChild(i,n);break;default:r=c.VideoInsertMode.APPEND,n.appendChild(i)}var o={targetElement:n,video:i,insertMode:r,id:i.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(o),this.ee.emitEvent("videoElementCreated",[new u.VideoElementEvent(o.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,i},t.prototype.updatePublisherSpeakingEventsOptions=function(e){var t=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},n="number"==typeof e.interval?e.interval:"number"==typeof t.interval?t.interval:100,i="number"==typeof e.threshold?e.threshold:"number"==typeof t.threshold?t.threshold:-50;this.stream.harkOptions={interval:n,threshold:i},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(n),this.stream.speechEvent.setThreshold(i))},t.prototype.initializeVideoProperties=function(e){!this.remote&&this.stream.displayMyRemote()||e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream()),e.autoplay=!0,e.controls=!1,o.isSafariBrowser()&&e.setAttribute("playsinline","true"),e.id||(e.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=e.id)),this.remote||this.stream.displayMyRemote()||(e.muted=!0,"rotateY(180deg)"!==e.style.transform||this.stream.outboundStreamOpts.publisherProperties.mirror?this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(e):this.removeMirrorVideo(e))},t.prototype.removeAllVideos=function(){for(var e=this,t=this.stream.session.streamManagers.length-1;t>=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach(function(t){t.video&&t.video.removeEventListener&&t.video.removeEventListener("canplay",e.canPlayListener),t.canplayListenerAdded=!1,t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new u.VideoElementEvent(t.video,e,"videoElementDestroyed")])),e.removeSrcObject(t),e.videos.filter(function(e){return!e.targetElement})})},t.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===e){this.videos[n].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(n,1),t=!0,f.info("Video element disassociated from ",this);break}return t},t.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.activateStreamPlayingEventExceptionTimeout(),this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},t.prototype.updateMediaStream=function(e){this.videos.forEach(function(t){if(t.video.srcObject=e,o.isIonicIos()){var n=t.video;t.video.parentElement.replaceChild(n,t.video),t.video=n}})},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.createVideo=function(){return document.createElement("video")},t.prototype.removeSrcObject=function(e){e.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},t.prototype.pushNewStreamManagerVideo=function(e){this.videos.push(e),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},t.prototype.mirrorVideo=function(e){o.isIonicIos()||(e.style.transform="rotateY(180deg)",e.style.webkitTransform="rotateY(180deg)")},t.prototype.removeMirrorVideo=function(e){e.style.transform="unset",e.style.webkitTransform="unset"},t.prototype.activateStreamPlayingEventExceptionTimeout=function(){var e=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var t=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var n="StreamManager of Stream "+e.stream.streamId+" ("+(e.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+t+" ms";f.warn(n),e.stream.session.emitEvent("exception",[new d.ExceptionEvent(e.stream.session,d.ExceptionEventName.NO_STREAM_PLAYING_EVENT,e,n)]),delete e.streamPlayingEventExceptionTimeout},t)}},t.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},t}(a.EventDispatcher);t.StreamManager=p},P7XM:function(e,t){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},PEz1:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.Publisher=void 0;var s,u=n("JTMn"),c=n("DPKQ"),l=n("P3vI"),h=n("Te8r"),d=n("BwMD"),f=n("oIG1"),p=n("Tt94"),v=n("9m68"),m=n("4jfU"),g=v.OpenViduLogger.getInstance(),y=function(e){function t(t,n,i){var r=e.call(this,new c.Stream(i.session?i.session:new u.Session(i),{publisherProperties:n,mediaConstraints:{}}),t)||this;return r.accessAllowed=!1,r.isSubscribedToRemote=!1,r.accessDenied=!1,s=m.PlatformUtils.getInstance(),r.properties=n,r.openvidu=i,r.stream.ee.on("local-stream-destroyed",function(e){r.stream.isLocalStreamPublished=!1;var t=new h.StreamEvent(!0,r,"streamDestroyed",r.stream,e);r.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()}),r}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(t){t.enabled=e}),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},function(n,i){n?g.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]),t.session.sendVideoData(t.stream.streamManager))}),this.stream.audioActive=e,g.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getVideoTracks().forEach(function(t){t.enabled=e}),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},function(n,i){n?g.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]),t.session.sendVideoData(t.stream.streamManager))}),this.stream.videoActive=e,g.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var i=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new h.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){i.emitEvent("streamCreated",[new h.StreamEvent(!1,i,"streamCreated",i.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new f.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var i=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new h.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){i.emitEvent("streamCreated",[new h.StreamEvent(!1,i,"streamCreated",i.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new f.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.replaceTrack=function(e){return o(this,void 0,void 0,function(){var t,n,i,r,o=this;return a(this,function(a){switch(a.label){case 0:t=function(){return new Promise(function(t,n){var i,r=o.stream.displayMyRemote()?o.stream.localMediaStreamWhenSubscribedToRemote:o.stream.getMediaStream();i="video"===e.kind?r.getVideoTracks()[0]:r.getAudioTracks()[0],r.removeTrack(i),i.stop(),r.addTrack(e),"video"===e.kind&&o.stream.isLocalStreamPublished&&(o.openvidu.sendNewVideoDimensionsIfRequired(o,"trackReplaced",50,30),o.session.sendVideoData(o.stream.streamManager,5,!0,5)),t()})},n=function(){return new Promise(function(t,n){var i,r=o.stream.getRTCPeerConnection().getSenders();if("video"===e.kind){if(!(i=r.find(function(e){return!!e.track&&"video"===e.track.kind})))return void n(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object"))}else{if("audio"!==e.kind)return void n(new Error("Unknown track kind "+e.kind));if(!(i=r.find(function(e){return!!e.track&&"audio"===e.track.kind})))return void n(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object"))}i.replaceTrack(e).then(function(){t()}).catch(function(e){n(e)})})},i=e.enabled,"video"===e.kind?e.enabled=this.stream.videoActive:"audio"===e.kind&&(e.enabled=this.stream.audioActive),a.label=1;case 1:return a.trys.push([1,7,,8]),this.stream.isLocalStreamPublished?[4,n()]:[3,4];case 2:return a.sent(),[4,t()];case 3:return[2,a.sent()];case 4:return[4,t()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:throw r=a.sent(),e.enabled=i,r;case 8:return[2]}})})},t.prototype.initialize=function(){var e=this;return new Promise(function(t,n){var i,r={},o={},a=1500,u=function(t){e.accessDenied=!0,e.accessAllowed=!1,n(t)},c=function(n){if(e.accessAllowed=!0,e.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&e.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&e.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var i=null!=e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=i}n.getVideoTracks()[0]&&(i=null!=e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=i),e.initializeVideoReference(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),delete e.firstVideoElement,e.stream.isSendVideo()?e.getVideoDimensions(n).then(function(t){e.stream.videoDimensions={width:t.width,height:t.height},e.stream.isSendScreen()&&(e.screenShareResizeInterval=setInterval(function(){var t=n.getVideoTracks()[0].getSettings(),i=t.width,r=t.height;!e.stream.isLocalStreamPublished||i===e.stream.videoDimensions.width&&r===e.stream.videoDimensions.height||e.openvidu.sendVideoDimensionsChangedEvent(e,"screenResized",e.stream.videoDimensions.width,e.stream.videoDimensions.height,i||0,r||0)},650)),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}):(e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])),t()},l=function(t,n){e.clearPermissionDialogTimer(i,a),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=n,o.video=!1,i=Date.now(),e.setPermissionDialogTimer(a),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(i,a),t.addTrack(n.getAudioTracks()[0]),c(t)}).catch(function(n){e.clearPermissionDialogTimer(i,a),t.getAudioTracks().forEach(function(e){e.stop()}),t.getVideoTracks().forEach(function(e){e.stop()}),u(e.openvidu.generateAudioDeviceError(n,r))})):c(t)},h=function(t){var n,o;switch(g.error(t),e.clearPermissionDialogTimer(i,a),"Error"===t.name&&(t.name=t.constructor.name),t.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),n=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=t.toString(),u(new p.OpenViduError(n,o))}).catch(function(e){n=p.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=t.toString(),u(new p.OpenViduError(n,o))});break;case"notallowederror":n=e.stream.isSendScreen()?p.OpenViduErrorName.SCREEN_CAPTURE_DENIED:p.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=t.toString(),u(new p.OpenViduError(n,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),"deviceid"===t.constraint.toLowerCase()?(n=p.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+r.audio.deviceId.exact+"' not found"):(n=p.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+t.constraint+"'"),u(new p.OpenViduError(n,o))}).catch(function(e){"deviceid"===t.constraint.toLowerCase()?(n=p.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+r.video.deviceId.exact+"' not found"):(n=p.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+t.constraint+"'"),u(new p.OpenViduError(n,o))});break;case"aborterror":case"notreadableerror":n=p.OpenViduErrorName.DEVICE_ALREADY_IN_USE,o=t.toString(),u(new p.OpenViduError(n,o));break;default:n=p.OpenViduErrorName.GENERIC_ERROR,o=t.toString(),u(new p.OpenViduError(n,o))}};e.openvidu.generateMediaConstraints(e.properties).then(function(t){var n,u;if(t.videoTrack&&t.audioTrack||t.audioTrack&&!1===(null===(n=t.constraints)||void 0===n?void 0:n.video)||t.videoTrack&&!1===(null===(u=t.constraints)||void 0===u?void 0:u.audio))c(e.openvidu.addAlreadyProvidedTracks(t,new MediaStream));else{e.stream.setOutboundStreamOptions({mediaConstraints:r=t.constraints,publisherProperties:e.properties});var d=void 0===r.audio||r.audio;o.audio=!e.stream.isSendScreen()&&d,o.video=r.video,i=Date.now(),e.setPermissionDialogTimer(a),e.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!s.isElectron()?navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,d)}).catch(function(e){h(e)}):navigator.mediaDevices.getUserMedia(o).then(function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,d)}).catch(function(e){h(e)})}}).catch(function(e){u(e)})})},t.prototype.getVideoDimensions=function(e){var t=this;return new Promise(function(e,n){var i,r=s.isIonicIos()||s.isIOSWithSafari(),o=function(){var n,o;if("function"==typeof t.stream.getMediaStream().getVideoTracks()[0].getSettings){var a=t.stream.getMediaStream().getVideoTracks()[0].getSettings();n=a.width||t.videoReference.videoWidth,o=a.height||t.videoReference.videoHeight}else g.warn("MediaStreamTrack does not have getSettings method on "+s.getDescription()),n=t.videoReference.videoWidth,o=t.videoReference.videoHeight;null!=i&&t.videoReference.removeEventListener("loadedmetadata",i),r&&document.body.removeChild(t.videoReference),e({width:n,height:o})};t.videoReference.readyState>=1?o():(t.videoReference.addEventListener("loadedmetadata",i=function(){if(t.videoReference.videoWidth)o();else var e=setInterval(function(){t.videoReference.videoWidth&&(clearInterval(e),o())},40)}),r&&document.body.appendChild(t.videoReference))})},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.initializeVideoReference=function(e){this.videoReference=document.createElement("video"),this.videoReference.setAttribute("muted","true"),this.videoReference.style.display="none",s.isSafariBrowser()&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(e),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=e},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout(function(){t.emitEvent("accessDialogOpened",[])},e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(l.StreamManager);t.Publisher=y},PPcv:function(e,t,n){"use strict";t.__esModule=!0,t.OpenVidu=void 0;var i,r=n("tInm"),o=n("PEz1"),a=n("JTMn"),s=n("ksJj"),u=n("BwMD"),c=n("Tt94"),l=n("/dLB"),h=n("9m68"),d=n("4jfU"),f=n("+27z"),p=n("EcWD"),v=n("SdlI"),m=n("4O8T"),g=n("AeG9"),y=n("vqFl"),b=h.OpenViduLogger.getInstance(),_=function(){function e(){var e=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=v.OpenViduLoggerConfiguration.disabled,this.ee=new m,i=d.PlatformUtils.getInstance(),this.libraryVersion=y.version,b.info("OpenVidu initialized"),b.info("Platform detected: "+i.getDescription()),b.info("openvidu-browser version: "+this.libraryVersion),(i.isMobileDevice()||i.isReactNative())&&this.onOrientationChanged(function(){e.publishers.forEach(function(t){t.stream.isLocalStreamPublished&&t.stream&&t.stream.hasVideo&&e.sendNewVideoDimensionsIfRequired(t,"deviceRotated",75,10)})})}return e.prototype.onOrientationChanged=function(e){window.addEventListener("orientationchange",e)},e.prototype.sendNewVideoDimensionsIfRequired=function(e,t,n,i){var r=this,o=0,a=e.stream.videoDimensions.width,s=e.stream.videoDimensions.height,u=setInterval(function(){++o>i&&clearTimeout(u),e.getVideoDimensions(e.stream.getMediaStream()).then(function(n){n.width===a&&n.height===s||(clearTimeout(u),r.sendVideoDimensionsChangedEvent(e,t,a,s,n.width,n.height))})},n)},e.prototype.sendVideoDimensionsChangedEvent=function(e,t,n,i,r,o){var a=this;e.stream.videoDimensions={width:r||0,height:o||0},this.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:t},function(r,o){r?b.error("Error sending 'streamPropertyChanged' event",r):(a.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(a.session,e.stream,"videoDimensions",e.stream.videoDimensions,{width:n,height:i},t)]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,{width:n,height:i},t)]),a.session.sendVideoData(e))})},e.prototype.initSession=function(){return this.session=new a.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var i;i=t&&"function"!=typeof t?{audioSource:void 0!==(i=t).audioSource?i.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.frameRate?i.frameRate:void 0,insertMode:void 0!==i.insertMode?"string"==typeof i.insertMode?l.VideoInsertMode[i.insertMode]:i.insertMode:l.VideoInsertMode.APPEND,mirror:void 0===i.mirror||i.mirror,publishAudio:void 0===i.publishAudio||i.publishAudio,publishVideo:void 0===i.publishVideo||i.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.resolution?i.resolution:"640x480",videoSource:void 0!==i.videoSource?i.videoSource:void 0,filter:i.filter}:{insertMode:l.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var r,a=new o.Publisher(e,i,this);return t&&"function"==typeof t?r=t:n&&(r=n),a.initialize().then(function(){void 0!==r&&r(void 0),a.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==r&&r(e),a.emitEvent("accessDenied",[e])}),this.publishers.push(a),a},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(i,r){var o,a=function(e){e?r(e):i(o)};o=t?n.initPublisher(e,t,a):n.initPublisher(e,a)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){return i.isIPhoneOrIPad()?i.isIOSWithSafari()||i.isIonicIos()?1:0:i.isChromeBrowser()||i.isChromeMobileBrowser()||i.isFirefoxBrowser()||i.isFirefoxMobileBrowser()||i.isOperaBrowser()||i.isOperaMobileBrowser()||i.isEdgeBrowser()||i.isEdgeMobileBrowser()||i.isSafariBrowser()||i.isAndroidBrowser()||i.isElectron()||i.isSamsungBrowser()?1:0},e.prototype.checkScreenSharingCapabilities=function(){return i.canScreenShare()},e.prototype.getDevices=function(){return new Promise(function(e,t){navigator.mediaDevices.enumerateDevices().then(function(t){var n,r=[];i.isIonicAndroid()&&"undefined"!=typeof cordova&&(null===(n=null===cordova||void 0===cordova?void 0:cordova.plugins)||void 0===n?void 0:n.EnumerateDevicesPlugin)?cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(n){var i=[],o=[],a=[];i=n.filter(function(e){return"audioinput"===e.kind}),o=t.filter(function(e){return"videoinput"===e.kind}),a=t.filter(function(e){return"audioinput"===e.kind}),o.forEach(function(e,t){r.push(e.label?{kind:e.kind,deviceId:e.deviceId,label:e.label}:{kind:e.kind,deviceId:e.deviceId,label:0===t?"Front Camera":1===t?"Back Camera":"Unknown Camera"})}),a.forEach(function(e,t){if(e.label)r.push({kind:e.kind,deviceId:e.deviceId,label:e.label});else{var n="";switch(t){case 0:n="Default";break;case 1:var o=i.filter(function(e){return e.label.includes("Built")})[0];n=o?o.label:"Built-in Microphone";break;case 2:var a=i.filter(function(e){return e.label.includes("Wired")})[0];n=a?a.label:"Headset earpiece";break;case 3:var s=i.filter(function(e){return e.label.includes("Bluetooth")})[0];n=s?s.label:"Wireless";break;default:n="Unknown Microphone"}r.push({kind:e.kind,deviceId:e.deviceId,label:n})}}),e(r)}):(t.forEach(function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||r.push({kind:e.kind,deviceId:e.deviceId,label:e.label})}),e(r))}).catch(function(e){b.error("Error getting devices",e),t(e)})})},e.prototype.getUserMedia=function(e){var t=this;return new Promise(function(n,r){var o=function(e,i){var o={audio:void 0===i.audio||i.audio,video:!1};navigator.mediaDevices.getUserMedia(o).then(function(t){e.addTrack(t.getAudioTracks()[0]),n(e)}).catch(function(n){e.getAudioTracks().forEach(function(e){e.stop()}),e.getVideoTracks().forEach(function(e){e.stop()}),r(t.generateAudioDeviceError(n,o))})};t.generateMediaConstraints(e).then(function(a){var s,u;if(a.videoTrack&&a.audioTrack||a.audioTrack&&!1===(null===(s=a.constraints)||void 0===s?void 0:s.video)||a.videoTrack&&!1===(null===(u=a.constraints)||void 0===u?void 0:u.audio))n(t.addAlreadyProvidedTracks(a,new MediaStream));else{a.videoTrack&&delete a.constraints.video,a.audioTrack&&delete a.constraints.audio;var l=!1;if("string"==typeof e.videoSource&&("screen"===e.videoSource||"window"===e.videoSource||i.isElectron()&&e.videoSource.startsWith("screen:"))&&(l=!a.audioTrack&&null!==e.audioSource&&!1!==e.audioSource,navigator.mediaDevices.getDisplayMedia&&!i.isElectron()))return void navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(e){t.addAlreadyProvidedTracks(a,e),l?o(e,a.constraints):n(e)}).catch(function(e){var t=c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n=e.toString();r(new c.OpenViduError(t,n))});navigator.mediaDevices.getUserMedia(l?{video:a.constraints.video}:a.constraints).then(function(e){t.addAlreadyProvidedTracks(a,e),l?o(e,a.constraints):n(e)}).catch(function(t){var n=t.toString();r(new c.OpenViduError("screen"!==e.videoSource?c.OpenViduErrorName.DEVICE_ACCESS_DENIED:c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}}).catch(function(e){r(e)})})},e.prototype.enableProdMode=function(){b.enableProdMode()},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise(function(n,i){var r={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},o=e.audioSource,a=e.videoSource;if(null!==o&&!1!==o||(r.constraints.audio=!1),null!==a&&!1!==a||(r.constraints.video=!1),!1===r.constraints.audio&&!1===r.constraints.video&&i(new c.OpenViduError(c.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time")),"undefined"!=typeof MediaStreamTrack&&o instanceof MediaStreamTrack&&(r.audioTrack=o),"undefined"!=typeof MediaStreamTrack&&a instanceof MediaStreamTrack&&(r.videoTrack=a),void 0===o&&(r.constraints.audio=!0),void 0===a&&(r.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==a&&!1!==a){if(e.resolution){var s=e.resolution.toLowerCase().split("x"),u=Number(s[0]),l=Number(s[1]);r.constraints.video={width:{ideal:u},height:{ideal:l}}}e.frameRate&&(r.constraints.video.frameRate={ideal:e.frameRate})}t.configureDeviceIdOrScreensharing(r,e,n,i),n(r)})},e.prototype.startWs=function(e){var t={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:e,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this)}};this.jsonRpcClient=new g.clients.JsonRpcClient(t)},e.prototype.onMasterNodeCrashedNotification=function(e){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},e.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},e.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),b.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.generateAudioDeviceError=function(e,t){var n,i;switch("Error"===e.name&&(e.name=e.constructor.name),e.name.toLowerCase()){case"notfounderror":return n=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i=e.toString(),new c.OpenViduError(n,i);case"notallowederror":return n=c.OpenViduErrorName.DEVICE_ACCESS_DENIED,i=e.toString(),new c.OpenViduError(n,i);case"overconstrainederror":return"deviceid"===e.constraint.toLowerCase()?(n=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(n=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,i="Audio input device doesn't support the value passed for constraint '"+e.constraint+"'"),new c.OpenViduError(n,i);case"notreadableerror":return n=c.OpenViduErrorName.DEVICE_ALREADY_IN_USE,i=e.toString(),new c.OpenViduError(n,i);default:return new c.OpenViduError(c.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,e.toString())}},e.prototype.addAlreadyProvidedTracks=function(e,t){return e.videoTrack&&t.addTrack(e.videoTrack),e.audioTrack&&t.addTrack(e.audioTrack),t},e.prototype.configureDeviceIdOrScreensharing=function(e,t,n,r){var o=this,a=t.audioSource,s=t.videoSource;if("string"==typeof a&&(e.constraints.audio={deviceId:{exact:a}}),"string"==typeof s)if(this.isScreenShare(s))if(this.checkScreenSharingCapabilities())if(i.isElectron()){var u="screen:",l=s.substr(s.indexOf(u)+u.length);e.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:l}},n(e)}else{if(this.advancedConfiguration.screenShareChromeExtension&&!i.isFirefoxBrowser()&&!i.isFirefoxMobileBrowser()&&!navigator.mediaDevices.getDisplayMedia)return void p.getScreenConstraints(function(t,i){if(t||i.mandatory&&"screen"===i.mandatory.chromeMediaSource){if("permission-denied"!==t&&"PermissionDeniedError"!==t){var a=o.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();return void p.getChromeExtensionStatus(a,function(e){if("installed-disabled"===e){var t=new c.OpenViduError(c.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");b.error(t),r(t)}if("not-installed"===e){var n=new c.OpenViduError(c.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,o.advancedConfiguration.screenShareChromeExtension);b.error(n),r(n)}})}var s=new c.OpenViduError(c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");b.error(s),r(s)}else e.constraints.video=i,n(e)});if(!navigator.mediaDevices.getDisplayMedia){var h=i.isFirefoxBrowser()||i.isFirefoxMobileBrowser()?t.videoSource:void 0;return void f.getScreenId(h,function(t,i,a){if(t)if("not-installed"===t){var s=new c.OpenViduError(c.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,o.advancedConfiguration.screenShareChromeExtension?o.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");b.error(s),r(s)}else"installed-disabled"===t?(s=new c.OpenViduError(c.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),b.error(s),r(s)):"permission-denied"===t?(s=new c.OpenViduError(c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),b.error(s),r(s)):(s=new c.OpenViduError(c.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),b.error(s),b.error(t),r(s));else e.constraints.video=a.video,n(e)})}n(e)}else{var d=new c.OpenViduError(c.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+i.getName()+" "+i.getVersion());b.error(d),r(d)}else this.setVideoSource(e,s)},e.prototype.setVideoSource=function(e,t){e.constraints.video||(e.constraints.video={}),e.constraints.video.deviceId={exact:t}},e.prototype.disconnectCallback=function(){b.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){b.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},e.prototype.reconnectedCallback=function(){var e=this;if(b.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.sendRequest("connect",{sessionId:this.session.connection.rpcSessionId},function(t,n){t?e.isMasterNodeCrashed()?b.warn("Master Node has crashed!"):(b.error(t),b.warn("Websocket was able to reconnect to OpenVidu Server, but your Connection was already destroyed due to timeout. You are no longer a participant of the Session and your media streams have been destroyed"),e.session.onLostConnection("networkDisconnect"),e.jsonRpcClient.close(4101,"Reconnection fault")):(e.jsonRpcClient.resetPing(),e.session.onRecoveredConnection())});else{b.warn("There was no previous connection when running reconnection callback");var t=new s.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[t]),t.callDefaultBehavior()}else alert("Connection error. Please reload page.")},e.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof a.Session||(b.warn("Session instance not found"),!1)},e.prototype.isScreenShare=function(e){return"screen"===e||"window"===e||i.isElectron()&&e.startsWith("screen:")},e}();t.OpenVidu=_},PZzU:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]});t.__esModule=!0,t.EventDispatcher=t.ExceptionEvent=t.NetworkQualityLevelChangedEvent=t.FilterEvent=t.ConnectionPropertyChangedEvent=t.StreamPropertyChangedEvent=t.VideoElementEvent=t.StreamManagerEvent=t.StreamEvent=t.SignalEvent=t.SessionDisconnectedEvent=t.RecordingEvent=t.PublisherSpeakingEvent=t.ConnectionEvent=t.Event=t.VideoInsertMode=t.OpenViduError=t.LocalRecorderState=t.Filter=t.LocalRecorder=t.Connection=t.Stream=t.StreamManager=t.Subscriber=t.Publisher=t.Session=t.OpenVidu=void 0,i(t,n("PPcv"),"OpenVidu"),i(t,n("JTMn"),"Session"),i(t,n("PEz1"),"Publisher"),i(t,n("bk74"),"Subscriber"),i(t,n("P3vI"),"StreamManager"),i(t,n("DPKQ"),"Stream"),i(t,n("ryRr"),"Connection"),i(t,n("tInm"),"LocalRecorder"),i(t,n("74bm"),"Filter"),i(t,n("Yn0Z"),"LocalRecorderState"),i(t,n("Tt94"),"OpenViduError"),i(t,n("/dLB"),"VideoInsertMode"),i(t,n("hzOQ"),"Event"),i(t,n("8KVD"),"ConnectionEvent"),i(t,n("e8ps"),"PublisherSpeakingEvent"),i(t,n("rUL0"),"RecordingEvent"),i(t,n("ksJj"),"SessionDisconnectedEvent"),i(t,n("suHS"),"SignalEvent"),i(t,n("Te8r"),"StreamEvent"),i(t,n("HxXY"),"StreamManagerEvent"),i(t,n("oIG1"),"VideoElementEvent"),i(t,n("BwMD"),"StreamPropertyChangedEvent"),i(t,n("8b8G"),"ConnectionPropertyChangedEvent"),i(t,n("+ig+"),"FilterEvent"),i(t,n("BDvu"),"NetworkQualityLevelChangedEvent"),i(t,n("6cvo"),"ExceptionEvent"),i(t,n("Dztv"),"EventDispatcher")},Q1FS:function(e,t,n){"use strict";var i=n("yx2s"),r=n("Xwq/"),o=n("zfKp"),a=n("9AGB"),s=n("n3uD");function u(e){if(e||(e=s.config.Promise||Promise),!e)throw new Error("no Promise impl found");return e}t.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,o=r.toSubscriber(e,t,n);if(o.add(i?i.call(o,this.source):this.source||s.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),s.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),i.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=u(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=u(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}()},QSjB:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n("FlKs"),r=n("vqGb"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n("dlaP"),s=function(e){return new i.TokenState(e)},u=s(),c=s(),l=s(),h=s(),d=s(),f=s(),p=s(),v=s(r.URL),m=s(),g=s(r.URL),y=s(r.URL),b=s(),_=s(),k=s(),w=s(),S=s(),C=s(r.URL),E=s(r.URL),O=s(r.URL),x=s(r.URL),T=s(),M=s(),P=s(),I=s(),A=s(),R=s(),D=s(r.EMAIL),N=s(),L=s(r.EMAIL),V=s(r.MAILTOEMAIL),j=s(),F=s(),B=s(),U=s(),z=s(r.NL);u.on(a.NL,z).on(a.PROTOCOL,c).on(a.MAILTO,l).on(a.SLASH,h),c.on(a.SLASH,h),h.on(a.SLASH,d),u.on(a.TLD,f).on(a.DOMAIN,f).on(a.LOCALHOST,v).on(a.NUM,f),d.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),f.on(a.DOT,p),A.on(a.DOT,R),p.on(a.TLD,v).on(a.DOMAIN,f).on(a.NUM,f).on(a.LOCALHOST,f),R.on(a.TLD,D).on(a.DOMAIN,A).on(a.NUM,A).on(a.LOCALHOST,A),v.on(a.DOT,p),D.on(a.DOT,R),v.on(a.COLON,m).on(a.SLASH,y),m.on(a.NUM,g),g.on(a.SLASH,y),D.on(a.COLON,N),N.on(a.NUM,L);var W=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],H=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),_.on(a.CLOSEBRACE,y),k.on(a.CLOSEBRACKET,y),w.on(a.CLOSEANGLEBRACKET,y),S.on(a.CLOSEPAREN,y),C.on(a.CLOSEBRACE,y),E.on(a.CLOSEBRACKET,y),O.on(a.CLOSEANGLEBRACKET,y),x.on(a.CLOSEPAREN,y),T.on(a.CLOSEBRACE,y),M.on(a.CLOSEBRACKET,y),P.on(a.CLOSEANGLEBRACKET,y),I.on(a.CLOSEPAREN,y),_.on(W,C),k.on(W,E),w.on(W,O),S.on(W,x),_.on(H,T),k.on(H,M),w.on(H,P),S.on(H,I),C.on(W,C),E.on(W,E),O.on(W,O),x.on(W,x),C.on(H,C),E.on(H,E),O.on(H,O),x.on(H,x),T.on(W,C),M.on(W,E),P.on(W,O),I.on(W,x),T.on(H,T),M.on(H,M),P.on(H,P),I.on(H,I),y.on(W,y),b.on(W,y),y.on(H,b),b.on(H,b),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(W,V).on(H,j),j.on(W,V).on(H,j);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];f.on(G,F).on(a.AT,B),v.on(G,F).on(a.AT,B),p.on(G,F),F.on(G,F).on(a.AT,B).on(a.DOT,U),U.on(G,F),B.on(a.TLD,A).on(a.DOMAIN,A).on(a.LOCALHOST,D),t.State=i.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,i=[],o=[];n<t;){for(var a=u,s=null,c=null,l=0,h=null,d=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(c=s||a.next(e[n]));)s=null,(a=c).accepts()?(d=0,h=a):d>=0&&d++,n++,l++;if(d<0)for(var f=n-l;f<n;f++)o.push(e[f]);else{o.length>0&&(i.push(new r.TEXT(o)),o=[]),n-=d,l-=d;var p=h.emit();i.push(new p(e.slice(n-l,n)))}}return o.length>0&&i.push(new r.TEXT(o)),i},t.start=u},RvMX:function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},SYuc:function(e,t,n){var i=n("EDod");t.JsonRpcClient=i},SdlI:function(e,t,n){"use strict";var i;t.__esModule=!0,t.OpenViduLoggerConfiguration=void 0,(i=t.OpenViduLoggerConfiguration||(t.OpenViduLoggerConfiguration={})).disabled="disabled",i.debug="debug"},Te8r:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamEvent=void 0;var o=n("hzOQ"),a=n("PEz1"),s=n("JTMn"),u=n("9m68").OpenViduLogger.getInstance(),c=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.stream=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)u.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof a.Publisher){u.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t<e.length;t++)if(e[t]===this.target){e.splice(t,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var n=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(n&&n.remoteOptions){var i=n.remoteOptions.streams;for(t=i.length-1;t>=0;--t)i[t].id===this.stream.streamId&&i.splice(t,1)}}},t}(o.Event);t.StreamEvent=c},Tt94:function(e,t,n){"use strict";var i;t.__esModule=!0,t.OpenViduError=t.OpenViduErrorName=void 0,(i=t.OpenViduErrorName||(t.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",i.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",i.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",i.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",i.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",i.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",i.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",i.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",i.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",i.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",i.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",i.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",i.GENERIC_ERROR="GENERIC_ERROR",t.OpenViduError=function(e,t){this.name=e,this.message=t}},VKeD:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}t.getSymbolIterator=i,t.iterator=i(),t.$$iterator=t.iterator},"Xwq/":function(e,t,n){"use strict";var i=n("FWf1"),r=n("p//D"),o=n("GiSu");t.toSubscriber=function(e,t,n){if(e){if(e instanceof i.Subscriber)return e;if(e[r.rxSubscriber])return e[r.rxSubscriber]()}return e||t||n?new i.Subscriber(e,t,n):new i.Subscriber(o.empty)}},Yn0Z:function(e,t,n){"use strict";var i;t.__esModule=!0,t.LocalRecorderState=void 0,(i=t.LocalRecorderState||(t.LocalRecorderState={})).READY="READY",i.RECORDING="RECORDING",i.PAUSED="PAUSED",i.FINISHED="FINISHED"},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z5tI:function(e,t,n){"use strict";var i=n("MkmW");t.subscribeToPromise=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.hostReportError),t}}},aMtt:function(e,t,n){var i,r=n("p7Ng");"undefined"!=typeof window&&(i=window.AudioContext||window.webkitAudioContext);var o=null;e.exports=function(e,t){var n=new r;if(!i)return n;var a,s,u,c=(t=t||{}).smoothing||.1,l=t.interval||50,h=t.threshold,d=t.play,f=t.history||10,p=!0;o=t.audioContext||o||new i,(u=o.createAnalyser()).fftSize=512,u.smoothingTimeConstant=c,s=new Float32Array(u.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(a=o.createMediaElementSource(e),void 0===d&&(d=!0),h=h||-50):(a=o.createMediaStreamSource(e),h=h||-50),a.connect(u),d&&u.connect(o.destination),n.speaking=!1,n.suspend=function(){return o.suspend()},n.resume=function(){return o.resume()},Object.defineProperty(n,"state",{get:function(){return o.state}}),o.onstatechange=function(){n.emit("state_change",o.state)},n.setThreshold=function(e){h=e},n.setInterval=function(e){l=e},n.stop=function(){p=!1,n.emit("volume_change",-100,h),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),u.disconnect(),a.disconnect()},n.speakingHistory=[];for(var v=0;v<f;v++)n.speakingHistory.push(0);return function e(){setTimeout(function(){if(p){var t=function(e,t){var n=-1/0;e.getFloatFrequencyData(t);for(var i=4,r=t.length;i<r;i++)t[i]>n&&t[i]<0&&(n=t[i]);return n}(u,s);n.emit("volume_change",t,h);var i=0;if(t>h&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];i>=2&&(n.speaking=!0,n.emit("speaking"))}else if(t<h&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];0==i&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(t>h)),e()}},l)}(),n}},bk74:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.Subscriber=void 0;var o=n("P3vI"),a=n("9m68").OpenViduLogger.getInstance(),s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.element=r.targetElement,r.stream=t,r.properties=i,r}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),this.stream.audioActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),this.stream.videoActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(o.StreamManager);t.Subscriber=s},cUzU:function(e,t,n){"use strict";var i=n("9m68").OpenViduLogger.getInstance();e.exports=function(e){var t,n=!1,r=e.uri,o=!1,a=new WebSocket(r);a.onopen=function(){i.debug("WebSocket connected to "+r),e.onconnected&&e.onconnected()},a.onerror=function(t){i.error("Could not connect to "+r+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var s=function(){3===a.readyState?n?i.debug("Connection closed by user"):e.ismasternodecrashed()?i.error("Master Node has crashed. Stopping reconnection process"):(i.debug("Connection closed unexpectedly. Reconnecting..."),u(2e3,1)):i.debug("Close callback from previous websocket. Ignoring it")};function u(n,c){if(i.debug("reconnect (attempt #"+c+", max="+n+")"),1===c){if(o)return void i.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");o=!0,e.onreconnecting&&e.onreconnecting()}!function(n,c){i.debug("Reconnection attempt #"+c),a.close(),(a=new WebSocket(r)).onopen=function(){i.debug("Reconnected to "+r+" after "+c+" attempts..."),o=!1,t(),e.onreconnected()&&e.onreconnected(),a.onclose=s},a.onerror=function(t){i.warn("Reconnection error: ",t),c===n?e.ondisconnect&&e.ondisconnect():setTimeout(function(){u(n,c+1)},3e3)}}(n,c)}a.onclose=s,this.close=function(){n=!0,a.close()},this.reconnectWs=function(){i.debug("reconnectWs"),u(2e3,1)},this.send=function(e){a.send(e)},this.addEventListener=function(e,n){(t=function(){a.addEventListener(e,n)})()},this.getReadyState=function(){return a.readyState}}},de4E:function(e,t){t.pack=function(e,t){var n={jsonrpc:"2.0"};if(e.method)n.method=e.method,e.params&&(n.params=e.params),null!=t&&(n.id=t);else if(null!=t){if(e.error){if(void 0!==e.result)throw new TypeError("Both result and error are defined");n.error=e.error}else{if(void 0===e.result)throw new TypeError("No result or error is defined");n.result=e.result}n.id=t}return JSON.stringify(n)},t.unpack=function(e){var t=e;("string"==typeof e||e instanceof String)&&(t=JSON.parse(e));var n=t.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+e);if(null==t.method){if(null==t.id)throw new TypeError("Invalid message: "+e);var i=void 0!==t.result,r=void 0!==t.error;if(i&&r)throw new TypeError("Both result and error are defined: "+e);if(!i&&!r)throw new TypeError("No result or error is defined: "+e);t.ack=t.id,delete t.id}return t}},dlaP:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=(0,i.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var s=a(),u=a("@"),c=a(":"),l=a("."),h=a(),d=a(),f=a("\n"),p=a(),v=a("+"),m=a("#"),g=a(),y=a("mailto:"),b=a("?"),_=a("/"),k=a("_"),w=a(),S=a(),C=a(),E=a("{"),O=a("["),x=a("<"),T=a("("),M=a("}"),P=a("]"),I=a(">"),A=a(")"),R=a("&");t.Base=o,t.DOMAIN=s,t.AT=u,t.COLON=c,t.DOT=l,t.PUNCTUATION=h,t.LOCALHOST=d,t.NL=f,t.NUM=p,t.PLUS=v,t.POUND=m,t.QUERY=b,t.PROTOCOL=g,t.MAILTO=y,t.SLASH=_,t.UNDERSCORE=k,t.SYM=w,t.TLD=S,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=O,t.OPENANGLEBRACKET=x,t.OPENPAREN=T,t.CLOSEBRACE=M,t.CLOSEBRACKET=P,t.CLOSEANGLEBRACKET=I,t.CLOSEPAREN=A,t.AMPERSAND=R},ds6q:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("Q1FS"),o=n("FWf1"),a=n("zB/H"),s=n("Mxlh"),u=n("FiyT"),c=n("p//D"),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(e.complete(),a.Subscription.EMPTY):(this.observers.push(e),new u.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.Observable);t.Subject=h;var d=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.Subscription.EMPTY},t}(h);t.AnonymousSubject=d},e8ps:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.PublisherSpeakingEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=i,o.streamId=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.PublisherSpeakingEvent=o},ee8k:function(e,t,n){var i=n("cUzU");t.WebSocketWithReconnection=i},gUCu:function(e,t){function n(){var e={};this.forEach=function(t){for(var n in e){var i=e[n];for(var r in i)t(i[r])}},this.get=function(t,n){var i=e[n];if(null!=i)return i[t]},this.remove=function(t,n){var i=e[n];if(null!=i){for(var r in delete i[t],i)return!1;delete e[n]}},this.set=function(t,n,i){if(null==t)return this.remove(n,i);var r=e[i];null==r&&(e[i]=r={}),r[n]=t}}n.prototype.pop=function(e,t){var n=this.get(e,t);if(null!=n)return this.remove(e,t),n},e.exports=n},hzOQ:function(e,t,n){"use strict";t.__esModule=!0,t.Event=void 0;var i=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}();t.Event=i},kiQV:function(e){e.exports=JSON.parse('{"dependencies":{"@angular/animations":"11.1.1","@angular/cdk":"11.0.0","@angular/common":"11.1.1","@angular/compiler":"11.1.1","@angular/core":"11.1.1","@angular/elements":"11.1.1","@angular/flex-layout":"11.0.0-beta.33","@angular/forms":"11.1.1","@angular/material":"11.1.1","@angular/platform-browser":"11.1.1","@angular/platform-browser-dynamic":"11.1.1","@angular/router":"11.1.1","core-js":"3.8.3","linkifyjs":"2.1.9","openvidu-browser":"2.18.0","rxjs":"6.6.3","unique-names-generator":"4.3.1","zone.js":"0.11.3"},"devDependencies":{"@angular-devkit/build-angular":"0.1101.2","@angular-devkit/build-ng-packagr":"0.1002.0","@angular/cli":"11.1.2","@angular/compiler-cli":"11.1.1","@angular/language-service":"11.1.1","@types/jasmine":"3.6.3","@types/jasminewd2":"2.0.8","@types/linkifyjs":"2.1.3","@types/node":"14.14.22","@webcomponents/webcomponentsjs":"2.4.4","codelyzer":"6.0.1","concat":"1.0.3","document-register-element":"1.14.6","elements-zone-strategy":"10.0.0","fs-extra":"9.0.1","jasmine-core":"3.6.0","jasmine-spec-reporter":"6.0.0","karma":"5.2.2","karma-chrome-launcher":"3.1.0","karma-coverage-istanbul-reporter":"3.0.3","karma-jasmine":"4.0.1","karma-jasmine-html-reporter":"1.5.4","karma-junit-reporter":"2.0.1","karma-mocha-reporter":"2.2.5","karma-notify-reporter":"1.2.0","ng-packagr":"10.1.0","protractor":"7.0.0","ts-node":"9.0.0","tslib":"2.0.1","tslint":"6.1.3","typedoc":"0.19.2","typescript":"4.0.5"},"name":"openvidu-call","private":true,"scripts":{"build":"./node_modules/@angular/cli/bin/ng build && npm run copy:backend","build-prod":"func() { ./node_modules/@angular/cli/bin/ng build --prod --base-href=\\"${1:-/}\\" && npm run copy:backend-prod; }; func","build-win:openvidu-angular":"node .\\\\openvidu-angular-build.js && node .\\\\node_modules\\\\@angular\\\\cli\\\\bin\\\\ng build openvidu-angular --prod","build-win:openvidu-webcomponent":"node .\\\\openvidu-webcomponent-prepare.js && node .\\\\node_modules\\\\@angular\\\\cli\\\\bin\\\\ng build --prod --output-hashing none && node .\\\\openvidu-webcomponent-build.js","build:openvidu-angular":"node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod","build:openvidu-webcomponent":"node ./openvidu-webcomponent-prepare.js && ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none && node ./openvidu-webcomponent-build.js","copy:backend":"cp -a dist/openvidu-call/. ../openvidu-call-back/public/","copy:backend-prod":"mkdir -p ../openvidu-call-back/dist/public && cp -a dist/openvidu-call/. ../openvidu-call-back/dist/public/","e2e":"ng e2e","lint":"ng lint","pack:openvidu-angular":"cd dist/openvidu-angular && npm pack","start":"ng serve","start:https":"ng serve --host 192.168.1.161 --ssl --ssl-key cert.key --ssl-cert cert.crt","test":"ng test openvidu-call --watch=false --code-coverage"},"version":"2.18.0"}')},ksJj:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.SessionDisconnectedEvent=void 0;var o=n("hzOQ"),a=n("9m68").OpenViduLogger.getInstance(),s=function(e){function t(t,n){var i=e.call(this,!0,t,"sessionDisconnected")||this;return i.reason=n,i}return r(t,e),t.prototype.callDefaultBehavior=function(){a.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;e.remoteConnections.forEach(function(t){var n,i,r,o,a,s,u,c,l=t.connectionId;if(null===(n=e.remoteConnections.get(l))||void 0===n?void 0:n.stream){null===(i=e.remoteConnections.get(l))||void 0===i||i.stream.disposeWebRtcPeer(),null===(r=e.remoteConnections.get(l))||void 0===r||r.stream.disposeMediaStream(),(null===(o=e.remoteConnections.get(l))||void 0===o?void 0:o.stream.streamManager)&&(null===(a=e.remoteConnections.get(l))||void 0===a||a.stream.streamManager.removeAllVideos());var h=null===(u=null===(s=e.remoteConnections.get(l))||void 0===s?void 0:s.stream)||void 0===u?void 0:u.streamId;h&&e.remoteStreamsCreated.delete(h),null===(c=e.remoteConnections.get(l))||void 0===c||c.dispose()}e.remoteConnections.delete(l)})},t}(o.Event);t.SessionDisconnectedEvent=s},mbIT:function(e,t,n){"use strict";t.isArray=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},mgp7:function(e,t,n){e.exports=n("/u9M").default},n3uD:function(e,t,n){"use strict";var i=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},oIG1:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.VideoElementEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,n,i)||this;return r.element=t,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.VideoElementEvent=o},ohuM:function(e,t){var n=["stun:","turn:"];e.exports=function(e){var t,i,r=(e||{}).url||e,o={};return"string"==typeof r||r instanceof String?(r=r.trim(),(t=n[n.indexOf(r.slice(0,5))])?(i=(r=r.slice(5)).split("@"),o.username=e.username,o.credential=e.credential,i.length>1&&(r=i[1],i=i[0].split(":"),o.username=i[0],o.credential=(e||{}).credential||i[1]||""),o.url=t+r,o.urls=[o.url],o):e):e}},ozli:function(e,t,n){"use strict";var i=n("zfKp");t.subscribeToObservable=function(e){return function(t){var n=e[i.observable]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},"p//D":function(e,t,n){"use strict";t.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),t.$$rxSubscriber=t.rxSubscriber},p7Ng:function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var i=3===arguments.length,r=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];return o._groupName=r,(this.callbacks[e]=this.callbacks[e]||[]).push(o),this},t.once=function(e,t,n){var i=this,r=3===arguments.length,o=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];function s(){i.off(e,s),a.apply(this,arguments)}return this.on(e,o,s),this},t.releaseGroup=function(e){var t,n,i,r;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,i=(r=this.callbacks[t]).length;n<i;n++)r[n]._groupName===e&&(r.splice(n,1),n--,i--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,i=this.callbacks[e];return i?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=i.indexOf(t))&&(i.splice(n,1),0===i.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,i,r=[].slice.call(arguments,1),o=this.callbacks[e],a=this.getWildcardCallbacks(e);if(o)for(t=0,n=(i=o.slice()).length;t<n&&i[t];++t)i[t].apply(this,r);if(a)for(n=a.length,t=0,n=(i=a.slice()).length;t<n&&i[t];++t)i[t].apply(this,[e].concat(r));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,i=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(i=i.concat(this.callbacks[t]));return i}},n.mixin(n)},pLL0:function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},poJ0:function(e,t,n){"use strict";var i=n("VKeD");t.subscribeToIterable=function(e){return function(t){for(var n=e[i.iterator]();;){var r=void 0;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}},pshJ:function(e,t,n){"use strict";t.isFunction=function(e){return"function"==typeof e}},rNzc:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");t.catchError=function(e){return function(t){var n=new o(e),i=t.lift(n);return n.caught=i}};var o=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.selector,this.caught))},e}(),a=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(a){return void e.prototype.error.call(this,a)}this._unsubscribeAndRecycle();var i=new r.SimpleInnerSubscriber(this);this.add(i);var o=r.innerSubscribe(n,i);o!==i&&this.add(o)}},t}(r.SimpleOuterSubscriber)},rUL0:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.RecordingEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,n)||this;return a.id=i,r!==i&&(a.name=r),a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.RecordingEvent=o},ryRr:function(e,t,n){"use strict";t.__esModule=!0,t.Connection=void 0;var i=n("DPKQ"),r=n("9m68"),o=n("6cvo"),a=r.OpenViduLogger.getInstance(),s=function(){function e(e,t){this.session=e,this.disposed=!1;var n="'Connection' created ";t.role?(this.localOptions=t,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,n+="(local)"):(this.remoteOptions=t,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),n+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),a.info(n)}return e.prototype.sendIceCandidate=function(e){var t=this;a.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,e),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex},function(e,n){e&&(a.error("Error sending ICE candidate: "+JSON.stringify(e)),t.session.emitEvent("exception",[new o.ExceptionEvent(t.session,o.ExceptionEventName.ICE_CANDIDATE_ERROR,t.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",e)]))})},e.prototype.initRemoteStreams=function(e){var t=this;e.forEach(function(e){var n={id:e.id,createdAt:e.createdAt,connection:t,hasAudio:e.hasAudio,hasVideo:e.hasVideo,audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:e.typeOfVideo,frameRate:e.frameRate,videoDimensions:e.videoDimensions?JSON.parse(e.videoDimensions):void 0,filter:e.filter?e.filter:void 0},r=new i.Stream(t.session,n);t.addStream(r)}),a.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},e.prototype.addStream=function(e){e.connection=this,this.stream=e},e.prototype.removeStream=function(e){delete this.stream},e.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},e}();t.Connection=s},suHS:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.SignalEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"signal")||this;return n&&(o.type="signal:"+n),o.data=i,o.from=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.SignalEvent=o},"t/6/":function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n("FlKs"),r=n("dlaP"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),c=[" ","\f","\r","\t","\v","\xa0","\u1680","\u180e"],l=[],h=function(e){return new i.CharacterState(e)},d=h(),f=h(r.NUM),p=h(r.DOMAIN),v=h(),m=h(r.WS);d.on("@",h(r.AT)).on(".",h(r.DOT)).on("+",h(r.PLUS)).on("#",h(r.POUND)).on("?",h(r.QUERY)).on("/",h(r.SLASH)).on("_",h(r.UNDERSCORE)).on(":",h(r.COLON)).on("{",h(r.OPENBRACE)).on("[",h(r.OPENBRACKET)).on("<",h(r.OPENANGLEBRACKET)).on("(",h(r.OPENPAREN)).on("}",h(r.CLOSEBRACE)).on("]",h(r.CLOSEBRACKET)).on(">",h(r.CLOSEANGLEBRACKET)).on(")",h(r.CLOSEPAREN)).on("&",h(r.AMPERSAND)).on([",",";","!",'"',"'"],h(r.PUNCTUATION)),d.on("\n",h(r.NL)).on(c,m),m.on(c,m);for(var g=0;g<a.length;g++){var y=(0,i.stateify)(a[g],d,r.TLD,r.DOMAIN);l.push.apply(l,y)}var b=(0,i.stateify)("file",d,r.DOMAIN,r.DOMAIN),_=(0,i.stateify)("ftp",d,r.DOMAIN,r.DOMAIN),k=(0,i.stateify)("http",d,r.DOMAIN,r.DOMAIN),w=(0,i.stateify)("mailto",d,r.DOMAIN,r.DOMAIN);l.push.apply(l,b),l.push.apply(l,_),l.push.apply(l,k),l.push.apply(l,w);var S=b.pop(),C=_.pop(),E=k.pop(),O=w.pop(),x=h(r.DOMAIN),T=h(r.PROTOCOL),M=h(r.MAILTO);C.on("s",x).on(":",T),E.on("s",x).on(":",T),l.push(x),S.on(":",T),x.on(":",T),O.on(":",M);var P=(0,i.stateify)("localhost",d,r.LOCALHOST,r.DOMAIN);l.push.apply(l,P),d.on(s,f),f.on("-",v).on(s,f).on(u,p),p.on("-",v).on(u,p);for(var I=0;I<l.length;I++)l[I].on("-",v).on(u,p);v.on("-",v).on(s,p).on(u,p),d.defaultTransition=h(r.SYM);var A=d;t.State=i.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,function(e){return e.toLowerCase()}),n=e.length,i=[],r=0;r<n;){for(var o=d,a=null,s=0,u=null,c=-1;r<n&&(a=o.next(t[r]));)(o=a).accepts()?(c=0,u=o):c>=0&&c++,s++,r++;if(!(c<0)){r-=c,s-=c;var l=u.emit();i.push(new l(e.substr(r-s,s)))}}return i},t.start=A},tInm:function(e,t,n){"use strict";t.__esModule=!0,t.LocalRecorder=void 0;var i,r=n("Yn0Z"),o=n("9m68"),a=n("4jfU"),s=o.OpenViduLogger.getInstance(),u=function(){function e(e){this.stream=e,this.chunks=[],i=a.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=r.LocalRecorderState.READY}return e.prototype.record=function(e){var t=this;return new Promise(function(n,i){try{if("undefined"==typeof MediaRecorder)throw s.error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder");if(t.state!==r.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+t.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");s.log("Starting local recording of stream '"+t.stream.streamId+"' of connection '"+t.connectionId+"'");var o={};"function"==typeof MediaRecorder.isTypeSupported?e?(MediaRecorder.isTypeSupported(e)||i(new Error('mimeType "'+e+'" is not supported')),o={mimeType:e}):s.log("No mimeType parameter provided. Using default codecs"):s.warn("MediaRecorder#isTypeSupported is not supported. Using default codecs"),t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream(),o),t.mediaRecorder.start(10)}catch(a){i(a)}t.mediaRecorder.ondataavailable=function(e){t.chunks.push(e.data)},t.mediaRecorder.onerror=function(e){s.error("MediaRecorder error: ",e)},t.mediaRecorder.onstart=function(){s.log("MediaRecorder started (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onstop=function(){t.onStopDefault()},t.mediaRecorder.onpause=function(){s.log("MediaRecorder paused (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onresume=function(){s.log("MediaRecorder resumed (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onwarning=function(e){s.log("MediaRecorder warning: "+e)},t.state=r.LocalRecorderState.RECORDING,n()})},e.prototype.stop=function(){var e=this;return new Promise(function(t,n){try{if(e.state===r.LocalRecorderState.READY||e.state===r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' before");e.mediaRecorder.onstop=function(){e.onStopDefault(),t()},e.mediaRecorder.stop()}catch(i){n(i)}})},e.prototype.pause=function(){var e=this;return new Promise(function(t,n){try{e.state!==r.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),e.mediaRecorder.pause(),e.state=r.LocalRecorderState.PAUSED,t()}catch(i){n(i)}})},e.prototype.resume=function(){var e=this;return new Promise(function(t,n){try{if(e.state!==r.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.pause()' before");e.mediaRecorder.resume(),e.state=r.LocalRecorderState.RECORDING,t()}catch(i){n(i)}})},e.prototype.preview=function(e){if(this.state!==r.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,i.isSafariBrowser()&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof e){var t=document.getElementById(e);t&&(this.videoPreview=t.appendChild(this.videoPreview))}else this.videoPreview=e.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},e.prototype.clean=function(){var e=this,t=function(){delete e.blob,e.chunks=[],delete e.mediaRecorder,e.state=r.LocalRecorderState.READY};this.state===r.LocalRecorderState.RECORDING||this.state===r.LocalRecorderState.PAUSED?this.stop().then(function(){return t()}).catch(function(){return t()}):t()},e.prototype.download=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var e=document.createElement("a");e.style.display="none",document.body.appendChild(e);var t=window.URL.createObjectURL(this.blob);e.href=t,e.download=this.id+".webm",e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)},e.prototype.getBlob=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},e.prototype.uploadAsBinary=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var s=0,u=Object.keys(t);s<u.length;s++){var c=u[s];a.setRequestHeader(c,t[c])}a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status))},a.send(n.blob)}})},e.prototype.uploadAsMultipartfile=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var s=0,u=Object.keys(t);s<u.length;s++){var c=u[s];a.setRequestHeader(c,t[c])}var l=new FormData;l.append("file",n.blob,n.id+".webm"),a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status))},a.send(l)}})},e.prototype.onStopDefault=function(){s.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:"video/webm"}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=r.LocalRecorderState.FINISHED},e}();t.LocalRecorder=u},vLqr:function(e,t,n){"use strict";var i=n("Q1FS");function r(e){e.subscriber.error(e.error)}t.throwError=function(e,t){return new i.Observable(t?function(n){return t.schedule(r,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}},vqFl:function(e){e.exports=JSON.parse('{"_from":"openvidu-browser@2.18.0","_id":"openvidu-browser@2.18.0","_inBundle":false,"_integrity":"sha512-a9HPAG8p2vG9XGThPUbZWPI5sO1OFmrxKQdCZM3RLmasXQa2Lwj7X1Aicsznb7RtDBg/lD8NdNwAQjm4ZDt2Nw==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.18.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.18.0","saveSpec":null,"fetchSpec":"2.18.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.18.0.tgz","_shasum":"594eae4471123c37bc384d5cb025de1d683ea639","_spec":"openvidu-browser@2.18.0","_where":"/opt/openvidu-call-front","author":{"name":"OpenVidu"},"bugs":{"url":"https://github.com/OpenVidu/openvidu/issues"},"bundleDependencies":false,"dependencies":{"freeice":"2.2.2","hark":"1.2.3","jsnlog":"2.30.0","platform":"1.3.6","uuid":"8.3.2","wolfy87-eventemitter":"5.2.9"},"deprecated":false,"description":"OpenVidu Browser","devDependencies":{"@types/node":"14.14.32","@types/platform":"1.3.3","browserify":"17.0.0","grunt":"1.3.0","grunt-cli":"1.3.2","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.0.0","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.1","grunt-ts":"6.0.0-beta.22","terser":"5.6.0","tsify":"5.0.2","tslint":"6.1.3","typedoc":"0.19.2","typescript":"4.0.7"},"homepage":"https://github.com/OpenVidu/openvidu#readme","license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu.git"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --lib dom,es5,es2015.promise,scripthost","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","version":"2.18.0"}')},vqGb:function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=n("dlaP");function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,i.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0}),c=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"text"}),h=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"nl"}),d=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,i=this.v,r=[],s=0;i[s]instanceof o.PROTOCOL;)t=!0,r.push(i[s].toString().toLowerCase()),s++;for(;i[s]instanceof o.SLASH;)n=!0,r.push(i[s].toString()),s++;for(;a(i[s]);)r.push(i[s].toString().toLowerCase()),s++;for(;s<i.length;s++)r.push(i[s].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=u,t.EMAIL=c,t.NL=h,t.TEXT=l,t.URL=d},wJ6L:function(e){e.exports=JSON.parse("[]")},wjEo:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("Q1FS"),a=n("6qA3"),s=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(r.Subscriber);t.SimpleInnerSubscriber=s;var u=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r.Subscriber);t.ComplexInnerSubscriber=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(r.Subscriber);t.SimpleOuterSubscriber=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,n,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r.Subscriber);t.ComplexOuterSubscriber=l,t.innerSubscribe=function(e,t){if(!t.closed)return e instanceof o.Observable?e.subscribe(t):a.subscribeTo(e)(t)}},yRPT:function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},yoF8:function(e,t,n){"use strict";t.identity=function(e){return e}},yx2s:function(e,t,n){"use strict";var i=n("FWf1");t.canReportError=function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.Subscriber?t:null}return!0}},"zB/H":function(e,t,n){"use strict";var i=n("mbIT"),r=n("GMZp"),o=n("pshJ"),a=n("LBXl");function s(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,u=n._parentOrParents,c=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof e)u.remove(this);else if(null!==u)for(var d=0;d<u.length;++d)u[d].remove(this);if(o.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(v){t=v instanceof a.UnsubscriptionError?s(v.errors):[v]}}if(i.isArray(h)){d=-1;for(var f=h.length;++d<f;){var p=h[d];if(r.isObject(p))try{p.unsubscribe()}catch(v){t=t||[],v instanceof a.UnsubscriptionError?t=t.concat(s(v.errors)):t.push(v)}}}if(t)throw new a.UnsubscriptionError(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}()},zUnb:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?d(e):t}function p(e){var t=l();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(e){if(Array.isArray(e))return e}function b(){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 _(e,t){return y(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||m(e,t)||b()}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function S(e){return y(e)||w(e)||m(e)||b()}function C(e){return function(e){if(Array.isArray(e))return v(e)}(e)||w(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t,n){return(E=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&u(r,n.prototype),r}).apply(null,arguments)}function O(e){var t="function"==typeof Map?new Map:void 0;return(O=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return E(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}n.r(t);var x=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function T(e){return null!==e&&"object"==typeof e}function M(e){return"function"==typeof e}var P=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),I=function(){var e=function(){function e(t){o(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return s(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(M(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(l){t=l instanceof P?A(l.errors):[l]}}if(x(o))for(var s=-1,u=o.length;++s<u;){var c=o[s];if(T(c))try{c.unsubscribe()}catch(l){t=t||[],l instanceof P?t=t.concat(A(l.errors)):t.push(l)}}if(t)throw new P(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function A(e){return e.reduce(function(e,t){return e.concat(t instanceof P?t.errors:t)},[])}var R=!1,D={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else R&&console.log("RxJS: Back to a better error behavior. Thank you. <3");R=e},get useDeprecatedSynchronousErrorHandling(){return R}};function N(e){setTimeout(function(){throw e},0)}var L={closed:!0,next:function(e){},error:function(e){if(D.useDeprecatedSynchronousErrorHandling)throw e;N(e)},complete:function(){}},V=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),j=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;switch(o(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=L;break;case 1:if(!e){a.destination=L;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(d(a))):(a.syncErrorThrowable=!0,a.destination=new F(d(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new F(d(a),e,i,r)}return a}return s(n,[{key:V,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,r(i(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(I),F=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s,u;o(this,n),(s=t.call(this))._parentSubscriber=e;var c=d(s);return M(i)?u=i:i&&(u=i.next,r=i.error,a=i.complete,i!==L&&(M((c=Object.create(i)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(d(s)))),s._context=c,s._next=u,s._error=r,s._complete=a,s}return s(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;D.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=D.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):N(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;N(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};D.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),D.useDeprecatedSynchronousErrorHandling)throw n;N(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!D.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return D.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(N(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(j),B=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function U(e){return e}function z(e){return 0===e.length?U:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var W=function(){var e=function(){function e(t){o(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return s(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof j)return e;if(e[V])return e[V]()}return e||t||n?new j(e,t,n):new j(L)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||D.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),D.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){D.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof j?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=H(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:B,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:z(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=H(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function H(e){if(e||(e=D.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var G=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),q=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return s(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(I),Z=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e)).destination=e,i}return n}(j),Q=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return s(n,[{key:V,value:function(){return new Z(this)}},{key:"lift",value:function(e){var t=new Y(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new G;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new G;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new G;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new G;return r(i(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new G;return this.hasError?(e.error(this.thrownError),I.EMPTY):this.isStopped?(e.complete(),I.EMPTY):(this.observers.push(e),new q(this,e))}},{key:"asObservable",value:function(){var e=new W;return e.source=this,e}}]),n}(W);return e.create=function(e,t){return new Y(e,t)},e}(),Y=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).destination=e,r.source=i,r}return s(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):I.EMPTY}}]),n}(Q);function K(e){return e&&"function"==typeof e.schedule}function J(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){o(this,e),this.project=t,this.thisArg=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||d(a),a}return s(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(j),ee=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};function te(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var ne=te(),ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function re(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var oe=function(e){if(e&&"function"==typeof e[B])return i=e,function(e){var t=i[B]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(ie(e))return ee(e);if(re(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,N),e};if(e&&"function"==typeof e[ne])return t=e,function(e){for(var n=t[ne]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=T(e)?"an invalid object":"'".concat(e,"'"),o="You provided ".concat(r," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(o)};function ae(e,t){return new W(function(n){var i=new I,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function se(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[B]}(e))return function(e,t){return new W(function(n){var i=new I;return i.add(t.schedule(function(){var r=e[B]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(re(e))return function(e,t){return new W(function(n){var i=new I;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(ie(e))return ae(e,t);if(function(e){return e&&"function"==typeof e[ne]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new W(function(n){var i,r=new I;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[ne](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof W?e:new W(oe(e))}var ue=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).parent=e,i}return s(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(j),ce=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(j);function le(e,t){if(!t.closed)return e instanceof W?e.subscribe(t):oe(e)(t)}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(he(function(n,i){return se(e(n,i)).pipe(J(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new de(e,n))})}var de=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;o(this,e),this.project=t,this.concurrent=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new fe(e,this.project,this.concurrent))}}]),e}(),fe=function(e){c(n,e);var t=p(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return o(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return s(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new ue(this),n=this.destination;n.add(t);var i=le(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ce);function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return he(U,e)}function ve(e,t){return t?ae(e,t):new W(ee(e))}function me(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=i[i.length-1];return K(o)?(t=i.pop(),i.length>1&&"number"==typeof i[i.length-1]&&(e=i.pop())):"number"==typeof o&&(e=i.pop()),null===t&&1===i.length&&i[0]instanceof W?i[0]:pe(e)(ve(i,t))}function ge(){return function(e){return e.lift(new ye(e))}}var ye=function(){function e(t){o(this,e),this.connectable=t}return s(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new be(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),be=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).connectable=i,r}return s(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(j),_e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return s(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new I).add(this.source.subscribe(new we(this.getSubject(),this))),e.closed&&(this._connection=null,e=I.EMPTY)),e}},{key:"refCount",value:function(){return ge()(this)}}]),n}(W),ke=function(){var e=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),we=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).connectable=i,r}return s(n,[{key:"_error",value:function(e){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(Z);function Se(){return new Q}function Ce(){return function(e){return ge()((t=Se,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,ke);return i.source=e,i.subjectFactory=n,i})(e));var t}}function Ee(e){for(var t in e)if(e[t]===Ee)return t;throw Error("Could not find renamed property on target object.")}function Oe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Me=Ee({__forward_ref__:Ee});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return xe(this())},e}function Ie(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(Me)&&e.__forward_ref__===Pe}function Re(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function De(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Ne(e){return Le(e,Fe)||Le(e,Ue)}function Le(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ve(e){return e&&(e.hasOwnProperty(Be)||e.hasOwnProperty(ze))?e[Be]:null}var je,Fe=Ee({"\u0275prov":Ee}),Be=Ee({"\u0275inj":Ee}),Ue=Ee({ngInjectableDef:Ee}),ze=Ee({ngInjectorDef:Ee}),We=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function He(){return je}function Ge(e){var t=je;return je=e,t}function qe(e,t,n){var i=Ne(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&We.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(xe(e),"]"))}function Ze(e){return{toString:e}.toString()}var Qe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ye=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ke="undefined"!=typeof globalThis&&globalThis,Je="undefined"!=typeof window&&window,Xe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$e="undefined"!=typeof global&&global,et=Ke||$e||Je||Xe,tt={},nt=[],it=Ee({"\u0275cmp":Ee}),rt=Ee({"\u0275dir":Ee}),ot=Ee({"\u0275pipe":Ee}),at=Ee({"\u0275mod":Ee}),st=Ee({"\u0275loc":Ee}),ut=Ee({"\u0275fac":Ee}),ct=Ee({__NG_ELEMENT_ID__:Ee}),lt=0;function ht(e){return Ze(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===Qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ye.Emulated,id:"c",styles:e.styles||nt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=lt++,n.inputs=mt(e.inputs,t),n.outputs=mt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(dt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(ft)}:null,n})}function dt(e){return bt(e)||function(e){return e[rt]||null}(e)}function ft(e){return function(e){return e[ot]||null}(e)}var pt={};function vt(e){var t={type:e.type,bootstrap:e.bootstrap||nt,declarations:e.declarations||nt,imports:e.imports||nt,exports:e.exports||nt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ze(function(){pt[e.id]=e.type}),t}function mt(e,t){if(null==e)return tt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var gt=ht;function yt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function bt(e){return e[it]||null}function _t(e,t){var n=e[at]||null;if(!n&&!0===t)throw new Error("Type ".concat(xe(e)," does not have '\u0275mod' property."));return n}var kt=20,wt=10;function St(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ct(e){return Array.isArray(e)&&!0===e[1]}function Et(e){return 0!=(8&e.flags)}function Ot(e){return 2==(2&e.flags)}function xt(e){return 1==(1&e.flags)}function Tt(e){return null!==e.template}function Mt(e,t){return e.hasOwnProperty(ut)?e[ut]:null}var Pt=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,i))).code=e,r}return n}(O(Error));function It(e){return"string"==typeof e?e:null==e?"":String(e)}function At(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():It(e)}function Rt(e,t){var n=t?" in ".concat(t):"";throw new Pt("201","No provider for ".concat(At(e)," found").concat(n))}var Dt=function(){function e(t,n,i){o(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return s(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Nt(){return Lt}function Lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=jt),Vt}function Vt(){var e=Ft(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===tt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function jt(e,t,n,i){var r=Ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:tt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Dt(u&&u.currentValue,t,a===tt),e[i]=t}function Ft(e){return e.__ngSimpleChanges__||null}Nt.ngInherit=!0;var Bt=void 0;function Ut(){return void 0!==Bt?Bt:"undefined"!=typeof document?document:void 0}function zt(e){return!!e.listen}var Wt={createRenderer:function(e,t){return Ut()}};function Ht(e){for(;Array.isArray(e);)e=e[0];return e}function Gt(e,t){return Ht(t[e])}function qt(e,t){return Ht(t[e.index])}function Zt(e,t){return e.data[t]}function Qt(e,t){return e[t]}function Yt(e,t){var n=t[e];return St(n)?n:n[0]}function Kt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Jt(e){return 4==(4&e[2])}function Xt(e){return 128==(128&e[2])}function $t(e,t){return null==t?null:e[t]}function en(e){e[18]=0}function tn(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var nn={lFrame:On(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rn(){return nn.bindingsEnabled}function on(){return nn.lFrame.lView}function an(){return nn.lFrame.tView}function sn(e){nn.lFrame.contextLView=e}function un(){for(var e=cn();null!==e&&64===e.type;)e=e.parent;return e}function cn(){return nn.lFrame.currentTNode}function ln(e,t){var n=nn.lFrame;n.currentTNode=e,n.isParent=t}function hn(){return nn.lFrame.isParent}function dn(){nn.lFrame.isParent=!1}function fn(){return nn.isInCheckNoChangesMode}function pn(e){nn.isInCheckNoChangesMode=e}function vn(){var e=nn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function mn(){return nn.lFrame.bindingIndex++}function gn(e){var t=nn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function yn(e){nn.lFrame.currentDirectiveIndex=e}function bn(e){var t=nn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function _n(){return nn.lFrame.currentQueryIndex}function kn(e){nn.lFrame.currentQueryIndex=e}function wn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Sn(e,t,n){if(n&We.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&We.Host||null===(i=wn(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=nn.lFrame=En();return o.currentTNode=t,o.lView=e,!0}function Cn(e){var t=En(),n=e[1];nn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function En(){var e=nn.lFrame,t=null===e?null:e.child;return null===t?On(e):t}function On(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function xn(){var e=nn.lFrame;return nn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tn=xn;function Mn(){var e=xn();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 Pn(e){return(nn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,nn.lFrame.contextLView))[8]}function In(){return nn.lFrame.selectedIndex}function An(e){nn.lFrame.selectedIndex=e}function Rn(){var e=nn.lFrame;return Zt(e.tView,e.selectedIndex)}function Dn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,u=r.ngAfterViewChecked,c=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),u&&((e.viewHooks||(e.viewHooks=[])).push(n,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Nn(e,t,n){jn(e,t,3,n)}function Ln(e,t,n,i){(3&e[2])===n&&jn(e,t,n,i)}function Vn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function jn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(Fn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Fn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Bn=-1,Un=function e(t,n,i){o(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zn(e,t,n){for(var i=zt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],u=n[r++];i?e.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u)}else{var c=o,l=n[++r];Hn(c)?i&&e.setProperty(t,c,l):i?e.setAttribute(t,c,l):t.setAttribute(c,l),r++}}return r}function Wn(e){return 3===e||4===e||6===e}function Hn(e){return 64===e.charCodeAt(0)}function Gn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||qn(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function qn(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var u=e[o];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function Zn(e){return e!==Bn}function Qn(e){return 32767&e}function Yn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Kn=!0;function Jn(e){var t=Kn;return Kn=e,t}var Xn=0;function $n(e,t){var n=ti(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ei(i.data,e),ei(t,null),ei(i.blueprint,null));var r=ni(e,t),o=e.injectorIndex;if(Zn(r))for(var a=Qn(r),s=Yn(r,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=r,o}function ei(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ti(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ni(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return Bn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Bn}function ii(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ct)&&(i=n[ct]),null==i&&(i=n[ct]=Xn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ri(e,t,n){if(n&We.Optional)return e;Rt(t,"NodeInjector")}function oi(e,t,n,i){if(n&We.Optional&&void 0===i&&(i=null),0==(n&(We.Self|We.Host))){var r=e[9],o=Ge(void 0);try{return r?r.get(t,i,n&We.Optional):qe(t,i,n&We.Optional)}finally{Ge(o)}}return ri(i,t,n)}function ai(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:We.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=di(n);if("function"==typeof o){if(!Sn(t,e,i))return i&We.Host?ri(r,n,i):oi(t,n,i,r);try{var a=o();if(null!=a||i&We.Optional)return a;Rt(n)}finally{Tn()}}else if("number"==typeof o){var s=null,u=ti(e,t),c=Bn,l=i&We.Host?t[16][6]:null;for((-1===u||i&We.SkipSelf)&&((c=-1===u?ni(e,t):t[u+8])!==Bn&&pi(i,!1)?(s=t[1],u=Qn(c),t=Yn(c,t)):u=-1);-1!==u;){var h=t[1];if(fi(o,u,h.data)){var d=ci(u,t,n,s,i,l);if(d!==si)return d}(c=t[u+8])!==Bn&&pi(i,t[1].data[u+8]===l)&&fi(o,u,t)?(s=h,u=Qn(c),t=Yn(c,t)):u=-1}}}return oi(t,n,i,r)}var si={};function ui(){return new vi(un(),on())}function ci(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=li(s,a,n,null==i?Ot(s)&&Kn:i!=a&&0!=(3&s.type),r&We.Host&&o===s);return null!==u?hi(t,a,u,s):si}function li(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=r?s+c:e.directiveEnd,h=i?s:s+c;h<l;h++){var d=a[h];if(h<u&&n===d||h>=u&&d.type===n)return h}if(r){var f=a[u];if(f&&Tt(f)&&f.type===n)return u}return null}function hi(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Un){var a=r;a.resolving&&function(e,t){throw new Pt("200","Circular dependency in DI detected for ".concat(e).concat(""))}(At(o[n]));var s=Jn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Ge(a.injectImpl):null;Sn(e,i,We.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=Lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&Ge(u),Jn(s),a.resolving=!1,Tn()}}return r}function di(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ct)?e[ct]:void 0;return"number"==typeof t?t>=0?255&t:ui:t}function fi(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function pi(e,t){return!(e&We.Self||e&We.Host&&t)}var vi=function(){function e(t,n){o(this,e),this._tNode=t,this._lView=n}return s(e,[{key:"get",value:function(e,t){return ai(this._tNode,this._lView,e,void 0,t)}}]),e}();function mi(e){var t=e;if(Ae(e))return function(){var e=mi(Ie(t));return e?e():null};var n=Mt(t);if(null===n){var i=Ve(t);n=i&&i.factory}return n||null}function gi(e){return Ze(function(){for(var t=e.prototype.constructor,n=t[ut]||mi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[ut]||mi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function yi(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Wn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(un(),e)}var bi="__parameters__";function _i(e,t,n){return Ze(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=E(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(bi)?e[bi]:Object.defineProperty(e,bi,{value:[]})[bi];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var ki=function(){function e(t,n){o(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Re({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return s(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),wi=new ki("AnalyzeForEntryComponents"),Si=Function;function Ci(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Ci(i,t)):t!==e&&t.push(i)}return t}function Ei(e,t){e.forEach(function(e){return Array.isArray(e)?Ei(e,t):t(e)})}function Oi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ti(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Mi(e,t,n){var i=Ii(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Pi(e,t){var n=Ii(e,t);if(n>=0)return e[1|n]}function Ii(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ai={},Ri=/\n/gm,Di="__source",Ni=Ee({provide:String,useValue:Ee}),Li=void 0;function Vi(e){var t=Li;return Li=e,t}function ji(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We.Default;if(void 0===Li)throw new Error("inject() must be called from an injection context");return null===Li?qe(e,void 0,t):Li.get(e,t&We.Optional?null:void 0,t)}function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We.Default;return(He()||ji)(Ie(e),t)}var Bi=Fi;function Ui(e){for(var t=[],n=0;n<e.length;n++){var i=Ie(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=We.Default,a=0;a<i.length;a++){var s=i[a],u=s.__NG_DI_FLAG__;"number"==typeof u?-1===u?r=s.token:o|=u:r=s}t.push(Fi(r,o))}else t.push(Fi(i))}return t}function zi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Wi(e,t,n,i){var r=e.ngTempTokenPath;throw t[Di]&&r.unshift(t[Di]),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=xe(t);if(Array.isArray(t))r=t.map(xe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xe(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Ri,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Hi,Gi,qi=zi(_i("Inject",function(e){return{token:e}}),-1),Zi=zi(_i("Optional"),8),Qi=zi(_i("SkipSelf"),4);function Yi(e){var t;return(null===(t=function(){if(void 0===Hi&&(Hi=null,et.trustedTypes))try{Hi=et.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Hi}())||void 0===t?void 0:t.createHTML(e))||e}function Ki(e){var t;return(null===(t=function(){if(void 0===Gi&&(Gi=null,et.trustedTypes))try{Gi=et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Gi}())||void 0===t?void 0:t.createHTML(e))||e}var Ji=function(){function e(t){o(this,e),this.changingThisBreaksApplicationSecurity=t}return s(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Xi=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Ji),$i=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Ji),er=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Ji),tr=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Ji),nr=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Ji);function ir(e){return e instanceof Ji?e.changingThisBreaksApplicationSecurity:e}function rr(e,t){var n=or(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function or(e){return e instanceof Ji&&e.getTypeName()||null}var ar=function(){function e(t){o(this,e),this.inertDocumentHelper=t}return s(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Yi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),sr=function(){function e(t){if(o(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return s(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Yi(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Yi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),ur=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,cr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function lr(e){return(e=String(e)).match(ur)||e.match(cr)?e:"unsafe:"+e}function hr(e){var t,n={},i=g(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function dr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var fr,pr=hr("area,br,col,hr,img,wbr"),vr=hr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mr=hr("rp,rt"),gr=dr(mr,vr),yr=dr(pr,dr(vr,hr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dr(mr,hr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gr),br=hr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_r=hr("srcset"),kr=dr(br,_r,hr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),wr=hr("script,style,template"),Sr=function(){function e(){o(this,e),this.sanitizedSomething=!1,this.buf=[]}return s(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!yr.hasOwnProperty(n))return this.sanitizedSomething=!0,!wr.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(kr.hasOwnProperty(s)){var u=o.value;br[s]&&(u=lr(u)),_r[s]&&(t=u,u=(t=String(t)).split(",").map(function(e){return lr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',Or(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();yr.hasOwnProperty(t)&&!pr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Or(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Er=/([^\#-~ |!])/g;function Or(e){return e.replace(/&/g,"&").replace(Cr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Er,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function xr(e,t){var n=null;try{fr=fr||function(e){var t=new sr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Yi(""),"text/html")}catch(e){return!1}}()?new ar(t):t}(e);var i=t?String(t):"";n=fr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=fr.getInertBodyElement(i)}while(i!==o);return Yi((new Sr).sanitizeChildren(Tr(n)||n))}finally{if(n)for(var a=Tr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Tr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Mr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Pr(e){var t=Ar();return t?Ki(t.sanitize(Mr.HTML,e)||""):rr(e,"HTML")?Ki(ir(e)):xr(Ut(),It(e))}function Ir(e){var t=Ar();return t?t.sanitize(Mr.URL,e)||"":rr(e,"URL")?ir(e):lr(It(e))}function Ar(){var e=on();return e&&e[12]}function Rr(e){return e.ngDebugContext}function Dr(e){return e.ngOriginalError}function Nr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Lr=function(){function e(){o(this,e),this._console=console}return s(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Nr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Rr(e)?Rr(e):this._findContext(Dr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Dr(e);t&&Dr(t);)t=Dr(t);return t}}]),e}();function Vr(e,t){e.__ngContext__=t}var jr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(et)}();function Fr(e){return{name:"window",target:e.ownerDocument.defaultView}}function Br(e){return{name:"document",target:e.ownerDocument}}function Ur(e){return{name:"body",target:e.ownerDocument.body}}function zr(e){return e instanceof Function?e():e}var Wr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Hr(e,t){return(void 0)(e,t)}function Gr(e){var t=e[3];return Ct(t)?t[3]:t}function qr(e){return Qr(e[13])}function Zr(e){return Qr(e[4])}function Qr(e){for(;null!==e&&!Ct(e);)e=e[4];return e}function Yr(e,t,n,i,r){if(null!=i){var o,a=!1;Ct(i)?o=i:St(i)&&(a=!0,i=i[0]);var s=Ht(i);0===e&&null!==n?null==r?ro(t,n,s):io(t,n,s,r||null,!0):1===e&&null!==n?io(t,n,s,r||null,!0):2===e?function(e,t,n){var i=ao(e,t);i&&function(e,t,n,i){zt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Ht(n)&&Yr(t,e,i,o,r);for(var a=wt;a<n.length;a++){var s=n[a];po(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function Kr(e,t){return zt(e)?e.createText(t):e.createTextNode(t)}function Jr(e,t,n){return zt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Xr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,tn(r,-1)),n.splice(i,1)}function $r(e,t){if(!(e.length<=wt)){var n,i=wt+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Xr(o,r),t>0&&(e[i-1][4]=r[4]);var a=xi(e,wt+t);po(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function eo(e,t){if(!(256&t[2])){var n=t[11];zt(n)&&n.destroyNode&&po(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return to(e[1],e);for(;t;){var n=null;if(St(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)St(t)&&to(t[1],t),t=t[3];null===t&&(t=e),St(t)&&to(t[1],t),n=t&&t[4]}t=n}}(t)}}function to(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Un)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Ht(t[a]),u=i[r=n[o+2]],c=n[o+3];"boolean"==typeof c?s.removeEventListener(n[o],u,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{var l=i[r=n[o+1]];n[o].call(l)}if(null!==i){for(var h=r+1;h<i.length;h++)(0,i[h])();t[7]=null}}(e,t),1===t[1].type&&zt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Ct(t[3])){n!==t[3]&&Xr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function no(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Ye.None||r===Ye.Emulated)return null}return qt(i,n)}(e,t.parent,n)}function io(e,t,n,i,r){zt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function ro(e,t,n){zt(e)?e.appendChild(t,n):t.appendChild(n)}function oo(e,t,n,i,r){null!==i?io(e,t,n,i,r):ro(e,t,n)}function ao(e,t){return zt(e)?e.parentNode(t):t.parentNode}function so(e,t,n){return uo(e,t,n)}var uo=function(e,t,n){return 40&e.type?qt(e,n):null};function co(e,t,n,i){var r=no(e,i,t),o=t[11],a=so(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)oo(o,r,n[s],a,!1);else oo(o,r,n,a,!1)}function lo(e,t){if(null!==t){var n=t.type;if(3&n)return qt(t,e);if(4&n)return ho(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return lo(e,i);var r=e[t.index];return Ct(r)?ho(-1,r):Ht(r)}if(32&n)return Hr(t,e)()||Ht(e[t.index]);var o=e[16],a=o[6],s=Gr(o),u=a.projection[t.projection];return null!=u?lo(s,u):lo(e,t.next)}return null}function ho(e,t){var n=wt+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return lo(i,r)}return t[7]}function fo(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],u=n.type;if(a&&0===t&&(s&&Vr(Ht(s),i),n.flags|=4),64!=(64&n.flags))if(8&u)fo(e,t,n.child,i,r,o,!1),Yr(t,e,r,s,o);else if(32&u){for(var c=Hr(n,i),l=void 0;l=c();)Yr(t,e,r,l,o);Yr(t,e,r,s,o)}else 16&u?mo(e,t,i,n,r,o):Yr(t,e,r,s,o);n=a?n.projectionNext:n.next}}function po(e,t,n,i,r,o){fo(n,i,e.firstChild,t,r,o,!1)}function vo(e,t,n){mo(t[11],0,t,n,no(e,n,t),so(n.parent||t[6],n,t))}function mo(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Yr(t,e,r,s[u],o);else fo(e,t,s,a[3],r,o,!0)}function go(e,t,n){zt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function yo(e,t,n){zt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function bo(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var _o="ng-template";function ko(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==bo((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function wo(e){return 4===e.type&&e.value!==_o}function So(e,t,n){return t===(4!==e.type||n?e.value:_o)}function Co(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Wn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var u=t[s];if("number"!=typeof u){if(!a)if(4&i){if(i=2|1&i,""!==u&&!So(e,u,n)||""===u&&1===t.length){if(Eo(i))return!1;a=!0}}else{var c=8&i?u:t[++s];if(8&i&&null!==e.attrs){if(!ko(e.attrs,c,n)){if(Eo(i))return!1;a=!0}continue}var l=Oo(8&i?"class":u,r,wo(e),n);if(-1===l){if(Eo(i))return!1;a=!0;continue}if(""!==c){var h;h=l>o?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==bo(d,c,0)||2&i&&c!==h){if(Eo(i))return!1;a=!0}}}}else{if(!a&&!Eo(i)&&!Eo(u))return!1;if(a&&Eo(u))continue;a=!1,i=u|1&i}}return Eo(i)||a}function Eo(e){return 0==(1&e)}function Oo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function xo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Co(e,t[i],n))return!0;return!1}function To(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Mo(e,t){return e?":not("+t.trim()+")":t}function Po(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||Eo(a)||(t+=Mo(o,r),r=""),i=a,o=o||!Eo(i);n++}return""!==r&&(t+=Mo(o,r)),t}var Io={};function Ao(e){Ro(an(),on(),In()+e,fn())}function Ro(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Nn(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ln(t,o,0,n)}An(n)}function Do(e,t){return e<<17|t<<2}function No(e){return e>>17&32767}function Lo(e){return 2|e}function Vo(e){return(131068&e)>>2}function jo(e,t){return-131069&e|t<<2}function Fo(e){return 1|e}function Bo(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];kn(n[i]),o.contentQueries(2,t[r],r)}}}function Uo(e,t,n,i,r,o,a,s,u,c){var l=t.blueprint.slice();return l[0]=r,l[2]=140|i,en(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=s||e&&e[11],l[12]=u||e&&e[12]||null,l[9]=c||e&&e[9]||null,l[6]=o,l[16]=2==t.type?e[16]:l,l}function zo(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=cn(),a=hn(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),nn.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var u=(a=(o=nn.lFrame).currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===u?-1:u.injectorIndex}return ln(s,!0),s}function Wo(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Ho(e,t,n){Cn(t);try{var i=e.viewQuery;null!==i&&_a(1,i,n);var r=e.template;null!==r&&Zo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Bo(e,t),e.staticViewQueries&&_a(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)va(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Mn()}}function Go(e,t,n,i){var r=t[2];if(256!=(256&r)){Cn(t);var o=fn();try{en(t),nn.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Zo(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&Nn(t,s,null)}else{var u=e.preOrderHooks;null!==u&&Ln(t,u,0,null),Vn(t,0)}if(function(e){for(var t=qr(e);null!==t;t=Zr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&tn(r[3],1),r[2]|=1024}}(t),function(e){for(var t=qr(e);null!==t;t=Zr(t))for(var n=wt;n<t.length;n++){var i=t[n],r=i[1];Xt(i)&&Go(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Bo(e,t),!o)if(a){var c=e.contentCheckHooks;null!==c&&Nn(t,c)}else{var l=e.contentHooks;null!==l&&Ln(t,l,1),Vn(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var o=0;o<r.length;o++){var a=r[o];if(a<0)An(~a);else{var s=a,u=r[++o],c=r[++o];n=s,i=void 0,(i=nn.lFrame).bindingIndex=i.bindingRootIndex=u,yn(n),c(2,t[s])}}}finally{An(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)fa(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&_a(2,d,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&Nn(t,f)}else{var p=e.viewHooks;null!==p&&Ln(t,p,2),Vn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,tn(t[3],-1))}finally{Mn()}}}function qo(e,t,n,i){var r=t[10],o=!fn(),a=Jt(t);try{o&&!a&&r.begin&&r.begin(),a&&Ho(e,t,i),Go(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function Zo(e,t,n,i,r){var o=In();try{An(-1),2&i&&t.length>kt&&Ro(e,t,kt,fn()),n(i,r)}finally{An(o)}}function Qo(e,t,n){if(Et(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function Yo(e,t,n){rn()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||$n(n,t),Vr(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var u=e.data[s],c=Tt(u);c&&ca(t,n,u);var l=hi(t,e,s,n);Vr(l,t),null!==a&&la(0,s-r,l,u,0,a),c&&(Yt(n.index,t)[8]=l)}}(e,t,n,qt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=nn.lFrame.currentDirectiveIndex;try{An(o);for(var s=i;s<r;s++){var u=e.data[s],c=t[s];yn(s),null===u.hostBindings&&0===u.hostVars&&null===u.hostAttrs||ra(u,c)}}finally{An(-1),yn(a)}}(e,t,n))}function Ko(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function Jo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Xo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Xo(e,t,n,i,r,o,a,s,u,c){var l=kt+i,h=l+r,d=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Io);return n}(l,h),f="function"==typeof c?c():c;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:s,declTNode:t,data:d.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1}}function $o(e,t,n,i){var r=wa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Sa(e).push(i,r.length-1))}function ea(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ta(e,t,n,i,r,o,a,s){var u,c,l=qt(t,n),h=t.inputs;!s&&null!=h&&(u=h[i])?(Oa(e,n,u,i,r),Ot(t)&&function(e,t){var n=Yt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=a?a(r,t.value||"",i):r,zt(o)?o.setProperty(l,i,r):Hn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function na(e,t,n,i){var r=!1;if(rn()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];xo(n,a.selectors,!1)&&(r||(r=[]),ii($n(n,t),e,a.type),Tt(a)?(oa(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,sa(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var u=o[s];u.providersResolver&&u.providersResolver(u)}for(var c=!1,l=!1,h=Wo(e,t,o.length,null),d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=Gn(n.mergedAttrs,f.hostAttrs),ua(e,n,t,h,f),aa(h,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),l||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),h++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,u=t.directiveStart;u<n;u++){var c=i[u],l=c.inputs,h=null===r||wo(t)?null:ha(l,r);o.push(h),a=ea(l,u,a),s=ea(c.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Pt("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=Gn(n.mergedAttrs,n.attrs),r}function ia(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var u=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function ra(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function oa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function aa(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Tt(t)&&(n[""]=e)}}function sa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ua(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Mt(r.type)),a=new Un(o,Tt(r),null);e.blueprint[i]=a,n[i]=a,ia(e,t,0,i,Wo(e,n,r.hostVars,Io),r)}function ca(e,t,n){var i=qt(t,e),r=Jo(n),o=e[10],a=ma(e,Uo(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function la(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,u=0;u<a.length;){var c=a[u++],l=a[u++],h=a[u++];null!==s?i.setInput(n,h,c,l):n[l]=h}}function ha(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function da(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function fa(e,t){var n=Yt(t,e);if(Xt(n)){var i=n[1];80&n[2]?Go(i,n,i.template,n[8]):n[5]>0&&pa(n)}}function pa(e){for(var t=qr(e);null!==t;t=Zr(t))for(var n=wt;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Go(r,i,r.template,i[8])}else i[5]>0&&pa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Yt(o[a],e);Xt(s)&&s[5]>0&&pa(s)}}function va(e,t){var n=Yt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Ho(i,n,n[8])}function ma(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ga(e){for(;e;){e[2]|=64;var t=Gr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ya(e,t,n){var i=t[10];i.begin&&i.begin();try{Go(e,t,e.template,n)}catch(r){throw Ea(t,r),r}finally{i.end&&i.end()}}function ba(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Kt(n),r=i[1];qo(r,i,r.template,n)}}(e[8])}function _a(e,t,n){kn(0),t(e,n)}var ka=function(){return Promise.resolve(null)}();function wa(e){return e[7]||(e[7]=[])}function Sa(e){return e.cleanup||(e.cleanup=[])}function Ca(e,t,n){return(null===e||Tt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Ea(e,t){var n=e[9],i=n?n.get(Lr,null):null;i&&i.handleError(t)}function Oa(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],u=t[a],c=e.data[a];null!==c.setInput?c.setInput(u,r,i,s):u[s]=r}}function xa(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Te(r,s):2==o&&(i=Te(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Ta=new ki("INJECTOR",-1),Ma=function(){function e(){o(this,e)}return s(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai;if(t===Ai){var n=new Error("NullInjectorError: No provider for ".concat(xe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Pa=new ki("Set Injector scope."),Ia={},Aa={},Ra=[],Da=void 0;function Na(){return void 0===Da&&(Da=new Ma),Da}function La(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Va(e,n,t||Na(),i)}var Va=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;o(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&Ei(n,function(e){return r.processProvider(e,t,n)}),Ei([t],function(e){return r.processInjectorType(e,[],s)}),this.records.set(Ta,Ba(void 0,this));var u=this.records.get(Pa);this.scope=null!=u?u.value:null,this.source=a||("object"==typeof t?null:xe(t))}return s(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:We.Default;this.assertNotDestroyed();var i=Vi(this);try{if(!(n&We.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=Wa(e)&&Ne(e);r=o&&this.injectableDefInScope(o)?Ba(ja(e),Ia):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var a=n&We.Self?Na():this.parent;return a.get(e,t=n&We.Optional&&t===Ai?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(xe(e)),i)throw u;return Wi(u,e,"R3InjectorError",this.source)}throw u}finally{Vi(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(xe(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Ie(e)))return!1;var r=Ve(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ve(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{Ei(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,r=t.providers;Ei(r,function(e){return i.processProvider(e,n,r||Ra)})},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(a),this.records.set(a,Ba(r.factory,Ia));var h=r.providers;if(null!=h&&!s){var d=e;Ei(h,function(e){return i.processProvider(e,d,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=za(e=Ie(e))?e:Ie(e&&e.provide),r=function(e,t,n){return Ua(e)?Ba(void 0,e.useValue):Ba(Fa(e),Ia)}(e);if(za(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Ba(void 0,Ia,!0)).factory=function(){return Ui(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ia&&(t.value=Aa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function ja(e){var t=Ne(e),n=null!==t?t.factory:Mt(e);if(null!==n)return n;var i=Ve(e);if(null!==i)return i.factory;if(e instanceof ki)throw new Error("Token ".concat(xe(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Ti(t,"?");throw new Error("Can't resolve all parameters for ".concat(xe(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Fe]||e[Ue]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Fa(e,t,n){var i,r=void 0;if(za(e)){var o=Ie(e);return Mt(o)||ja(o)}if(Ua(e))r=function(){return Ie(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,C(Ui(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return Fi(Ie(e.useExisting))};else{var a=Ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Mt(a)||ja(a);r=function(){return E(a,C(Ui(e.deps)))}}return r}function Ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ua(e){return null!==e&&"object"==typeof e&&Ni in e}function za(e){return"function"==typeof e}function Wa(e){return"function"==typeof e||"object"==typeof e&&e instanceof ki}var Ha=function(e,t,n){return function(e){var t=La(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ga=function(){var e=function(){function e(){o(this,e)}return s(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ha(e,t,""):Ha(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ai,e.NULL=new Ma,e.\u0275prov=Re({token:e,providedIn:"any",factory:function(){return Fi(Ta)}}),e.__NG_ELEMENT_ID__=-1,e}();function qa(e,t){Dn(Kt(e)[1],un())}function Za(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Tt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Qa(e.inputs),o.declaredInputs=Qa(e.declaredInputs),o.outputs=Qa(e.outputs);var a=r.hostBindings;a&&Ja(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Ya(e,s),u&&Ka(e,u),Oe(e.inputs,r.inputs),Oe(e.declaredInputs,r.declaredInputs),Oe(e.outputs,r.outputs),Tt(r)&&r.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h<l.length;h++){var d=l[h];d&&d.ngInherit&&d(e),d===Za&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Gn(r.hostAttrs,n=Gn(n,r.hostAttrs))}}(i)}function Qa(e){return e===tt?{}:e===nt?[]:e}function Ya(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ka(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ja(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Xa=null;function $a(){if(!Xa){var e=et.Symbol;if(e&&e.iterator)Xa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Xa=i)}}return Xa}var es=function(){function e(t){o(this,e),this.wrapped=t}return s(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function ts(e){return!!ns(e)&&(Array.isArray(e)||!(e instanceof Map)&&$a()in e)}function ns(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function is(e,t,n){return e[t]=n}function rs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function os(e,t,n,i){var r=on();return rs(r,mn(),t)&&(an(),function(e,t,n,i,r,o){var a=qt(e,t);!function(e,t,n,i,r,o,a){if(null==o)zt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?It(o):a(o,i||"",r);zt(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}(Rn(),r,e,t,n,i)),os}function as(e,t,n,i){return rs(e,mn(),n)?t+It(n)+i:Io}function ss(e,t,n,i,r,o,a,s){var u=on(),c=an(),l=e+kt,h=c.firstCreatePass?function(e,t,n,i,r,o,a,s,u){var c=t.consts,l=zo(t,e,4,a||null,$t(c,s));na(t,n,l,$t(c,u)),Dn(t,l);var h=l.tViews=Xo(2,l,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,l),h.queries=t.queries.embeddedTView(l)),l}(l,c,u,t,n,i,r,o,a):c.data[l];ln(h,!1);var d=u[11].createComment("");co(c,u,d,h),Vr(d,u),ma(u,u[l]=da(d,u,d,h)),xt(h)&&Yo(c,u,h),null!=a&&Ko(u,h,s)}function us(e){return Qt(nn.lFrame.contextLView,kt+e)}function cs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We.Default,n=on();if(null===n)return Fi(e,t);var i=un();return ai(i,n,Ie(e),t)}function ls(e,t,n){var i=on();return rs(i,mn(),t)&&ta(an(),Rn(),i,e,t,i[11],n,!1),ls}function hs(e,t,n,i,r){var o=r?"class":"style";Oa(e,n,t.inputs[o],o,i)}function ds(e,t,n,i){var r=on(),o=an(),a=kt+e,s=r[11],u=r[a]=Jr(s,t,nn.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=zo(t,e,2,r,$t(s,o));return na(t,n,u,$t(s,a)),null!==u.attrs&&xa(u,u.attrs,!1),null!==u.mergedAttrs&&xa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];ln(c,!0);var l=c.mergedAttrs;null!==l&&zn(s,u,l);var h=c.classes;null!==h&&yo(s,u,h);var d=c.styles;null!==d&&go(s,u,d),64!=(64&c.flags)&&co(o,r,u,c),0===nn.lFrame.elementDepthCount&&Vr(u,r),nn.lFrame.elementDepthCount++,xt(c)&&(Yo(o,r,c),Qo(o,c,r)),null!==i&&Ko(r,c)}function fs(){var e=un();hn()?dn():ln(e=e.parent,!1);var t=e;nn.lFrame.elementDepthCount--;var n=an();n.firstCreatePass&&(Dn(n,e),Et(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&hs(n,t,on(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&hs(n,t,on(),t.stylesWithoutHost,!1)}function ps(e,t,n,i){ds(e,t,n,i),fs()}function vs(e,t,n){var i=on(),r=an(),o=e+kt,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=$t(o,i),s=zo(t,e,8,"ng-container",a);return null!==a&&xa(s,a,!0),na(t,n,s,$t(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];ln(a,!0);var s=i[o]=i[11].createComment("");co(r,i,s,a),Vr(s,i),xt(a)&&(Yo(r,i,a),Qo(r,a,i)),null!=n&&Ko(i,a)}function ms(){var e=un(),t=an();hn()?dn():ln(e=e.parent,!1),t.firstCreatePass&&(Dn(t,e),Et(e)&&t.queries.elementEnd(e))}function gs(){return on()}function ys(e){return!!e&&"function"==typeof e.then}function bs(e){return!!e&&"function"==typeof e.subscribe}var _s=bs;function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=on(),o=an(),a=un();return Cs(o,r,r[11],a,e,t,n,i),ks}function ws(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=un(),o=on(),a=an(),s=bn(a.data),u=Ca(s,r,o);return Cs(a,o,u,r,e,t,n,i),ws}function Ss(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],u=r[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}function Cs(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=xt(i),c=e.firstCreatePass,l=c&&Sa(e),h=wa(t),d=!0;if(3&i.type){var f=qt(i,t),p=s?s(f):tt,v=p.target||f,m=h.length,g=s?function(e){return s(Ht(e[i.index])).target}:i.index;if(zt(n)){var y=null;if(!s&&u&&(y=Ss(e,t,r,i.index)),null!==y){var b=y.__ngLastListenerFn__||y;b.__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1}else{o=Os(i,t,o,!1);var _=n.listen(p.name||v,r,o);h.push(o,_),l&&l.push(r,g,m,m+1)}}else o=Os(i,t,o,!0),v.addEventListener(r,o,a),h.push(o),l&&l.push(r,g,m,a)}else o=Os(i,t,o,!1);var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var S=k.length;if(S)for(var C=0;C<S;C+=2){var E=k[C],O=k[C+1],x=t[E],T=x[O],M=T.subscribe(o),P=h.length;h.push(o,M),l&&l.push(r,i.index,P,-(P+1))}}}function Es(e,t,n){try{return!1!==t(n)}catch(i){return Ea(e,i),!1}}function Os(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?Yt(e.index,t):t;0==(32&t[2])&&ga(a);for(var s=Es(t,n,o),u=r.__ngNextListenerFn__;u;)s=Es(t,u,o)&&s,u=u.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function xs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Pn(e)}function Ts(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?xo(e,o,!0):To(i,o))return r}else n=r}return n}function Ms(e){var t=on()[16][6];if(!t.projection)for(var n=t.projection=Ti(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ts(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Ps(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=on(),r=an(),o=zo(r,kt+e,16,null,n||null);null===o.projection&&(o.projection=t),dn(),64!=(64&o.flags)&&vo(r,i,o)}function Is(e,t,n){return As(e,"",t,"",n),Is}function As(e,t,n,i,r){var o=on(),a=as(o,t,n,i);return a!==Io&&ta(an(),Rn(),o,e,a,o[11],r,!1),As}var Rs=[];function Ds(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?No(o):Vo(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];Ns(e[s],t)&&(u=!0,e[s+1]=i?Fo(c):Lo(c)),s=i?No(c):Vo(c)}u&&(e[n+1]=i?Lo(o):Fo(o))}function Ns(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ii(e,t)>=0}var Ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vs(e){return e.substring(Ls.key,Ls.keyEnd)}function js(e,t){var n=Ls.textEnd;return n===t?-1:(t=Ls.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ls.key=t,n),Fs(e,t,n))}function Fs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Bs(e,t,n){return Ws(e,t,n,!1),Bs}function Us(e,t){return Ws(e,t,null,!0),Us}function zs(e,t){for(var n=function(e){return function(e){Ls.key=0,Ls.keyEnd=0,Ls.value=0,Ls.valueEnd=0,Ls.textEnd=e.length}(e),js(e,Fs(e,0,Ls.textEnd))}(t);n>=0;n=js(t,n))Mi(e,Vs(t),!0)}function Ws(e,t,n,i){var r=on(),o=an(),a=gn(2);o.firstUpdatePass&&Gs(o,e,a,i),t!==Io&&rs(r,a,t)&&Qs(o,o.data[In()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=xe(ir(e)))),e}(t,n),i,a)}function Hs(e,t){return t>=e.expandoStartIndex}function Gs(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[In()],a=Hs(e,n);Js(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=bn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Zs(n=qs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=qs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Vo(i))return e[No(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[No(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Zs(s=qs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Zs(i,e[o].hostAttrs,n);return Zs(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=No(a),u=Vo(a);e[i]=n;var c,l=!1;if(Array.isArray(n)?(null===(c=n[1])||Ii(n,c)>0)&&(l=!0):c=n,r)if(0!==u){var h=No(e[s+1]);e[i+1]=Do(h,s),0!==h&&(e[h+1]=jo(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Do(s,0),0!==s&&(e[s+1]=jo(e[s+1],i)),s=i;else e[i+1]=Do(u,0),0===s?s=i:e[u+1]=jo(e[u+1],i),u=i;l&&(e[i+1]=Lo(e[i+1])),Ds(e,c,i,!0),Ds(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ii(o,t)>=0&&(n[i+1]=Fo(n[i+1]))}(t,c,e,i,o),a=Do(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function qs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Zs(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Zs(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Mi(e,a,!!n||t[++o]))}return void 0===e?null:e}function Qs(e,t,n,i,r,o,a,s){if(3&t.type){var u=e.data,c=u[s+1];Ks(1==(1&c)?Ys(u,t,n,r,Vo(c),a):void 0)||(Ks(o)||2==(2&c)&&(o=Ys(u,null,n,r,s,a)),function(e,t,n,i,r){var o=zt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:Wr.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=Wr.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Gt(In(),n),r,o))}}function Ys(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var u=e[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=n[r+1];d===Io&&(d=h?Rs:void 0);var f=h?Pi(d,i):l===i?d:void 0;if(c&&!Ks(f)&&(f=Pi(u,i)),Ks(f)&&(s=f,a))return s;var p=e[r+1];r=a?No(p):Vo(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=Pi(v,i))}return s}function Ks(e){return void 0!==e}function Js(e,t){return 0!=(e.flags&(t?16:32))}function Xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=on(),i=an(),r=e+kt,o=i.firstCreatePass?zo(i,r,1,t,null):i.data[r],a=n[r]=Kr(n[11],t);co(i,n,a,o),ln(o,!1)}function $s(e){return eu("",e,""),$s}function eu(e,t,n){var i=on(),r=as(i,e,t,n);return r!==Io&&function(e,t,n){var i=Gt(t,e);!function(e,t,n){zt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,In(),r),eu}function tu(e,t,n){var i=on();return rs(i,mn(),t)&&ta(an(),Rn(),i,e,t,i[11],n,!0),tu}function nu(e,t,n){var i=on();if(rs(i,mn(),t)){var r=an(),o=Rn();ta(r,o,i,e,t,Ca(bn(r.data),o,i),n,!0)}return nu}var iu=void 0,ru=["en",[["a","p"],["AM","PM"],iu],[["AM","PM"],iu,iu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],iu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],iu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",iu,"{1} 'at' {0}",iu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ou={};function au(e){return e in ou||(ou[e]=et.ng&&et.ng.common&&et.ng.common.locales&&et.ng.common.locales[e]),ou[e]}var su=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),uu="en-US";function cu(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function lu(e,t,n){var i=an();if(i.firstCreatePass){var r=Tt(e);hu(n,i.data,i.blueprint,r,!0),hu(t,i.data,i.blueprint,r,!1)}}function hu(e,t,n,i,r){if(e=Ie(e),Array.isArray(e))for(var o=0;o<e.length;o++)hu(e[o],t,n,i,r);else{var a=an(),s=on(),u=za(e)?e:Ie(e.provide),c=Fa(e),l=un(),h=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(za(e)||!e.multi){var p=new Un(c,r,cs),v=pu(u,t,r?h:h+f,d);-1===v?(ii($n(l,s),a,u),du(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=pu(u,t,h+f,d),g=pu(u,t,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(m>=0&&n[m])){ii($n(l,s),a,u);var b=function(e,t,n,i,r){var o=new Un(e,n,cs);return o.multi=[],o.index=t,o.componentProviders=0,fu(o,r,i&&!n),o}(r?mu:vu,n.length,r,i,c);!r&&y&&(n[g].providerFactory=b),du(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else du(a,e,m>-1?m:g,fu(n[r?g:m],c,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function du(e,t,n,i){var r=za(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function fu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function pu(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function vu(e,t,n,i){return gu(this.multi,[])}function mu(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=hi(n,n[1],this.providerFactory.index,i);gu(o,r=s.slice(0,a));for(var u=a;u<s.length;u++)r.push(s[u])}else gu(o,r=[]);return r}function gu(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return lu(n,i?i(e):e,t)}}}var bu=function e(){o(this,e)},_u=function e(){o(this,e)},ku=function(){function e(){o(this,e)}return s(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(xe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),wu=function(){var e=function e(){o(this,e)};return e.NULL=new ku,e}();function Su(){}function Cu(e,t){return new Ou(qt(e,t))}var Eu=function(){return Cu(un(),on())},Ou=function(){var e=function e(t){o(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Eu,e}();function xu(e){return e instanceof Ou?e.nativeElement:e}var Tu=function e(){o(this,e)},Mu=function(){var e=function e(){o(this,e)};return e.__NG_ELEMENT_ID__=function(){return Pu()},e}(),Pu=function(){var e=on(),t=Yt(un().index,e);return function(e){return e[11]}(St(t)?t:e)},Iu=function(){var e=function e(){o(this,e)};return e.\u0275prov=Re({token:e,providedIn:"root",factory:function(){return null}}),e}(),Au=function e(t){o(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ru=new Au("11.1.1"),Du=function(){function e(){o(this,e)}return s(e,[{key:"supports",value:function(e){return ts(e)}},{key:"create",value:function(e){return new Lu(e)}}]),e}(),Nu=function(e,t){return t},Lu=function(){function e(t){o(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Nu}return s(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<Bu(n,i,r)?t:n,a=Bu(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var u=a-i,c=s-i;if(u!=c){for(var l=0;l<u;l++){var h=l<r.length?r[l]:r[l]=0,d=h+l;c<=d&&d<u&&(r[l]=h+1)}r[o.previousIndex]=c-u}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!ts(e))throw new Error("Error trying to diff '".concat(xe(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[$a()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):e=this._addAfter(new Vu(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Fu),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Vu=function e(t,n){o(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},ju=function(){function e(){o(this,e),this._head=null,this._tail=null}return s(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Fu=function(){function e(){o(this,e),this.map=new Map}return s(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new ju,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Bu(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Uu=function(){function e(){o(this,e)}return s(e,[{key:"supports",value:function(e){return e instanceof Map||ns(e)}},{key:"create",value:function(){return new zu}}]),e}(),zu=function(){function e(){o(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return s(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ns(e)))throw new Error("Error trying to diff '".concat(xe(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new Wu(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),Wu=function e(t){o(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Hu(){return new Gu([new Du])}var Gu=function(){var e=function(){function e(t){o(this,e),this.factories=t}return s(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Hu())},deps:[[e,new Qi,new Zi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:Hu}),e}();function qu(){return new Zu([new Uu])}var Zu=function(){var e=function(){function e(t){o(this,e),this.factories=t}return s(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||qu())},deps:[[e,new Qi,new Zi]]}}}]),e}();return e.\u0275prov=Re({token:e,providedIn:"root",factory:qu}),e}();function Qu(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ht(o)),Ct(o))for(var a=wt;a<o.length;a++){var s=o[a],u=s[1].firstChild;null!==u&&Qu(s[1],s,u,i)}var c=n.type;if(8&c)Qu(e,t,n.child,i);else if(32&c)for(var l=Hr(n,t),h=void 0;h=l();)i.push(h);else if(16&c){var d=t[16],f=d[6],p=n.projection,v=f.projection[p];if(Array.isArray(v))i.push.apply(i,C(v));else{var m=Gr(d);Qu(m[1],m,v,i,!0)}}n=r?n.projectionNext:n.next}return i}var Yu=function(){function e(t,n){o(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return s(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Qu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(Ct(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&($r(e,n),xi(t,n))}this._attachedToViewContainer=!1}eo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){$o(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ga(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ya(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){pn(!0);try{ya(e,t,n)}finally{pn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,po(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Ku=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e))._view=e,i}return s(n,[{key:"detectChanges",value:function(){ba(this._view)}},{key:"checkNoChanges",value:function(){!function(e){pn(!0);try{ba(e)}finally{pn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Yu),Ju=$u,Xu=function(){var e=function e(){o(this,e)};return e.__NG_ELEMENT_ID__=Ju,e.__ChangeDetectorRef__=!0,e}();function $u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ec(un(),on(),e)}function ec(e,t,n){if(!n&&Ot(e)){var i=Yt(e.index,t);return new Yu(i,i)}return 47&e.type?new Yu(t[16],t):null}var tc=[new Uu],nc=new Gu([new Du]),ic=new Zu(tc),rc=function(){return sc(un(),on())},oc=function(){var e=function e(){o(this,e)};return e.__NG_ELEMENT_ID__=rc,e}(),ac=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return s(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Uo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ho(t,n,e),new Yu(n)}}]),n}(oc);function sc(e,t){return 4&e.type?new ac(t,e,Cu(e,t)):null}var uc=function e(){o(this,e)},cc=function e(){o(this,e)},lc=function(){return vc(un(),on())},hc=function(){var e=function e(){o(this,e)};return e.__NG_ELEMENT_ID__=lc,e}(),dc=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return s(n,[{key:"element",get:function(){return Cu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new vi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ni(this._hostTNode,this._hostLView);if(Zn(e)){var t=Yn(e,this._hostLView),n=Qn(e);return new vi(t[1].data[n+8],t)}return new vi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=fc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-wt}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(uc,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(Ct(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new dc(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=wt+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-wt?(t[4]=n[r],Oi(n,wt+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,u,s);var c=ho(s,u),l=n[11],h=ao(l,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,po(e,i,n,1,r,o)}(i,u[6],l,n,h,c),e.attachToViewContainerRef(),Oi(pc(u),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=fc(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=$r(this._lContainer,t);n&&(xi(pc(this._lContainer),t),eo(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=$r(this._lContainer,t);return n&&null!=xi(pc(this._lContainer),t)?new Yu(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(hc);function fc(e){return e[8]}function pc(e){return e[8]||(e[8]=[])}function vc(e,t){var n,i=t[e.index];if(Ct(i))n=i;else{var r;if(8&e.type)r=Ht(i);else{var o=t[11];r=o.createComment("");var a=qt(e,t);io(o,ao(o,a),r,function(e,t){return zt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=da(i,t,r,e),ma(t,n)}return new dc(n,e,t)}var mc={},gc=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).ngModule=e,i}return s(n,[{key:"resolveComponentFactory",value:function(e){var t=bt(e);return new _c(t,this.ngModule)}}]),n}(wu);function yc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var bc=new ki("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return jr}}),_c=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Po).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return s(n,[{key:"inputs",get:function(){return yc(this.componentDef.inputs)}},{key:"outputs",get:function(){return yc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,mc,r);return o!==mc||i===mc?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Tu,Wt),u=a.get(Iu,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(zt(e))return e.selectRootElement(t,n===Ye.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Jr(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:jr,clean:ka,playerHandler:null,flags:0},p=Xo(0,null,null,1,0,null,null,null,null,null),v=Uo(null,p,f,d,null,null,s,c,u,a);Cn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=zo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(xa(s,u,!0),null!==e&&(zn(r,e,u),null!==s.classes&&yo(r,e,s.classes),null!==s.styles&&go(r,e,s.styles)));var c=i.createRenderer(e,t),l=Uo(n,Jo(t),null,t.onPush?64:16,n[20],s,i,c,null,null);return a.firstCreatePass&&(ii($n(s,n),a,t.type),oa(a,s),sa(s,n.length,1)),ma(n,l),n[20]=l}(h,this.componentDef,v,s,c);if(h)if(n)zn(c,h,["ng-version",Ru.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!Eo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=g.attrs,b=g.classes;y&&zn(c,h,y),b&&b.length>0&&yo(c,h,b.join(" "))}if(o=Zt(p,kt),void 0!==t)for(var _=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var w=t[k];_.push(null!=w?Array.from(w):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=un();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ua(e,i,t,Wo(e,t,1,null),n));var r=hi(t,e,i.directiveStart,i);Vr(r,t);var o=qt(i,t);return o&&Vr(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=un();t.contentQueries(1,a,s.directiveStart)}var u=un();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(An(u.index),ia(n[1],u,0,u.directiveStart,u.directiveEnd,t),ra(t,a)),a}(m,this.componentDef,v,f,[qa]),Ho(p,v,null)}finally{Mn()}return new kc(this.componentType,r,Cu(o,v),v,o)}}]),n}(_u),kc=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this)).location=r,u._rootLView=a,u._tNode=s,u.instance=i,u.hostView=u.changeDetectorRef=new Ku(a),u.componentType=e,u}return s(n,[{key:"injector",get:function(){return new vi(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(bu),wc=new Map,Sc=function(e){c(n,e);var t=p(n);function n(e,i){var r;o(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=d(r),r.destroyCbs=[],r.componentFactoryResolver=new gc(d(r));var a=_t(e),s=e[st]||null;return s&&cu(s),r._bootstrapComponents=zr(a.bootstrap),r._r3Injector=La(e,i,[{provide:uc,useValue:d(r)},{provide:wu,useValue:r.componentFactoryResolver}],xe(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return s(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ga.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:We.Default;return e===Ga||e===uc||e===Ta?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(uc),Cc=function(e){c(n,e);var t=p(n);function n(e){var i,r,a;return o(this,n),(i=t.call(this)).moduleType=e,null!==_t(e)&&(r=e,a=new Set,function e(t){var n=_t(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(xe(t)," vs ").concat(xe(t.name)))}(i,wc.get(i),t),wc.set(i,t));var r,o=g(zr(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(u){o.e(u)}finally{o.f()}}(r)),i}return s(n,[{key:"create",value:function(e){return new Sc(this.moduleType,e)}}]),n}(cc);function Ec(e,t,n,i){return xc(on(),vn(),e,t,n,i)}function Oc(e,t){var n=e[t];return n===Io?void 0:n}function xc(e,t,n,i,r,o){var a=t+n;return rs(e,a,r)?is(e,a+1,o?i.call(o,r):i(r)):Oc(e,a+1)}function Tc(e,t){var n,i=an(),r=e+kt;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Pt("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Mt(n.type)),a=Ge(cs);try{var s=Jn(!1),u=o();return Jn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,on(),r,u),u}finally{Ge(a)}}function Mc(e,t,n){var i=e+kt,r=on(),o=Qt(r,i);return function(e,t){return es.isWrapped(t)&&(t=es.unwrap(t),e[nn.lFrame.bindingIndex]=Io),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?xc(r,vn(),t,o.transform,n,o):o.transform(n))}var Pc=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o(this,n),(e=t.call(this)).__isAsync=i,e}return s(n,[{key:"emit",value:function(e){r(i(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout(function(){return o()})}:function(){o()}));var c=r(i(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof I&&e.add(c),c}}]),n}(Q);function Ic(){return this._results[$a()]()}var Ac=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=$a(),i=e.prototype;i[n]||(i[n]=Ic)}return s(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Pc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=Ci(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Rc=function(){function e(t){o(this,e),this.queryList=t,this.matches=null}return s(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Dc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.queries=t}return s(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Qc(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Nc=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o(this,e),this.predicate=t,this.flags=n,this.read=i},Lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.queries=t}return s(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Vc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;o(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return s(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,jc(t,r)),this.matchTNodeWithReadOption(e,t,li(t,e,r,!1,!1))}else n===oc?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,li(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ou||i===hc||i===oc&&4&t.type)this.addMatch(t.index,-2);else{var r=li(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function jc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Fc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Cu(e,t):4&e.type?sc(e,t):null}(t,e):-2===n?function(e,t,n){return n===Ou?Cu(t,e):n===oc?sc(t,e):n===hc?vc(t,e):void 0}(e,t,i):hi(e,e[1],n,t)}function Bc(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var c=a[u];s.push(c<0?null:Fc(t,o[c],a[u+1],n.metadata.read))}r.matches=s}return r.matches}function Uc(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=Bc(e,t,r,n),s=0;s<o.length;s+=2){var u=o[s];if(u>0)i.push(a[s/2]);else{for(var c=o[s+1],l=t[-u],h=wt;h<l.length;h++){var d=l[h];d[17]===d[3]&&Uc(d[1],d,c,i)}if(null!==l[9])for(var f=l[9],p=0;p<f.length;p++){var v=f[p];Uc(v[1],v,c,i)}}}return i}function zc(e){var t=on(),n=an(),i=_n();kn(i+1);var r=Qc(n,i);if(e.dirty&&Jt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Uc(n,t,i,[]):Bc(n,t,r,i);e.reset(o,xu),e.notifyOnChanges()}return!0}return!1}function Wc(e,t,n){var i=an();i.firstCreatePass&&(Zc(i,new Nc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),qc(i,on(),t)}function Hc(e,t,n,i){var r=an();if(r.firstCreatePass){var o=un();Zc(r,new Nc(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}qc(r,on(),n)}function Gc(){return e=on(),t=_n(),e[19].queries[t].queryList;var e,t}function qc(e,t,n){var i=new Ac(4==(4&n));$o(e,t,i,i.destroy),null===t[19]&&(t[19]=new Dc),t[19].queries.push(new Rc(i))}function Zc(e,t,n){null===e.queries&&(e.queries=new Lc),e.queries.track(new Vc(t,n))}function Qc(e,t){return e.queries.getByIndex(t)}var Yc=new ki("Application Initializer"),Kc=function(){var e=function(){function e(t){var n=this;o(this,e),this.appInits=t,this.resolve=Su,this.reject=Su,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return s(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ys(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Yc,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Jc=new ki("AppId"),Xc={provide:Jc,useFactory:function(){return"".concat($c()).concat($c()).concat($c())},deps:[]};function $c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var el=new ki("Platform Initializer"),tl=new ki("Platform ID"),nl=new ki("appBootstrapListener"),il=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),rl=new ki("LocaleId"),ol=new ki("DefaultCurrencyCode"),al=function e(t,n){o(this,e),this.ngModuleFactory=t,this.componentFactories=n},sl=function(e){return new Cc(e)},ul=sl,cl=function(e){return Promise.resolve(sl(e))},ll=function(e){var t=sl(e),n=zr(_t(e).declarations).reduce(function(e,t){var n=bt(t);return n&&e.push(new _c(n)),e},[]);return new al(t,n)},hl=ll,dl=function(e){return Promise.resolve(ll(e))},fl=function(){var e=function(){function e(){o(this,e),this.compileModuleSync=ul,this.compileModuleAsync=cl,this.compileModuleAndAllComponentsSync=hl,this.compileModuleAndAllComponentsAsync=dl}return s(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),pl=function(){return Promise.resolve(0)}();function vl(e){"undefined"==typeof Zone?pl.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var ml=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,a=void 0!==r&&r,s=t.shouldCoalesceRunChangeDetection,u=void 0!==s&&s;if(o(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pc(!1),this.onMicrotaskEmpty=new Pc(!1),this.onStable=new Pc(!1),this.onError=new Pc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var c,l,h=this;h._nesting=0,h._outer=h._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(h._inner=h._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(h._inner=h._inner.fork(Zone.longStackTraceZoneSpec)),h.shouldCoalesceEventChangeDetection=!u&&a,h.shouldCoalesceRunChangeDetection=u,h.lastRequestAnimationFrameId=-1,h.nativeRequestAnimationFrame=function(){var e=et.requestAnimationFrame,t=et.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,l=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(et,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,bl(e),yl(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),bl(e))}(c)},(c=h)._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,o){try{return _l(c),e.invokeTask(n,i,r,o)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||c.shouldCoalesceRunChangeDetection)&&l(),kl(c)}},onInvoke:function(e,t,n,i,r,o,a){try{return _l(c),e.invoke(n,i,r,o,a)}finally{c.shouldCoalesceRunChangeDetection&&l(),kl(c)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(c._hasPendingMicrotasks=i.microTask,bl(c),yl(c)):"macroTask"==i.change&&(c.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),c.runOutsideAngular(function(){return c.onError.emit(i)}),!1}})}return s(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,gl,Su,Su);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),gl={};function yl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function bl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _l(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kl(e){e._nesting--,yl(e)}var wl,Sl=function(){function e(){o(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pc,this.onMicrotaskEmpty=new Pc,this.onStable=new Pc,this.onError=new Pc}return s(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Cl=function(){var e=function(){function e(t){var n=this;o(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return s(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ml.assertNotInAngularZone(),vl(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())vl(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ml))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),El=function(){var e=function(){function e(){o(this,e),this._applications=new Map,Ol.addToWindow(this)}return s(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ol.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Ol=new(function(){function e(){o(this,e)}return s(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),xl=!0,Tl=!1;function Ml(){return Tl=!0,xl}var Pl=function(e,t,n){var i=new Cc(n);return Promise.resolve(i)},Il=new ki("AllowMultipleToken"),Al=function e(t,n){o(this,e),this.name=t,this.token=n};function Rl(e){if(wl&&!wl.destroyed&&!wl.injector.get(Il,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wl=e.get(Vl);var t=e.get(el,null);return t&&t.forEach(function(e){return e()}),wl}function Dl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new ki(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ll();if(!o||o.injector.get(Il,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Pa,useValue:"platform"});Rl(Ga.create({providers:a,name:i}))}return Nl(r)}}function Nl(e){var t=Ll();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Ll(){return wl&&!wl.destroyed?wl:null}var Vl=function(){var e=function(){function e(t){o(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return s(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new Sl:("zone.js"===n?void 0:n)||new ml({enableLongStackTrace:Ml(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:ml,useValue:o}];return o.run(function(){var t=Ga.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Lr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Bl(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Kc)).runInitializers(),a.donePromise.then(function(){return cu(n.injector.get(rl,uu)||uu),r._moduleDoBootstrap(n),n}));return ys(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=jl({},n);return Pl(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Fl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(xe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Ga))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function jl(e,t){return Array.isArray(t)?t.reduce(jl,e):Object.assign(Object.assign({},e),t)}var Fl=function(){var e=function(){function e(t,n,i,r,a,s){var u=this;o(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new W(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),l=new W(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){ml.assertNotInAngularZone(),vl(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){ml.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=me(c,l.pipe(Ce()))}return s(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof _u?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(uc),o=n.create(Ga.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Cl,null),u=s&&o.injector.get(El);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Bl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),Ml()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=g(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Bl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(nl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ml),Fi(il),Fi(Ga),Fi(Lr),Fi(wu),Fi(Kc))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Bl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ul=function e(){o(this,e)},zl=function e(){o(this,e)},Wl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Hl=function(){var e=function(){function e(t,n){o(this,e),this._compiler=t,this._config=n||Wl}return s(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("zn8P")(r).then(function(e){return e[o]}).then(function(e){return Gl(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Gl(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(fl),Fi(zl,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function Gl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var ql=Dl(null,"core",[{provide:tl,useValue:"unknown"},{provide:Vl,deps:[Ga]},{provide:El,deps:[]},{provide:il,deps:[]}]),Zl=[{provide:Fl,useClass:Fl,deps:[ml,il,Ga,Lr,wu,Kc]},{provide:bc,deps:[ml],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kc,useClass:Kc,deps:[[new Zi,Yc]]},{provide:fl,useClass:fl,deps:[]},Xc,{provide:Gu,useFactory:function(){return nc},deps:[]},{provide:Zu,useFactory:function(){return ic},deps:[]},{provide:rl,useFactory:function(e){return cu(e=e||"undefined"!=typeof $localize&&$localize.locale||uu),e},deps:[[new qi(rl),new Zi,new Qi]]},{provide:ol,useValue:"USD"}],Ql=function(){var e=function e(t){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(Fl))},providers:Zl}),e}(),Yl=null;function Kl(){return Yl}var Jl=function e(){o(this,e)},Xl=new ki("DocumentToken"),$l=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:eh,token:e,providedIn:"platform"}),e}();function eh(){return Fi(nh)}var th=new ki("Location Initialized"),nh=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i._init(),i}return s(n,[{key:"_init",value:function(){this.location=Kl().getLocation(),this._history=Kl().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Kl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Kl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Kl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){ih()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){ih()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}($l);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({factory:rh,token:e,providedIn:"platform"}),e}();function ih(){return!!window.history.pushState}function rh(){return new nh(Fi(Xl))}function oh(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function ah(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function sh(e){return e&&"?"!==e[0]?"?"+e:e}var uh=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:ch,token:e,providedIn:"root"}),e}();function ch(e){var t=Fi(Xl).location;return new hh(Fi($l),t&&t.origin||"")}var lh=new ki("appBaseHref"),hh=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;if(o(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return s(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return oh(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+sh(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+sh(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+sh(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(uh);return e.\u0275fac=function(t){return new(t||e)(Fi($l),Fi(lh,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),dh=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return s(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=oh(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+sh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+sh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(uh);return e.\u0275fac=function(t){return new(t||e)(Fi($l),Fi(lh,8))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),fh=function(){var e=function(){function e(t,n){var i=this;o(this,e),this._subject=new Pc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=ah(vh(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return s(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+sh(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,vh(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sh(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sh(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(uh),Fi($l))},e.normalizeQueryParams=sh,e.joinWithSlash=oh,e.stripTrailingSlash=ah,e.\u0275prov=Re({factory:ph,token:e,providedIn:"root"}),e}();function ph(){return new fh(Fi(uh),Fi($l))}function vh(e){return e.replace(/\/index.html$/,"")}var mh=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),gh=function e(){o(this,e)},yh=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).locale=e,i}return s(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=au(t);if(n)return n;var i=t.split("-")[0];if(n=au(i))return n;if("en"===i)return ru;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[su.PluralCase]}(t||this.locale)(e)){case mh.Zero:return"zero";case mh.One:return"one";case mh.Two:return"two";case mh.Few:return"few";case mh.Many:return"many";default:return"other"}}}]),n}(gh);return e.\u0275fac=function(t){return new(t||e)(Fi(rl))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function bh(e,t){t=encodeURIComponent(t);var n,i=g(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(u){i.e(u)}finally{i.f()}return null}var _h=function(){var e=function(){function e(t,n,i,r){o(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return s(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ts(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(xe(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Gu),cs(Zu),cs(Ou),cs(Mu))},e.\u0275dir=gt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),kh=function(){function e(t,n,i,r){o(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return s(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}(),wh=function(){var e=function(){function e(t,n,i){o(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return s(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new kh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Sh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Sh(e,s);n.push(u)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(hc),cs(oc),cs(Gu))},e.\u0275dir=gt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),Sh=function e(t,n){o(this,e),this.record=t,this.view=n},Ch=function(){var e=function(){function e(t,n){o(this,e),this._viewContainer=t,this._context=new Eh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return s(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Oh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Oh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(hc),cs(oc))},e.\u0275dir=gt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),Eh=function e(){o(this,e),this.$implicit=null,this.ngIf=null};function Oh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(xe(t),"'."))}var xh=function(){function e(t,n){o(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return s(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Th=function(){var e=function(){function e(){o(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return s(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Mh=function(){var e=function(){function e(t,n,i){o(this,e),this.ngSwitch=i,i._addCase(),this._view=new xh(t,n)}return s(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(hc),cs(oc),cs(Th,1))},e.\u0275dir=gt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Ph=function(){var e=function e(t,n,i){o(this,e),i._addDefault(new xh(t,n))};return e.\u0275fac=function(t){return new(t||e)(cs(hc),cs(oc),cs(Th,1))},e.\u0275dir=gt({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),Ih=function(){var e=function(){function e(t,n,i){o(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return s(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=_(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(Zu),cs(Mu))},e.\u0275dir=gt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),Ah=function(){function e(){o(this,e)}return s(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Rh=new(function(){function e(){o(this,e)}return s(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),Dh=new Ah,Nh=function(){var e=function(){function e(t){o(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return s(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(ys(t))return Rh;if(bs(t))return Dh;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(xe(n),"'"));var n}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:We.Default,t=$u(!0);if(null!=t||e&We.Optional)return t;Rt("ChangeDetectorRef")}())},e.\u0275pipe=yt({name:"async",type:e,pure:!1}),e}(),Lh=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[{provide:gh,useClass:yh}]}),e}();function Vh(e){return"browser"===e}function jh(e){return"server"===e}var Fh=function(){var e=function e(){o(this,e)};return e.\u0275prov=Re({token:e,providedIn:"root",factory:function(){return new Bh(Fi(Xl),window)}}),e}(),Bh=function(){function e(t,n){o(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return s(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Uh(this.window.history)||Uh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Uh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var zh,Wh=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Hh||(Hh=document.querySelector("base"))?Hh.getAttribute("href"):null;return null==n?null:(t=n,zh||(zh=document.createElement("a")),zh.setAttribute("href",t),"/"===zh.pathname.charAt(0)?zh.pathname:"/"+zh.pathname)}},{key:"resetBaseElement",value:function(){Hh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return bh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Yl||(Yl=e)}}]),n}(function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.call(this)}return s(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Jl)),Hh=null,Gh=new ki("TRANSITION_ID"),qh=[{provide:Yc,useFactory:function(e,t,n){return function(){n.get(Kc).donePromise.then(function(){var n=Kl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Gh,Xl,Ga],multi:!0}],Zh=function(){function e(){o(this,e)}return s(e,[{key:"addToWindow",value:function(e){et.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},et.getAllAngularTestabilities=function(){return e.getAllTestabilities()},et.getAllAngularRootElements=function(){return e.getAllRootElements()},et.frameworkStabilizers||(et.frameworkStabilizers=[]),et.frameworkStabilizers.push(function(e){var t=et.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Kl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Ol=t}}]),e}(),Qh=new ki("EventManagerPlugins"),Yh=function(){var e=function(){function e(t,n){var i=this;o(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return s(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Qh),Fi(ml))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Kh=function(){function e(t){o(this,e),this._doc=t}return s(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Kl().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Jh=function(){var e=function(){function e(){o(this,e),this._stylesSet=new Set}return s(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Xh=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return s(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return Kl().remove(e)})}}]),n}(Jh);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),$h={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ed=/%COMP%/g,td="%COMP%",nd="_nghost-".concat(td),id="_ngcontent-".concat(td);function rd(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?rd(e,r,n):(r=r.replace(ed,e),n.push(r))}return n}function od(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var ad=function(){var e=function(){function e(t,n,i){o(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new sd(t)}return s(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ye.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ud(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case Ye.ShadowDom:return new cd(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=rd(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Yh),Fi(Xh),Fi(Jc))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),sd=function(){function e(t){o(this,e),this.eventManager=t,this.data=Object.create(null)}return s(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS($h[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=$h[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=$h[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(Wr.DashCase|Wr.Important)?e.style.setProperty(t,n,i&Wr.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Wr.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,od(n)):this.eventManager.addEventListener(e,t,od(n))}}]),e}(),ud=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;o(this,n),(s=t.call(this,e)).component=r;var u=rd(a+"-"+r.id,r.styles,[]);return i.addStyles(u),s.contentAttr=id.replace(ed,a+"-"+r.id),s.hostAttr=nd.replace(ed,a+"-"+r.id),s}return s(n,[{key:"applyToHost",value:function(e){r(i(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var o=r(i(n.prototype),"createElement",this).call(this,e,t);return r(i(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),n}(sd),cd=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;o(this,n),(s=t.call(this,e)).sharedStylesHost=i,s.hostEl=r,s.shadowRoot=r.attachShadow({mode:"open"}),s.sharedStylesHost.addHost(s.shadowRoot);for(var u=rd(a.id,a.styles,[]),c=0;c<u.length;c++){var l=document.createElement("style");l.textContent=u[c],s.shadowRoot.appendChild(l)}return s}return s(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return r(i(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,o){return r(i(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,o)}},{key:"removeChild",value:function(e,t){return r(i(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(r(i(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(sd),ld=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return s(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Kh);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),hd=["alt","control","meta","shift"],dd={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},pd={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},vd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return s(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Kl().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(hd.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&fd.hasOwnProperty(t)&&(t=fd[t]))}return dd[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),hd.forEach(function(i){i!=n&&(0,pd[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Kh);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),md=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:function(){return Fi(gd)},token:e,providedIn:"root"}),e}(),gd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i}return s(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Mr.NONE:return t;case Mr.HTML:return rr(t,"HTML")?ir(t):xr(this._doc,String(t)).toString();case Mr.STYLE:return rr(t,"Style")?ir(t):t;case Mr.SCRIPT:if(rr(t,"Script"))return ir(t);throw new Error("unsafe value used in a script context");case Mr.URL:return or(t),rr(t,"URL")?ir(t):lr(String(t));case Mr.RESOURCE_URL:if(rr(t,"ResourceURL"))return ir(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Xi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new $i(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new er(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new tr(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new nr(e)}}]),n}(md);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({factory:function(){return e=Fi(Ta),new gd(e.get(Xl));var e},token:e,providedIn:"root"}),e}(),yd=Dl(ql,"browser",[{provide:tl,useValue:"browser"},{provide:el,useValue:function(){Wh.makeCurrent(),Zh.init()},multi:!0},{provide:Xl,useFactory:function(){return function(e){Bt=e}(document),document},deps:[]}]),bd=[[],{provide:Pa,useValue:"root"},{provide:Lr,useFactory:function(){return new Lr},deps:[]},{provide:Qh,useClass:ld,multi:!0,deps:[Xl,ml,tl]},{provide:Qh,useClass:vd,multi:!0,deps:[Xl]},[],{provide:ad,useClass:ad,deps:[Yh,Xh,Jc]},{provide:Tu,useExisting:ad},{provide:Jh,useExisting:Xh},{provide:Xh,useClass:Xh,deps:[Xl]},{provide:Cl,useClass:Cl,deps:[ml]},{provide:Yh,useClass:Yh,deps:[Qh,ml]},[]],_d=function(){var e=function(){function e(t){if(o(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return s(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Jc,useValue:t.appId},{provide:Gh,useExisting:Jc},qh]}}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(e,12))},providers:bd,imports:[Lh,Ql]}),e}();function kd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(x(i))return wd(i,null);if(T(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return wd(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return wd(t=1===t.length&&x(t[0])?t[0]:t,null).pipe(J(function(e){return o.apply(void 0,C(e))}))}return wd(t,null)}function wd(e,t){return new W(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var u=se(e[s]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&c||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},u=0;u<i;u++)s(u);else n.complete()})}"undefined"!=typeof window&&window;var Sd=new ki("NgValueAccessor"),Cd={provide:Sd,useExisting:Pe(function(){return Ed}),multi:!0},Ed=function(){var e=function(){function e(t,n){o(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return s(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&ks("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[yu([Cd])]}),e}(),Od={provide:Sd,useExisting:Pe(function(){return Td}),multi:!0},xd=new ki("CompositionEventMode"),Td=function(){var e=function(){function e(t,n,i){var r;o(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Kl()?Kl().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return s(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou),cs(xd,8))},e.\u0275dir=gt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&ks("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[yu([Od])]}),e}();function Md(e){return null==e||0===e.length}function Pd(e){return null!=e&&"number"==typeof e.length}var Id=new ki("NgValidators"),Ad=new ki("NgAsyncValidators"),Rd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Dd=function(){function e(){o(this,e)}return s(e,null,[{key:"min",value:function(e){return function(t){if(Md(t.value)||Md(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(Md(t.value)||Md(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Md(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Md(e.value)||Rd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return Md(t.value)||!Pd(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"maxLength",value:function(e){return function(t){return Pd(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Md(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Nd);return 0==t.length?null:function(e){return Vd(jd(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Nd);return 0==t.length?null:function(e){return kd(jd(e,t).map(Ld)).pipe(J(Vd))}}}]),e}();function Nd(e){return null!=e}function Ld(e){var t=ys(e)?se(e):e;return _s(t),t}function Vd(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function jd(e,t){return t.map(function(t){return t(e)})}function Fd(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Bd(e){return null!=e?Dd.compose(Fd(e)):null}function Ud(e){return null!=e?Dd.composeAsync(Fd(e)):null}function zd(e,t){return null===e?[t]:Array.isArray(e)?[].concat(C(e),[t]):[e,t]}function Wd(e){return e._rawValidators}function Hd(e){return e._rawAsyncValidators}var Gd=function(){var e=function(){function e(){o(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return s(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Bd(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ud(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),qd=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Gd);return e.\u0275fac=function(t){return Zd(t||e)},e.\u0275dir=gt({type:e,features:[Za]}),e}(),Zd=gi(qd),Qd=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Gd),Yd=function(){function e(t){o(this,e),this._cd=t}return s(e,[{key:"ngClassUntouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.untouched)&&void 0!==n&&n}},{key:"ngClassTouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.touched)&&void 0!==n&&n}},{key:"ngClassPristine",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pristine)&&void 0!==n&&n}},{key:"ngClassDirty",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.dirty)&&void 0!==n&&n}},{key:"ngClassValid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.valid)&&void 0!==n&&n}},{key:"ngClassInvalid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.invalid)&&void 0!==n&&n}},{key:"ngClassPending",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pending)&&void 0!==n&&n}}]),e}(),Kd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return n}(Yd);return e.\u0275fac=function(t){return new(t||e)(cs(Qd,2))},e.\u0275dir=gt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Us("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Za]}),e}(),Jd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return n}(Yd);return e.\u0275fac=function(t){return new(t||e)(cs(qd,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Us("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Za]}),e}(),Xd={provide:Sd,useExisting:Pe(function(){return $d}),multi:!0},$d=function(){var e=function(){function e(t,n){o(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return s(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&ks("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[yu([Xd])]}),e}(),ef={provide:Sd,useExisting:Pe(function(){return nf}),multi:!0},tf=function(){var e=function(){function e(){o(this,e),this._accessors=[]}return s(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),nf=function(){var e=function(){function e(t,n,i,r){o(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return s(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Qd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou),cs(tf),cs(Ga))},e.\u0275dir=gt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&ks("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[yu([ef])]}),e}(),rf={provide:Sd,useExisting:Pe(function(){return of}),multi:!0},of=function(){var e=function(){function e(t,n){o(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return s(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&ks("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[yu([rf])]}),e}(),af={provide:Sd,useExisting:Pe(function(){return sf}),multi:!0},sf=function(){var e=function(){function e(t,n){o(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return s(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&ks("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yu([af])]}),e}(),uf={provide:Sd,useExisting:Pe(function(){return cf}),multi:!0},cf=function(){var e=function(){function e(t,n){o(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return s(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var u=n.options,c=0;c<u.length;c++){var l=u.item(c);if(l.selected){var h=t._getOptionValue(l.value);i.push(h)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Mu),cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&ks("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[yu([uf])]}),e}();function lf(e,t){ff(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&vf(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&vf(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function hf(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),pf(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function df(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ff(e,t,n){var i=Wd(e);null!==t.validator?e.setValidators(zd(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=Hd(e);if(null!==t.asyncValidator?e.setAsyncValidators(zd(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};df(t._rawValidators,o),df(t._rawAsyncValidators,o)}}function pf(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=Wd(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=Hd(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var u=function(){};df(t._rawValidators,u),df(t._rawAsyncValidators,u)}return i}function vf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function mf(e,t){ff(e,t,!1)}function gf(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var yf=[Ed,of,$d,sf,cf,nf];function bf(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function _f(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){var t;e.constructor===Td?n=e:(t=e,yf.some(function(e){return t.constructor===e})?i=e:r=e)}),r||i||n||null}function kf(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var wf="VALID",Sf="INVALID",Cf="PENDING",Ef="DISABLED";function Of(e){return(Pf(e)?e.validators:e)||null}function xf(e){return Array.isArray(e)?Bd(e):e||null}function Tf(e,t){return(Pf(t)?t.asyncValidators:e)||null}function Mf(e){return Array.isArray(e)?Ud(e):e||null}function Pf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var If=function(){function e(t,n){o(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=xf(this._rawValidators),this._composedAsyncValidatorFn=Mf(this._rawAsyncValidators)}return s(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===wf}},{key:"invalid",get:function(){return this.status===Sf}},{key:"pending",get:function(){return this.status==Cf}},{key:"disabled",get:function(){return this.status===Ef}},{key:"enabled",get:function(){return this.status!==Ef}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=xf(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Mf(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Cf,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=Ef,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=wf,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==wf&&this.status!==Cf||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Ef:wf}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=Cf,this._hasOwnPendingAsyncValidator=!0;var n=Ld(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Rf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Df&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Pc,this.statusChanges=new Pc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Ef:this.errors?Sf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Cf)?Cf:this._anyControlsHaveStatus(Sf)?Sf:wf}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Pf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Af=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return o(this,n),(e=t.call(this,Of(r),Tf(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return s(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){kf(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){kf(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(If),Rf=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,Of(i),Tf(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return s(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Af?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(If),Df=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,Of(i),Tf(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return s(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Af?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=g(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(If),Nf={provide:qd,useExisting:Pe(function(){return Vf})},Lf=function(){return Promise.resolve(null)}(),Vf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Pc,r.form=new Rf({},Bd(e),Ud(i)),r}return s(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Lf.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),lf(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Lf.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),kf(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Lf.then(function(){var n=t._findContainer(e.path),i=new Rf({});mf(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Lf.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Lf.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,bf(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(qd);return e.\u0275fac=function(t){return new(t||e)(cs(Id,10),cs(Ad,10))},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yu([Nf]),Za]}),e}(),jf={provide:Qd,useExisting:Pe(function(){return Bf})},Ff=function(){return Promise.resolve(null)}(),Bf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this)).control=new Af,s._registered=!1,s.update=new Pc,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=_f(d(s),a),s}return s(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),gf(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(C(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){lf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Ff.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ff.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Qd);return e.\u0275fac=function(t){return new(t||e)(cs(qd,9),cs(Id,10),cs(Ad,10),cs(Sd,10))},e.\u0275dir=gt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yu([jf]),Za,Nt]}),e}(),Uf=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),zf=new ki("NgModelWithFormControlWarning"),Wf={provide:Qd,useExisting:Pe(function(){return Hf})},Hf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new Pc,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(i),s.valueAccessor=_f(d(s),r),s}return s(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&hf(t,this),lf(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}gf(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&hf(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Qd);return e.\u0275fac=function(t){return new(t||e)(cs(Id,10),cs(Ad,10),cs(Sd,10),cs(zf,8))},e.\u0275dir=gt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[yu([Wf]),Za,Nt]}),e._ngModelWarningSentOnce=!1,e}(),Gf={provide:qd,useExisting:Pe(function(){return qf})},qf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Pc,r._setValidators(e),r._setAsyncValidators(i),r}return s(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(pf(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return lf(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){hf(e.control||null,e),kf(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,bf(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(hf(t.control||null,t),n&&lf(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);mf(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return pf(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ff(this.form,this,!1),this._oldForm&&pf(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(qd);return e.\u0275fac=function(t){return new(t||e)(cs(Id,10),cs(Ad,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yu([Gf]),Za,Nt]}),e}(),Zf=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)}}),e}();function Qf(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Yf=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(Qf(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Rf(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new Af(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Df(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof Af||e instanceof Rf||e instanceof Df?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Kf=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[tf],imports:[Zf]}),e}(),Jf=function(){var e=function(){function e(){o(this,e)}return s(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:zf,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Yf,tf],imports:[Zf]}),e}(),Xf=function e(){o(this,e)},$f=function e(){o(this,e)},ep="*";function tp(e,t){return{type:7,name:e,definitions:t,options:{}}}function np(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function rp(e){return{type:6,styles:e,offset:null}}function op(e,t,n){return{type:0,name:e,styles:t,options:n}}function ap(e){return{type:5,steps:e}}function sp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function up(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function cp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function lp(e){Promise.resolve(null).then(e)}var hp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;lp(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),dp=function(){function e(t){var n=this;o(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,s=this.players.length;0==s?lp(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==s&&n._onFinish()}),e.onDestroy(function(){++r==s&&n._onDestroy()}),e.onStart(function(){++a==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),fp="!";function pp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function vp(e){switch(e.length){case 0:return new hp;case 1:return e[0];default:return new dp(e)}}function mp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==u,l=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case fp:s=r[n];break;case ep:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}l[i]=s}),i||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function gp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&yp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&yp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&yp(n,"destroy",e))})}}function yp(e,t,n){var i=n.totalTime,r=bp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function bp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function _p(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function kp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var wp=function(e,t){return!1},Sp=function(e,t){return!1},Cp=function(e,t,n){return[]},Ep=pp();(Ep||"undefined"!=typeof Element)&&(wp=function(e,t){return e.contains(t)},Sp=function(){if(Ep||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Sp}(),Cp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var Op=null,xp=!1;function Tp(e){Op||(Op=("undefined"!=typeof document?document.body:null)||{},xp=!!Op.style&&"WebkitAppearance"in Op.style);var t=!0;return Op.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Op.style)&&xp&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Op.style),t}var Mp=Sp,Pp=wp,Ip=Cp;function Ap(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Rp=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"validateStyleProperty",value:function(e){return Tp(e)}},{key:"matchesElement",value:function(e,t){return Mp(e,t)}},{key:"containsElement",value:function(e,t){return Pp(e,t)}},{key:"query",value:function(e,t,n){return Ip(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new hp(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Dp=function(){var e=function e(){o(this,e)};return e.NOOP=new Rp,e}(),Np="ng-enter",Lp="ng-leave",Vp="ng-trigger",jp=".ng-trigger",Fp="ng-animating",Bp=".ng-animating";function Up(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:zp(parseFloat(t[1]),t[2])}function zp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Wp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=zp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=zp(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var c=!1,l=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function Hp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Gp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Hp(e,n);return n}function qp(e,t,n){return n?t+":"+n+";":""}function Zp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=qp(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=qp(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Qp(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=nv(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),pp()&&Zp(e))}function Yp(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=nv(t);e.style[n]=""}),pp()&&Zp(e))}function Kp(e){return Array.isArray(e)?1==e.length?e[0]:ip(e):e}var Jp=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Xp(e){var t=[];if("string"==typeof e){for(var n;n=Jp.exec(e);)t.push(n[1]);Jp.lastIndex=0}return t}function $p(e,t,n){var i=e.toString(),r=i.replace(Jp,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function ev(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var tv=/-+([a-z0-9])/g;function nv(e){return e.replace(tv,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function iv(e,t){return 0===e||0===t}function rv(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=av(e,t)})},s=1;s<t.length;s++)a()}return t}function ov(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function av(e,t){return window.getComputedStyle(e)[t]}var sv="*",uv=new Set(["true","1"]),cv=new Set(["false","0"]);function lv(e,t){var n=uv.has(e)||cv.has(e),i=uv.has(t)||cv.has(t);return function(r,o){var a=e==sv||e==r,s=t==sv||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?uv.has(e):cv.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?uv.has(t):cv.has(t)),a&&s}}var hv=":self",dv=new RegExp("s*".concat(hv,"s*,?"),"g");function fv(e,t,n){return new pv(e).build(t,n)}var pv=function(){function e(t){o(this,e),this._driver=t}return s(e,[{key:"build",value:function(e,t){var n=new vv(t);return this._resetContextStyleTimingState(n),ov(this,Kp(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(mv(e)){var t=e;Object.keys(t).forEach(function(e){Xp(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=ev(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=ov(this,Kp(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(lv(o,s)),"<"!=a[0]||o==sv&&s==sv||t.push(lv(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:gv(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ov(n,e,t)}),options:gv(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ov(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:gv(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return yv(Wp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=yv(0,0,"");return r.dynamic=!0,r.strValue=i,r}return yv((n=n||Wp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:rp({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=rp(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==ep?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(mv(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,c=t.collectedStyles[t.currentQuerySelector],l=c[i],h=!0;l&&(o!=r&&o>=l.startTime&&r<=l.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(l.startTime,'ms" and "').concat(l.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),h=!1),o=l.startTime),h&&(c[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(u=Xp(e[i])).length&&u.forEach(function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(mv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(mv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=c&&(r++,l=i.offset=c),s=s||l<0||l>1,a=a||l<u,u=l,o.push(l),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,h=0;r>0&&r<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(l-1));var d=l-1,f=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return c.forEach(function(e,r){var a=h>0?r==d?1:h*r:o[r],s=a*v;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ov(this,Kp(e.animation),t),options:gv(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:gv(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:gv(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==hv});return t&&(e=e.replace(dv,"")),[e=e.replace(/@\*/g,jp).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Bp),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,_p(t.collectedStyles,t.currentQuerySelector,{});var s=ov(this,Kp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:gv(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Wp(e.timings,t.errors,!0);return{type:12,animation:ov(this,Kp(e.animation),t),timings:n,options:null}}}]),e}(),vv=function e(t){o(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function mv(e){return!Array.isArray(e)&&"object"==typeof e}function gv(e){var t;return e?(e=Hp(e)).params&&(e.params=(t=e.params)?Hp(t):null):e={},e}function yv(e,t,n){return{duration:e,delay:t,easing:n}}function bv(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var _v=function(){function e(){o(this,e),this._map=new Map}return s(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,C(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),kv=new RegExp(":enter","g"),wv=new RegExp(":leave","g");function Sv(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Cv).buildKeyframes(e,t,n,i,r,o,a,s,u,c)}var Cv=function(){function e(){o(this,e)}return s(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new _v;var l=new Ov(e,t,u,i,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),ov(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[bv(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Up(n.duration):null,o=null!=n.delay?Up(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ov(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ev);var a=Up(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ov(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Up(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ov(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Wp(t.params?$p(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?Up(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ev);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ov(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;ov(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Ev={},Ov=function(){function e(t,n,i,r,a,s,u,c){o(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=s,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ev,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new xv(this._driver,n,0),u.push(this.currentTimeline)}return s(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Up(i.duration)),null!=i.delay&&(r.delay=Up(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=$p(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ev,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Tv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(kv,"."+this._enterClassName)).replace(wv,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,C(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),xv=function(){function e(t,n,i,r){o(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return s(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||ep,t._currentKeyframe[e]=ep}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=ep}):Gp(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=$p(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:ep),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=Gp(o,!0);Object.keys(s).forEach(function(e){var i=s[e];i==fp?t.add(e):i==ep&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?ev(t.values()):[],a=n.size?ev(n.values()):[];if(i){var s=r[0],u=Hp(s);s.offset=0,u.offset=1,r=[s,u]}return bv(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Tv=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return o(this,n),(c=t.call(this,e,i,u.delay)).element=i,c.keyframes=r,c.preStyleProps=a,c.postStyleProps=s,c._stretchStartingKeyframe=l,c.timings={duration:u.duration,delay:u.delay,easing:u.easing},c}return s(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=Gp(e[0],!1);u.offset=0,o.push(u);var c=Gp(e[0],!1);c.offset=Mv(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=Gp(e[h],!1);d.offset=Mv((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return bv(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(xv);function Mv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Pv=function e(){o(this,e)},Iv=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"normalizePropertyName",value:function(e,t){return nv(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Av[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Pv),Av=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function Rv(e,t,n,i,r,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var Dv={},Nv=function(){function e(t,n,i){o(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return s(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||Dv,d=this.buildStyles(n,a&&a.params||Dv,l),f=s&&s.params||Dv,p=this.buildStyles(i,f,l),v=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),f)},_=c?[]:Sv(e,t,this.ast.animation,r,o,d,p,b,u,l),k=0;if(_.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),l.length)return Rv(t,this._triggerName,n,i,y,d,p,[],[],m,g,k,l);_.forEach(function(e){var n=e.element,i=_p(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=_p(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=ev(v.values());return Rv(t,this._triggerName,n,i,y,d,p,_,w,m,g,k)}}]),e}(),Lv=function(){function e(t,n){o(this,e),this.styles=t,this.defaultParams=n}return s(e,[{key:"buildStyles",value:function(e,t){var n={},i=Hp(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=$p(o,i,t)),n[e]=o})}}),n}}]),e}(),Vv=function(){function e(t,n){var i=this;o(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Lv(e.style,e.options&&e.options.params||{})}),jv(this.states,"true","1"),jv(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Nv(t,e,i.states))}),this.fallbackTransition=new Nv(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return s(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function jv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Fv=new _v,Bv=function(){function e(t,n,i){o(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return s(e,[{key:"register",value:function(e,t){var n=[],i=fv(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=mp(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Sv(this._driver,t,a,Np,Lp,{},{},r,Fv,o)).forEach(function(e){var t=_p(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,ep)})});var u=n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}),c=vp(u);return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=bp(t,"","","");return gp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Uv="ng-animate-queued",zv="ng-animate-disabled",Wv=".ng-animate-disabled",Hv="ng-star-inserted",Gv=[],qv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";o(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=em(r),i){var a=Hp(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return s(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Yv="void",Kv=new Qv(Yv),Jv=function(){function e(t,n,i){o(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,om(n,this._hostClassName)}return s(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=_p(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=_p(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(om(e,Vp),om(e,"ng-trigger-"+t),u[t]=Kv),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new $v(this.id,t,e),s=this._engine.statesByElement.get(e);s||(om(e,Vp),om(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new Qv(n,this.id),l=n&&n.hasOwnProperty("value");!l&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=Kv);var h=c.value===Yv;if(h||u.value!==c.value){var d=_p(this._engine.playersByElement,e,[]);d.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=o.matchTransition(u.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:u,toState:c,player:a,isFallbackTransition:p}),p||(om(e,Uv),a.onStart(function(){am(e,Uv)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),d.push(a),a}if(!cm(u.params,c.params)){var v=[],m=o.matchStyles(u.value,u.params,v),g=o.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(function(){Yp(e,m),Qp(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,jp,!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,Yv,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&vp(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var i=new Set;n.forEach(function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=t._triggers[r].fallbackTransition,a=t._engine.statesByElement.get(e)[r]||Kv,s=new Qv(Yv),u=new $v(t.id,r,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:r,transition:o,fromState:a,toState:s,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==qv||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){om(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=bp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,gp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Xv=function(){function e(t,n,i){o(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return s(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Jv(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(tm(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(tm(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),om(e,zv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),am(e,zv))}},{key:"removeNode",value:function(e,t,n,i){if(tm(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return tm(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,jp,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Bp,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return vp(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=qv,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Wv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Wv,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];om(r,Hv)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var u=this.collectedLeaveElements[s];this.processLeaveNode(u)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var c=this._whenQuietFns;this._whenQuietFns=[],n.length?vp(n).onDone(function(){c.forEach(function(e){return e()})}):c.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new _v,r=[],o=new Map,a=[],s=new Map,u=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(function(e){l.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)l.add(t[i])});var h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=rm(d,this.collectedEnterElements),p=new Map,v=0;f.forEach(function(e,t){var n=Np+v++;p.set(t,n),e.forEach(function(e){return om(e,n)})});for(var m=[],g=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++){var _=this.collectedLeaveElements[b],k=_.__ng_removed;k&&k.setForRemoval&&(m.push(_),g.add(_),k.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach(function(e){return g.add(e)}):y.add(_))}var w=new Map,S=rm(d,Array.from(g));S.forEach(function(e,t){var n=Lp+v++;w.set(t,n),e.forEach(function(e){return om(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return am(e,n)})}),S.forEach(function(e,t){var n=w.get(t);e.forEach(function(e){return am(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var E=[],O=[],x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(E.push(t),n.collectedEnterElements.length){var l=o.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,o),f=w.get(o),v=p.get(o),m=n._buildInstruction(e,i,v,f,d);if(m.errors&&m.errors.length)O.push(m);else{if(d)return t.onStart(function(){return Yp(o,m.fromStyles)}),t.onDestroy(function(){return Qp(o,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Yp(o,m.fromStyles)}),t.onDestroy(function(){return Qp(o,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return _p(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(O.length){var T=[];O.forEach(function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return T.push("- ".concat(e,"\n"))})}),E.forEach(function(e){return e.destroy()}),this.reportError(T)}var M=new Map,P=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,M))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){_p(M,t,[]).push(e),e.destroy()})});var I=m.filter(function(e){return lm(e,u,c)}),A=new Map;im(A,this.driver,y,c,ep).forEach(function(e){lm(e,u,c)&&I.push(e)});var R=new Map;f.forEach(function(e,t){im(R,n.driver,new Set(e),u,fp)}),I.forEach(function(e){var t=A.get(e),n=R.get(e);A.set(e,Object.assign(Object.assign({},t),n))});var D=[],N=[],L={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return a.onDestroy(function(){return Qp(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var u=L;if(P.size>1){for(var c=t,h=[];c=c.parentNode;){var d=P.get(c);if(d){u=d;break}h.push(c)}h.forEach(function(e){return P.set(e,u)})}var f=n._buildAnimation(a.namespaceId,s,M,o,R,A);if(a.setRealPlayer(f),u===L)D.push(a);else{var p=n.playersByElement.get(u);p&&p.length&&(a.parentPlayer=vp(p)),r.push(a)}}else Yp(t,s.fromStyles),a.onDestroy(function(){return Qp(t,s.toStyles)}),N.push(a),l.has(t)&&r.push(a)}),N.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=vp(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var V=0;V<m.length;V++){var j=m[V],F=j.__ng_removed;if(am(j,Lp),!F||!F.hasAnimation){var B=[];if(s.size){var U=s.get(j);U&&U.length&&B.push.apply(B,C(U));for(var z=this.driver.query(j,Bp,!0),W=0;W<z.length;W++){var H=s.get(z[W]);H&&H.length&&B.push.apply(B,C(H))}}var G=B.filter(function(e){return!e.destroyed});G.length?sm(this,j,G):this.processLeaveNode(j)}}return m.length=0,D.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),D}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var u=!r||r==Yv;s.forEach(function(e){e.queued||(u||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,u=g(t.timelines);try{var c=function(){var e=i.value.element,u=e!==o,c=_p(n,e,[]);r._getPreviousPlayers(e,u,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})};for(u.s();!(i=u.n()).done;)c()}catch(l){u.e(l)}finally{u.f()}Yp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,u=t.element,c=[],l=new Set,h=new Set,d=t.timelines.map(function(t){var d=t.element;l.add(d);var f=d.__ng_removed;if(f&&f.removedBeforeQueried)return new hp(t.duration,t.delay);var p,v,m=d!==u,g=(p=(n.get(d)||Gv).map(function(e){return e.getRealPlayer()}),v=[],um(p,v),v).filter(function(e){return!!e.element&&e.element===d}),y=r.get(d),b=o.get(d),_=mp(a.driver,a._normalizer,d,t.keyframes,y,b),k=a._buildPlayer(t,_,g);if(t.subTimeline&&i&&h.add(d),m){var w=new $v(e,s,d);w.setRealPlayer(k),c.push(w)}return k});c.forEach(function(e){_p(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),l.forEach(function(e){return om(e,Fp)});var f=vp(d);return f.onDestroy(function(){l.forEach(function(e){return am(e,Fp)}),Qp(u,t.toStyles)}),h.forEach(function(e){_p(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new hp(e.duration,e.delay)}}]),e}(),$v=function(){function e(t,n,i){o(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new hp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return s(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return gp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){_p(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function em(e){return null!=e?e:null}function tm(e){return e&&1===e.nodeType}function nm(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function im(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(nm(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Zv,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return nm(e,o[s++])}),a}function rm(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function om(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function am(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function sm(e,t,n){vp(n).onDone(function(){return e.processLeaveNode(t)})}function um(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof dp?um(i.players,t):t.push(i)}}function cm(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function lm(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var hm=function(){function e(t,n,i){var r=this;o(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Xv(t,n,i),this._timelineEngine=new Bv(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return s(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],u=fv(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Vv(e,t)}(i,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=_(kp(n),2);this._timelineEngine.command(r[0],t,r[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=_(kp(n),2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function dm(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=pm(t[0]),t.length>1&&(i=pm(t[t.length-1]))):t&&(n=pm(t)),n||i?new fm(e,n,i):null}var fm=function(){var e=function(){function e(t,n,i){o(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return s(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Qp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Qp(this._element,this._initialStyles),this._endStyles&&(Qp(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Yp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yp(this._element,this._endStyles),this._endStyles=null),Qp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function pm(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];vm(r)&&((t=t||{})[r]=e[r])}return t}function vm(e){return"display"===e||"position"===e}var mm="animation",gm="animationend",ym=function(){function e(t,n,i,r,a,s,u){var c=this;o(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=a,this._fillMode=s,this._onDoneFn=u,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return c._handleCallback(e)}}return s(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Cm(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),Sm(e,"",t),wm(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){bm(this._element,this._name,"paused")}},{key:"resume",value:function(){bm(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=_m(this._element,this._name);this._position=e*this._duration,Sm(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),wm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=km(n=Cm(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),Sm(e,"",n.join(","))))}}]),e}();function bm(e,t,n){Sm(e,"PlayState",n,_m(e,t))}function _m(e,t){var n=Cm(e,"");return n.indexOf(",")>0?km(n.split(","),t):km([n],t)}function km(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function wm(e,t,n){n?e.removeEventListener(gm,t):e.addEventListener(gm,t)}function Sm(e,t,n,i){var r=mm+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Cm(e,t){return e.style[mm+t]||""}var Em=function(){function e(t,n,i,r,a,s,u,c){o(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=u,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+a,this._buildStyler()}return s(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ym(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:av(e.element,i))})}this.currentSnapshot=t}}]),e}(),Om=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ap(i),r}return s(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(hp),xm="gen_css_kf_",Tm=function(){function e(){o(this,e),this._count=0,this._head=document.querySelector("head")}return s(e,[{key:"validateStyleProperty",value:function(e){return Tp(e)}},{key:"matchesElement",value:function(e,t){return Mp(e,t)}},{key:"containsElement",value:function(e,t){return Pp(e,t)}},{key:"query",value:function(e,t,n){return Ip(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Ap(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Em}),s={};iv(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=Mm(t=rv(e,t,s));if(0==n)return new Om(e,u);var c="".concat(xm).concat(this._count++),l=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(l);var h=dm(e,t),d=new Em(e,t,c,n,i,r,u,h);return d.onDestroy(function(){return Pm(l)}),d}}]),e}();function Mm(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}function Pm(e){e.parentNode.removeChild(e)}var Im=function(){function e(t,n,i,r){o(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:av(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Am=function(){function e(){o(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Rm().toString()),this._cssKeyframesDriver=new Tm}return s(e,[{key:"validateStyleProperty",value:function(e){return Tp(e)}},{key:"matchesElement",value:function(e,t){return Mp(e,t)}},{key:"containsElement",value:function(e,t){return Pp(e,t)}},{key:"query",value:function(e,t,n){return Ip(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var u=0==i?"both":"forwards",c={duration:n,delay:i,fill:u};r&&(c.easing=r);var l={},h=o.filter(function(e){return e instanceof Im});iv(n,i)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var d=dm(e,t=rv(e,t=t.map(function(e){return Gp(e,!1)}),l));return new Im(e,t,c,d)}}]),e}();function Rm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Dm=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ye.None,styles:[],data:{animation:[]}}),r}return s(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?ip(e):e;return Vm(this._renderer,null,t,"register",[n]),new Nm(t,this._renderer)}}]),n}(Xf);return e.\u0275fac=function(t){return new(t||e)(Fi(Tu),Fi(Xl))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Nm=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return s(n,[{key:"create",value:function(e,t){return new Lm(this._id,e,t||{},this._renderer)}}]),n}($f),Lm=function(){function e(t,n,i,r){o(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return s(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Vm(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Vm(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var jm,Fm="@",Bm="@.disabled",Um=function(){var e=function(){function e(t,n,i){o(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return s(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new zm("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Wm(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=_(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Tu),Fi(hm),Fi(ml))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),zm=function(){function e(t,n,i){o(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return s(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==Fm&&t==Bm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Wm=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,i,r,a)).factory=e,s.namespaceId=i,s}return s(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==Fm?"."==t.charAt(1)&&t==Bm?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if(t.charAt(0)==Fm){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),u="";if(s.charAt(0)!=Fm){var c=_((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=c[0],u=c[1]}return this.engine.listen(this.namespaceId,a,s,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(zm),Hm=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){return o(this,n),t.call(this,e.body,i,r)}return n}(hm);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl),Fi(Dp),Fi(Pv))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Gm=new ki("AnimationModuleType"),qm=[{provide:Xf,useClass:Dm},{provide:Pv,useFactory:function(){return new Iv}},{provide:hm,useClass:Hm},{provide:Tu,useFactory:function(e,t,n){return new Um(e,t,n)},deps:[ad,hm,ml]}],Zm=[{provide:Dp,useFactory:function(){return"function"==typeof Rm()?new Am:new Tm}},{provide:Gm,useValue:"BrowserAnimations"}].concat(qm),Qm=([{provide:Dp,useClass:Rp},{provide:Gm,useValue:"NoopAnimations"}].concat(qm),function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:Zm,imports:[_d]}),e}());try{jm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(rD){jm=!1}var Ym,Km,Jm,Xm,$m,eg=function(){var e=function e(t){o(this,e),this._platformId=t,this.isBrowser=this._platformId?Vh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!jm)&&"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)(Fi(tl))},e.\u0275prov=Re({factory:function(){return new e(Fi(tl))},token:e,providedIn:"root"}),e}(),tg=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)}}),e}(),ng=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ig(){if(Ym)return Ym;if("object"!=typeof document||!document)return Ym=new Set(ng);var e=document.createElement("input");return Ym=new Set(ng.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function rg(e){return function(){if(null==Km&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Km=!0}}))}finally{Km=Km||!1}return Km}()?e:!!e.capture}function og(){if("object"!=typeof document||!document)return 0;if(null==Jm){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Jm=0,0===e.scrollLeft&&(e.scrollLeft=1,Jm=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Jm}function ag(e){if(function(){if(null==$m){var e="undefined"!=typeof document?document.head:null;$m=!(!e||!e.createShadowRoot&&!e.attachShadow)}return $m}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function sg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return K(i)?(t.pop(),ae(t,i)):ve(t)}var ug=27;function cg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function lg(){}function hg(e,t,n){return function(i){return i.lift(new dg(e,t,n))}}var dg=function(){function e(t,n,i){o(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new fg(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),fg=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e))._tapNext=lg,s._tapError=lg,s._tapComplete=lg,s._tapError=r||lg,s._tapComplete=a||lg,M(i)?(s._context=d(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||lg,s._tapError=i.error||lg,s._tapComplete=i.complete||lg),s}return s(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(j),pg=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return s(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){c(n,e);var t=p(n);function n(e,i){return o(this,n),t.call(this)}return s(n,[{key:"schedule",value:function(e){return this}}]),n}(I)),vg=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;o(this,e),this.SchedulerAction=t,this.now=n}return s(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),mg=function(e){c(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vg.now;return o(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return s(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):r(i(n.prototype),"schedule",this).call(this,e,t,o)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(vg),gg=new mg(pg);function yg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gg;return function(n){return n.lift(new bg(e,t))}}var bg=function(){function e(t,n){o(this,e),this.dueTime=t,this.scheduler=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new _g(e,this.dueTime,this.scheduler))}}]),e}(),_g=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return s(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(kg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(j);function kg(e){e.debouncedNext()}function wg(e,t){return function(n){return n.lift(new Sg(e,t))}}var Sg=function(){function e(t,n){o(this,e),this.predicate=t,this.thisArg=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Cg(e,this.predicate,this.thisArg))}}]),e}(),Cg=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return s(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(j),Eg=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),Og=new W(function(e){return e.complete()});function xg(e){return e?function(e){return new W(function(t){return e.schedule(function(){return t.complete()})})}(e):Og}function Tg(e){return function(t){return 0===e?xg():t.lift(new Mg(e))}}var Mg=function(){function e(t){if(o(this,e),this.total=t,this.total<0)throw new Eg}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Pg(e,this.total))}}]),e}(),Pg=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return s(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(j);function Ig(e){return null!=e&&"false"!=="".concat(e)}function Ag(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Rg(e)?Number(e):t}function Rg(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Dg(e){return Array.isArray(e)?e:[e]}function Ng(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Lg(e){return e instanceof Ou?e.nativeElement:e}var Vg=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),jg=function(){var e=function(){function e(t){o(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return s(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=Lg(e);return new W(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Q,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Vg))},e.\u0275prov=Re({factory:function(){return new e(Fi(Vg))},token:e,providedIn:"root"}),e}(),Fg=function(){var e=function(){function e(t,n,i){o(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Pc,this._disabled=!1,this._currentSubscription=null}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Ig(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Ag(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(yg(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(jg),cs(Ou),cs(ml))},e.\u0275dir=gt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),Bg=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Vg]}),e}();function Ug(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var zg="cdk-describedby-message-container",Wg="cdk-describedby-message",Hg="cdk-describedby-host",Gg=0,qg=new Map,Zg=null,Qg=function(){var e=function(){function e(t,n){o(this,e),this._platform=n,this._document=t}return s(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),qg.set(t,{messageElement:t,referenceCount:0})):qg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=qg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Zg&&0===Zg.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(Hg,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(Hg);Zg&&this._deleteMessagesContainer(),qg.clear()}},{key:"_createMessageElement",value:function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),Zg.appendChild(t),qg.set(e,{messageElement:t,referenceCount:0})}},{key:"_setMessageId",value:function(e){e.id||(e.id="".concat(Wg,"-").concat(Gg++))}},{key:"_deleteMessageElement",value:function(e){var t=qg.get(e),n=t&&t.messageElement;Zg&&n&&Zg.removeChild(n),qg.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!Zg){var e=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,t=this._document.getElementById(zg);t&&t.parentNode&&t.parentNode.removeChild(t),(Zg=this._document.createElement("div")).id=zg,Zg.classList.add("cdk-visually-hidden"),Zg.setAttribute("aria-hidden",e+""),this._document.body.appendChild(Zg)}}},{key:"_deleteMessagesContainer",value:function(){Zg&&Zg.parentNode&&(Zg.parentNode.removeChild(Zg),Zg=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Ug(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(Wg)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=qg.get(t);i=o.messageElement.id,(r=Ug(n=e,"aria-describedby")).some(function(e){return e.trim()==i.trim()})||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(Hg,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=qg.get(t);a.referenceCount--,r=a.messageElement.id,(o=Ug(n=e,i="aria-describedby").filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(Hg)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=Ug(e,"aria-describedby"),i=qg.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Xl),Fi(eg))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xl),Fi(eg))},token:e,providedIn:"root"}),e}(),Yg=function(){function e(t){var n=this;o(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Q,this._typeaheadSubscription=I.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Q,this.change=new Q,t instanceof Ac&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return s(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(hg(function(t){return e._pressedLetters.push(t)}),yg(t),wg(function(){return e._pressedLetters.length>0}),J(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||cg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Ac?this._items.toArray():this._items}}]),e}(),Kg=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Yg),Jg=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._origin="program",e}return s(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Yg),Xg=function(){var e=function(){function e(t){o(this,e),this._platform=t}return s(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(rD){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===ey(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=ey(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||$g(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(eg))},e.\u0275prov=Re({factory:function(){return new e(Fi(eg))},token:e,providedIn:"root"}),e}();function $g(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function ey(e){if(!$g(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var ty=function(){function e(t,n,i,r){var a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,s||this.attachAnchors()}return s(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Tg(1)).subscribe(e)}}]),e}(),ny=function(){var e=function(){function e(t,n,i){o(this,e),this._checker=t,this._ngZone=n,this._document=i}return s(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ty(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Xg),Fi(ml),Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xg),Fi(ml),Fi(Xl))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var iy=new ki("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ry=new ki("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oy=function(){var e=function(){function e(t,n,i,r){o(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return s(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout(function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout(function(){return i.clear()},n))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(iy,8),Fi(ml),Fi(Xl),Fi(ry,8))},e.\u0275prov=Re({factory:function(){return new e(Fi(iy,8),Fi(ml),Fi(Xl),Fi(ry,8))},token:e,providedIn:"root"}),e}();function ay(e){return 0===e.buttons}var sy=new ki("cdk-focus-monitor-default-options"),uy=rg({passive:!0,capture:!0}),cy=function(){var e=function(){function e(t,n,i,r){var a=this;o(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){a._lastTouchTarget=null,a._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!a._lastTouchTarget){var t=ay(e)?"keyboard":"mouse";a._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=a._touchTimeoutId&&clearTimeout(a._touchTimeoutId),a._lastTouchTarget=ly(e),a._touchTimeoutId=setTimeout(function(){return a._lastTouchTarget=null},650)},this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=ly(e),n="focus"===e.type?a._onFocus:a._onBlur,i=t;i;i=i.parentElement)n.call(a,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return s(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Lg(e);if(!this._platform.isBrowser||1!==n.nodeType)return sg(null);var i=ag(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Q,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=Lg(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=Lg(e);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,t,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=ly(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===ly(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,uy),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,uy)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,uy),e.addEventListener("mousedown",t._documentMousedownListener,uy),e.addEventListener("touchstart",t._documentTouchstartListener,uy),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uy),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uy),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,uy),i.removeEventListener("mousedown",this._documentMousedownListener,uy),i.removeEventListener("touchstart",this._documentTouchstartListener,uy),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ml),Fi(eg),Fi(Xl,8),Fi(sy,8))},e.\u0275prov=Re({factory:function(){return new e(Fi(ml),Fi(eg),Fi(Xl,8),Fi(sy,8))},token:e,providedIn:"root"}),e}();function ly(e){return e.composedPath?e.composedPath()[0]:e.target}var hy="cdk-high-contrast-black-on-white",dy="cdk-high-contrast-white-on-black",fy="cdk-high-contrast-active",py=function(){var e=function(){function e(t,n){o(this,e),this._platform=t,this._document=n}return s(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(fy),e.remove(hy),e.remove(dy);var t=this.getHighContrastMode();1===t?(e.add(fy),e.add(hy)):2===t&&(e.add(fy),e.add(dy))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(eg),Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(eg),Fi(Xl))},token:e,providedIn:"root"}),e}(),vy=function(){var e=function e(t){o(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(py))},imports:[[tg,Bg]]}),e}(),my=new ki("cdk-dir-doc",{providedIn:"root",factory:function(){return Bi(Xl)}}),gy=function(){var e=function(){function e(t){if(o(this,e),this.value="ltr",this.change=new Pc,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return s(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(my,8))},e.\u0275prov=Re({factory:function(){return new e(Fi(my,8))},token:e,providedIn:"root"}),e}(),yy=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)}}),e}(),by=new Au("11.0.0");function _y(){return pe(1)}function ky(){return _y()(sg.apply(void 0,arguments))}function wy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return K(i)?(t.pop(),function(e){return ky(t,e,i)}):function(e){return ky(t,e)}}function Sy(e,t){if(1&e&&ps(0,"mat-pseudo-checkbox",4),2&e){var n=xs();ls("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Cy(e,t){if(1&e&&(ds(0,"span",5),Xs(1),fs()),2&e){var n=xs();Ao(1),eu("(",n.group.label,")")}}var Ey=["*"],Oy=new Au("11.1.1"),xy=new ki("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Ty=function(){var e=function(){function e(t,n,i){o(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return s(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Ml()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Oy.full!==by.full&&console.warn("The Angular Material version ("+Oy.full+") does not match the Angular CDK version ("+by.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(py),Fi(xy,8),Fi(Xl))},imports:[[yy],yy]}),e}();function My(e){return function(e){c(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return s(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Ig(e)}}]),n}(e)}function Py(e,t){return function(e){c(i,e);var n=p(i);function i(){var e;o(this,i);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=n.call.apply(n,[this].concat(a))).defaultColor=t,e.color=t,e}return s(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function Iy(e){return function(e){c(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return s(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Ig(e)}}]),n}(e)}function Ay(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){c(i,e);var n=p(i);function i(){var e;o(this,i);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=n.call.apply(n,[this].concat(a)))._tabIndex=t,e.defaultTabIndex=t,e}return s(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?Ag(e):this.defaultTabIndex}}]),i}(e);return n}function Ry(e){return function(e){c(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new Q,e}return s(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}var Dy=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ny=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty],Ty]}),e}(),Ly=function(){function e(t,n,i){o(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return s(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),Vy={enterDuration:450,exitDuration:400},jy=rg({passive:!0}),Fy=["mousedown","touchstart"],By=["mouseup","mouseleave","touchend","touchcancel"],Uy=function(){function e(t,n,i,r){o(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Lg(i))}return s(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Vy),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||Wy(e,t,r),s=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(s-a,"px"),l.style.top="".concat(u-a,"px"),l.style.height="".concat(2*a,"px"),l.style.width="".concat(2*a,"px"),null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),zy(l),l.style.transform="scale(1)";var h=new Ly(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Vy),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Lg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Fy))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(By),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=ay(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,jy)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Fy.forEach(function(t){e._triggerElement.removeEventListener(t,e,jy)}),this._pointerUpEventsRegistered&&By.forEach(function(t){e._triggerElement.removeEventListener(t,e,jy)}))}}]),e}();function zy(e){window.getComputedStyle(e).getPropertyValue("opacity")}function Wy(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var Hy=new ki("mat-ripple-global-options"),Gy=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Uy(this,n,t,i)}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ml),cs(eg),cs(Hy,8),cs(Gm,8))},e.\u0275dir=gt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Us("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),qy=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty,tg],Ty]}),e}(),Zy=function(){var e=function e(t){o(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(cs(Gm,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Us("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),Qy=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty]]}),e}(),Yy=new ki("MAT_OPTION_PARENT_COMPONENT"),Ky=My(function e(){o(this,e)}),Jy=0,Xy=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i,r;return o(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(Jy++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(Ky);return e.\u0275fac=function(t){return new(t||e)(cs(Yy,8))},e.\u0275dir=gt({type:e,inputs:{label:"label"},features:[Za]}),e}(),$y=new ki("MatOptgroup"),eb=0,tb=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,e),this.source=t,this.isUserInput=n},nb=function(){var e=function(){function e(t,n,i,r){o(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(eb++),this.onSelectionChange=new Pc,this._stateChanges=new Q}return s(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=Ig(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||cg(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new tb(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(Xu),cs(void 0),cs(Xy))},e.\u0275dir=gt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),ib=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){return o(this,n),t.call(this,e,i,r,a)}return n}(nb);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(Xu),cs(Yy,8),cs($y,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ks("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(tu("id",t.id),os("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Us("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Za],ngContentSelectors:Ey,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Ms(),ss(0,Sy,1,2,"mat-pseudo-checkbox",0),ds(1,"span",1),Ps(2),fs(),ss(3,Cy,2,1,"span",2),ps(4,"div",3)),2&e&&(ls("ngIf",t.multiple),Ao(3),ls("ngIf",t.group&&t.group._inert),Ao(1),ls("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Ch,Gy,Zy],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function rb(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var ob=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[qy,Lh,Ty,Qy]]}),e}(),ab=0,sb=My(function e(){o(this,e)}),ub=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this))._ngZone=e,u._elementRef=i,u._ariaDescriber=r,u._renderer=a,u._animationMode=s,u._hasContent=!1,u._color="primary",u._overlap=!0,u.position="above after",u.size="medium",u._id=ab++,u}return s(n,[{key:"color",get:function(){return this._color},set:function(e){this._setColor(e),this._color=e}},{key:"overlap",get:function(){return this._overlap},set:function(e){this._overlap=Ig(e)}},{key:"description",get:function(){return this._description},set:function(e){if(e!==this._description){var t=this._badgeElement;this._updateHostAriaDescription(e,this._description),this._description=e,t&&(e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden=Ig(e)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(e){var t=e.content;if(t){var n=t.currentValue;this._hasContent=null!=n&&"".concat(n).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var e=this._badgeElement;e&&(this.description&&this._ariaDescriber.removeDescription(e,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(e))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var e=this._renderer.createElement("span"),t="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add(n),e.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this.description&&e.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e.classList.add(t)})}):e.classList.add(t),e}},{key:"_updateHostAriaDescription",value:function(e,t){var n=this._updateTextContent();t&&this._ariaDescriber.removeDescription(n,t),e&&this._ariaDescriber.describe(n,e)}},{key:"_setColor",value:function(e){if(e!==this._color){var t=this._elementRef.nativeElement.classList;this._color&&t.remove("mat-badge-".concat(this._color)),e&&t.add("mat-badge-".concat(e))}}},{key:"_clearExistingBadges",value:function(e){for(var t=this._elementRef.nativeElement,n=t.children.length;n--;){var i=t.children[n];i.classList.contains(e)&&t.removeChild(i)}}},{key:"_stringifyContent",value:function(){var e=this.content;return null==e?"":"".concat(e)}}]),n}(sb);return e.\u0275fac=function(t){return new(t||e)(cs(ml),cs(Ou),cs(Qg),cs(Mu),cs(Gm,8))},e.\u0275dir=gt({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Us("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t._hasContent)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[Za,Nt]}),e}(),cb=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[vy,Ty],Ty]}),e}(),lb=["mat-button",""],hb=["*"],db=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],fb=Py(My(Iy(function e(t){o(this,e),this._elementRef=t}))),pb=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;o(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=g(db);try{for(u.s();!(s=u.n()).done;){var c=s.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return s(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(fb);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(cy),cs(Gm,8))},e.\u0275cmp=ht({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&Wc(Gy,1),2&e&&zc(n=Gc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(os("disabled",t.disabled||null),Us("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Za],attrs:lb,ngContentSelectors:hb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Ms(),ds(0,"span",0),Ps(1),fs(),ps(2,"span",1),ps(3,"span",2)),2&e&&(Ao(2),Us("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ls("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Gy],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),vb=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[qy,Ty],Ty]}),e}(),mb=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty],Ty]}),e}();function gb(e,t,n,i){return M(n)&&(i=n,n=void 0),i?gb(e,t,n).pipe(J(function(e){return x(e)?i.apply(void 0,C(e)):i(e)})):new W(function(i){yb(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function yb(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,l=e.length;c<l;c++)yb(e[c],t,n,i,r)}i.add(o)}var bb=1,_b=function(){return Promise.resolve()}(),kb={};function wb(e){return e in kb&&(delete kb[e],!0)}var Sb=function(e){var t=bb++;return kb[t]=!0,_b.then(function(){return wb(t)&&e()}),t},Cb=function(e){wb(e)},Eb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return s(n,[{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):(e.actions.push(this),e.scheduled||(e.scheduled=Sb(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,e,t,o);0===e.actions.length&&(Cb(t),e.scheduled=void 0)}}]),n}(pg),Ob=new(function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(mg))(Eb);function xb(e,t){return function(n){return n.lift(new Tb(e,t))}}var Tb=function(){function e(t,n){o(this,e),this.compare=t,this.keySelector=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Mb(e,this.compare,this.keySelector))}}]),e}(),Mb=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return s(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(j);function Pb(e){return function(t){return t.lift(new Ib(e))}}var Ib=function(){function e(t){o(this,e),this.durationSelector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ab(e,this.durationSelector))}}]),e}(),Ab=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return s(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=le(t,new ue(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(ce);function Rb(e){return!x(e)&&e-parseFloat(e)+1>=0}function Db(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Rb(t)?i=Number(t)<1?1:Number(t):K(t)&&(n=t),K(n)||(n=gg),new W(function(t){var r=Rb(e)?e:+e-n.now();return n.schedule(Nb,r,{index:0,period:i,subscriber:t})})}function Nb(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function Lb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gg;return Pb(function(){return Db(e,t)})}function Vb(e){return function(t){return t.lift(new jb(e))}}var jb=function(){function e(t){o(this,e),this.notifier=t}return s(e,[{key:"call",value:function(e,t){var n=new Fb(e),i=le(this.notifier,new ue(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Fb=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e)).seenValue=!1,i}return s(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ce);function Bb(e,t){return"function"==typeof t?function(n){return n.pipe(Bb(function(n,i){return se(e(n,i)).pipe(J(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Ub(e))}}var Ub=function(){function e(t){o(this,e),this.project=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new zb(e,this.project))}}]),e}(),zb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return s(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ue(this),i=this.destination;i.add(n),this.innerSubscription=le(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||r(i(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(ce),Wb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return s(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?r(i(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?r(i(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0||null===o&&this.delay>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):e.flush(this)}}]),n}(pg),Hb=new(function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(mg))(Wb);function Gb(e,t){return new W(t?function(n){return t.schedule(qb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function qb(e){e.subscriber.error(e.error)}var Zb=function(){var e=function(){function e(t,n,i){o(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return s(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return sg(this.value);case"E":return Gb(this.error);case"C":return xg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),Qb=function(e){c(n,e);var t=p(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return s(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Yb(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Zb.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Zb.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Zb.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(j),Yb=function e(t,n){o(this,e),this.notification=t,this.destination=n},Kb=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return o(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return s(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}r(i(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new Jb(this._getNow(),e)),this._trimBufferThenGetEvents()),r(i(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new G;if(this.isStopped||this.hasError?t=I.EMPTY:(this.observers.push(e),t=new q(this,e)),r&&e.add(e=new Qb(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Hb).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(Q),Jb=function e(t,n){o(this,e),this.time=t,this.value=n},Xb=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];o(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Q,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return s(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),$b=function(){var e=function(){function e(t,n,i){o(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Q,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return s(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new W(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Lb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):sg()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(wg(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return gb(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ml),Fi(eg),Fi(Xl,8))},e.\u0275prov=Re({factory:function(){return new e(Fi(ml),Fi(eg),Fi(Xl,8))},token:e,providedIn:"root"}),e}(),e_=function(){var e=function(){function e(t,n,i,r){var a=this;o(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Q,this._elementScrolled=new W(function(e){return a.ngZone.runOutsideAngular(function(){return gb(a.elementRef.nativeElement,"scroll").pipe(Vb(a._destroyed)).subscribe(e)})})}return s(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=og()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==og()?e.left=e.right:1==og()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;!function(){if(null==Xm)if("object"==typeof document&&document||(Xm=!1),"scrollBehavior"in document.documentElement.style)Xm=!0;else{var e=Element.prototype.scrollTo;Xm=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}return Xm}()?(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left)):t.scrollTo(e)}},{key:"measureScrollOffset",value:function(e){var t="left",n="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;var r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?n:t:"end"==e&&(e=r?t:n),r&&2==og()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==og()?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs($b),cs(ml),cs(gy,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),t_=function(){var e=function(){function e(t,n,i){var r=this;o(this,e),this._platform=t,this._change=new Q,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return s(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Lb(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(eg),Fi(ml),Fi(Xl,8))},e.\u0275prov=Re({factory:function(){return new e(Fi(eg),Fi(ml),Fi(Xl,8))},token:e,providedIn:"root"}),e}(),n_=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)}}),e}(),i_=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[yy,tg,n_],yy,n_]}),e}(),r_=function(){function e(){o(this,e)}return s(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),o_=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this)).component=e,s.viewContainerRef=i,s.injector=r,s.componentFactoryResolver=a,s}return n}(r_),a_=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return s(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,r(i(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(r_),s_=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).element=e instanceof Ou?e.nativeElement:e,i}return n}(r_),u_=function(){function e(){o(this,e),this._isDisposed=!1,this.attachDomPortal=null}return s(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof o_?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof a_?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof s_?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),c_=function(e){c(n,e);var t=p(n);function n(e,a,s,u,c){var l,h;return o(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=a,h._appRef=s,h._defaultInjector=u,h.attachDomPortal=function(e){var t=e.element,o=h._document.createComment("dom-portal");t.parentNode.insertBefore(o,t),h.outletElement.appendChild(t),r((l=d(h),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},h._document=c,h}return s(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(u_),l_=function(){var e=function(e){c(n,e);var t=p(n);function n(e,a,s){var u,c;return o(this,n),(c=t.call(this))._componentFactoryResolver=e,c._viewContainerRef=a,c._isInitialized=!1,c.attached=new Pc,c.attachDomPortal=function(e){var t=e.element,o=c._document.createComment("dom-portal");e.setAttachedHost(d(c)),t.parentNode.insertBefore(o,t),c._getRootNode().appendChild(t),r((u=d(c),i(n.prototype)),"setDisposeFn",u).call(u,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},c._document=s,c}return s(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),e&&r(i(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(u_);return e.\u0275fac=function(t){return new(t||e)(cs(wu),cs(hc),cs(Xl))},e.\u0275dir=gt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Za]}),e}(),h_=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)}}),e}(),d_=function(){function e(t,n){o(this,e),this.predicate=t,this.inclusive=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new f_(e,this.predicate,this.inclusive))}}]),e}(),f_=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return s(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(j),p_=function(){function e(t,n){o(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return s(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ng(-this._previousScrollPosition.left),e.style.top=Ng(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=r}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),v_=function(){function e(t,n,i,r){var a=this;o(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return s(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),m_=function(){function e(){o(this,e)}return s(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function g_(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function y_(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var b_=function(){function e(t,n,i,r){o(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return s(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;g_(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),__=function(){var e=function e(t,n,i,r){var a=this;o(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new m_},this.close=function(e){return new v_(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new p_(a._viewportRuler,a._document)},this.reposition=function(e){return new b_(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(Fi($b),Fi(t_),Fi(ml),Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi($b),Fi(t_),Fi(ml),Fi(Xl))},token:e,providedIn:"root"}),e}(),k_=function e(t){if(o(this,e),this.scrollStrategy=new m_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},w_=function e(t,n,i,r,a){o(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=a,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},S_=function e(t,n){o(this,e),this.connectionPair=t,this.scrollableViewProperties=n},C_=function(){var e=function(){function e(t){o(this,e),this._attachedOverlays=[],this._document=t}return s(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xl))},token:e,providedIn:"root"}),e}(),E_=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return s(n,[{key:"add",value:function(e){r(i(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(C_);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xl))},token:e,providedIn:"root"}),e}(),O_=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return s(n,[{key:"add",value:function(e){r(i(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(C_);return e.\u0275fac=function(t){return new(t||e)(Fi(Xl),Fi(eg))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xl),Fi(eg))},token:e,providedIn:"root"}),e}(),x_=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),T_=function(){var e=function(){function e(t,n){o(this,e),this._platform=n,this._document=t}return s(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||x_)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], ')+".".concat(e,'[platform="test"]')),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add(e),x_?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Xl),Fi(eg))},e.\u0275prov=Re({factory:function(){return new e(Fi(Xl),Fi(eg))},token:e,providedIn:"root"}),e}(),M_=function(){function e(t,n,i,r,a,s,u,c,l){var h=this;o(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=a,this._keyboardDispatcher=s,this._document=u,this._location=c,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new Q,this._attachments=new Q,this._detachments=new Q,this._locationChanges=I.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new Q,this._outsidePointerEvents=new Q,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return s(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Tg(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=Ng(this._config.width),e.height=Ng(this._config.height),e.minWidth=Ng(this._config.minWidth),e.minHeight=Ng(this._config.minHeight),e.maxWidth=Ng(this._config.maxWidth),e.maxHeight=Ng(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;Dg(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(Vb(me(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),P_="cdk-overlay-connected-position-bounding-box",I_=/([A-Za-z%]+)$/,A_=function(){function e(t,n,i,r,a){o(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Q,this._resizeSubscription=I.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return s(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(P_),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=g(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=this._getOriginPoint(n,s),c=this._getOverlayPoint(u,i,s),l=this._getOverlayFit(c,i,r,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,u);this._canFitWithFlexibleDimensions(l,c,r)?o.push({position:s,origin:u,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(u,s)}):(!e||e.overlayFit.visibleArea<l.visibleArea)&&(e={overlayFit:l,overlayPoint:c,originPoint:u,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(o.length){var h,d=null,f=-1,p=g(o);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>f&&(f=m,d=v)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&R_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(P_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,c=o+t.height-n.height,l=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,c),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:l==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=D_(this._overlayRef.getConfig().minHeight),a=D_(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:i=t.width<=o.width?c||-a:e.x<this._viewportMargin?o.left-n.left-e.x:0,y:r=t.height<=o.height?u||-s:e.y<this._viewportMargin?o.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new S_(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,u=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)n=u.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=u.height-(r=u.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(u.bottom-e.y+u.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-l,(n=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;a=e.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Ng(n.height),i.top=Ng(n.top),i.bottom=Ng(n.bottom),i.width=Ng(n.width),i.left=Ng(n.left),i.right=Ng(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Ng(r)),o&&(i.maxWidth=Ng(o))}this._lastBoundingBoxSize=n,R_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){R_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){R_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();R_(n,this._getExactOverlayY(t,e,a)),R_(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Ng(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Ng(o.maxWidth):r&&(n.maxWidth="")),R_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=Ng(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=Ng(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:y_(e,n),isOriginOutsideView:g_(e,n),isOverlayClipped:y_(t,n),isOverlayOutsideView:g_(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&Dg(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Ou)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function R_(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function D_(e){if("number"!=typeof e&&null!=e){var t=_(e.split(I_),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}var N_=function(){function e(t,n,i,r,a,s,u){o(this,e),this._preferredPositions=[],this._positionStrategy=new A_(i,r,a,s,u).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return s(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new w_(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),L_="cdk-global-overlay-wrapper",V_=function(){function e(){o(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return s(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(L_),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(L_),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),j_=function(){var e=function(){function e(t,n,i,r){o(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return s(e,[{key:"global",value:function(){return new V_}},{key:"connectedTo",value:function(e,t,n){return new N_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new A_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(t_),Fi(Xl),Fi(eg),Fi(T_))},e.\u0275prov=Re({factory:function(){return new e(Fi(t_),Fi(Xl),Fi(eg),Fi(T_))},token:e,providedIn:"root"}),e}(),F_=0,B_=function(){var e=function(){function e(t,n,i,r,a,s,u,c,l,h,d){o(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=u,this._document=c,this._directionality=l,this._location=h,this._outsideClickDispatcher=d}return s(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new k_(e);return r.direction=r.direction||this._directionality.value,new M_(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(F_++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Fl)),new c_(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(__),Fi(T_),Fi(wu),Fi(j_),Fi(E_),Fi(Ga),Fi(ml),Fi(Xl),Fi(gy),Fi(fh),Fi(O_))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),U_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z_=new ki("cdk-connected-overlay-scroll-strategy"),W_=function(){var e=function e(t){o(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(cs(Ou))},e.\u0275dir=gt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),H_=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=I.EMPTY,this._attachSubscription=I.EMPTY,this._detachSubscription=I.EMPTY,this._positionSubscription=I.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Pc,this.positionChange=new Pc,this.attach=new Pc,this.detach=new Pc,this.overlayKeydown=new Pc,this.overlayOutsideClick=new Pc,this._templatePortal=new a_(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return s(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Ig(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=Ig(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=Ig(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=Ig(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=Ig(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=U_);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode!==ug||e.disableClose||cg(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new k_({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new d_(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(B_),cs(oc),cs(hc),cs(z_),cs(gy,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Nt]}),e}(),G_={provide:z_,deps:[B_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},q_=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[B_,G_],imports:[[yy,h_,i_],i_]}),e}();function Z_(e){return new W(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?se(n):xg()).subscribe(t)})}function Q_(e,t){}var Y_=function e(){o(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},K_={dialogContainer:tp("dialogContainer",[op("void, exit",rp({opacity:0,transform:"scale(0.7)"})),op("enter",rp({transform:"none"})),sp("* => enter",np("150ms cubic-bezier(0, 0, 0.2, 1)",rp({transform:"none",opacity:1}))),sp("* => void, * => exit",np("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",rp({opacity:0})))])},J_=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u){var c;return o(this,n),(c=t.call(this))._elementRef=e,c._focusTrapFactory=i,c._changeDetectorRef=r,c._config=s,c._focusMonitor=u,c._animationStateChanged=new Pc,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(e){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(e)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=a,c}return s(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(u_);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ny),cs(Xu),cs(Xl,8),cs(Y_),cs(cy))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;1&e&&Wc(l_,3),2&e&&zc(n=Gc())&&(t._portalOutlet=n.first)},features:[Za]}),e}(),X_=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._state="enter",e}return s(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(J_);return e.\u0275fac=function(t){return $_(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ws("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(tu("id",t._id),os("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),nu("@dialogContainer",t._state))},features:[Za],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&ss(0,Q_,0,0,"ng-template",0)},directives:[l_],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:[K_.dialogContainer]}}),e}(),$_=gi(X_),ek=0,tk=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(ek++);o(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Q,this._afterClosed=new Q,this._beforeClosed=new Q,this._state=0,n._id=r,n._animationStateChanged.pipe(wg(function(e){return"opened"===e.state}),Tg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(wg(function(e){return"closed"===e.state}),Tg(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(wg(function(e){return e.keyCode===ug&&!i.disableClose&&!cg(e)})).subscribe(function(e){e.preventDefault(),nk(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():nk(i,"mouse")})}return s(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(wg(function(e){return"closing"===e.state}),Tg(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function nk(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var ik=new ki("MatDialogData"),rk=new ki("mat-dialog-default-options"),ok=new ki("mat-dialog-scroll-strategy"),ak={provide:ok,deps:[B_],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},sk=function(){var e=function(){function e(t,n,i,r,a,s,u,c,l){var h=this;o(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=u,this._dialogContainerType=c,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Q,this._afterOpenedAtThisLevel=new Q,this._ariaHiddenElements=new Map,this.afterAllClosed=Z_(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(wy(void 0))}),this._scrollStrategy=s}return s(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new Y_)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new k_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Ga.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Y_,useValue:t}]}),i=new o_(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof oc)t.attachTemplatePortal(new a_(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new o_(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(gy,null)||r.push({provide:gy,useValue:{value:e.direction,change:sg()}}),Ga.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(B_),cs(Ga),cs(void 0),cs(void 0),cs(T_),cs(void 0),cs(Si),cs(Si),cs(ki))},e.\u0275dir=gt({type:e}),e}(),uk=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c){return o(this,n),t.call(this,e,i,a,u,c,s,tk,X_,ik)}return n}(sk);return e.\u0275fac=function(t){return new(t||e)(Fi(B_),Fi(Ga),Fi(fh,8),Fi(rk,8),Fi(ok),Fi(e,12),Fi(T_))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),ck=0,lk=function(){var e=function(){function e(t,n,i){o(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(ck++)}return s(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(tk,8),cs(Ou),cs(uk))},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&tu("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),hk=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[uk,ak],imports:[[q_,h_,Ty],Ty]}),e}();function dk(e){return e instanceof Date&&!isNaN(+e)}function fk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gg,n=dk(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new pk(i,t))}}var pk=function(){function e(t,n){o(this,e),this.delay=t,this.scheduler=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new vk(e,this.delay,this.scheduler))}}]),e}(),vk=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return s(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new mk(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Zb.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Zb.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(j),mk=function e(t,n){o(this,e),this.time=t,this.notification=n},gk=["mat-menu-item",""],yk=["*"];function bk(e,t){if(1&e){var n=gs();ds(0,"div",0),ks("keydown",function(e){return sn(n),xs()._handleKeydown(e)})("click",function(){return sn(n),xs().closed.emit("click")})("@transformMenu.start",function(e){return sn(n),xs()._onAnimationStart(e)})("@transformMenu.done",function(e){return sn(n),xs()._onAnimationDone(e)}),ds(1,"div",1),Ps(2),fs(),fs()}if(2&e){var i=xs();ls("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),os("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var _k={transformMenu:tp("transformMenu",[op("void",rp({opacity:0,transform:"scale(0.8)"})),sp("void => enter",np("120ms cubic-bezier(0, 0, 0.2, 1)",rp({opacity:1,transform:"scale(1)"}))),sp("* => void",np("100ms 25ms linear",rp({opacity:0})))]),fadeInItems:tp("fadeInItems",[op("showing",rp({opacity:1})),sp("void => *",[rp({opacity:0}),np("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},kk=new ki("MatMenuContent"),wk=new ki("MAT_MENU_PANEL"),Sk=Iy(My(function e(){o(this,e)})),Ck=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=a,s.role="menuitem",s._hovered=new Q,s._focused=new Q,s._highlighted=!1,s._triggersSubmenu=!1,a&&a.addItem&&a.addItem(d(s)),s}return s(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(Sk);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(Xl),cs(cy),cs(wk,8))},e.\u0275cmp=ht({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&ks("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(os("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Us("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Za],attrs:gk,ngContentSelectors:yk,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(Ms(),Ps(0),ps(1,"div",0)),2&e&&(Ao(1),ls("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[Gy],encapsulation:2,changeDetection:0}),e}(),Ek=new ki("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Ok=0,xk=function(){var e=function(){function e(t,n,i){o(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ac,this._tabSubscription=I.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Q,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Pc,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Ok++)}return s(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=Ig(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Ig(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Jg(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(wy(this._directDescendantItems),Bb(function(e){return me.apply(void 0,C(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(wy(this._directDescendantItems),Bb(function(e){return me.apply(void 0,C(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case ug:cg(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Tg(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=Math.min(4+e,24),n="mat-elevation-z".concat(t),i=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(wy(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ml),cs(Ek))},e.\u0275dir=gt({type:e,contentQueries:function(e,t,n){var i;1&e&&(Hc(n,kk,1),Hc(n,Ck,1),Hc(n,Ck,0)),2&e&&(zc(i=Gc())&&(t.lazyContent=i.first),zc(i=Gc())&&(t._allItems=i),zc(i=Gc())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Wc(oc,1),2&e&&zc(n=Gc())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Tk=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){return o(this,n),t.call(this,e,i,r)}return n}(xk);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ml),cs(Ek))},e.\u0275cmp=ht({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&os("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[yu([{provide:wk,useExisting:e}]),Za],ngContentSelectors:yk,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(Ms(),ss(0,bk,3,6,"ng-template"))},directives:[_h],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[_k.transformMenu,_k.fadeInItems]},changeDetection:0}),e}(),Mk=new ki("mat-menu-scroll-strategy"),Pk={provide:Mk,deps:[B_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ik=rg({passive:!0}),Ak=function(){var e=function(){function e(t,n,i,r,a,s,u,c){var l=this;o(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=I.EMPTY,this._hoverSubscription=I.EMPTY,this._menuCloseSubscription=I.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Pc,this.onMenuOpen=this.menuOpened,this.menuClosed=new Pc,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof xk?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ik),s&&(s._triggersSubmenu=this.triggersSubmenu())}return s(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ik),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof xk&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof xk?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(wg(function(e){return"void"===e.toState}),Tg(1),Vb(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new k_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,c=n,l=i,h=0;this.triggersSubmenu()?(l=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:c,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:l,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return me(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:sg(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(wg(function(t){return t!==e._menuItemInstance}),wg(function(){return e._menuOpen})):sg(),n)}},{key:"_handleMousedown",value:function(e){ay(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(wg(function(t){return t===e._menuItemInstance&&!t.disabled}),fk(0,Ob)).subscribe(function(){e._openedBy="mouse",e.menu instanceof xk&&e.menu._isAnimating?e.menu._animationDone.pipe(Tg(1),fk(0,Ob),Vb(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new a_(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(B_),cs(Ou),cs(hc),cs(Mk),cs(wk,8),cs(Ck,10),cs(gy,8),cs(cy))},e.\u0275dir=gt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ks("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&os("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Rk=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Pk],imports:[Ty]}),e}(),Dk=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Pk],imports:[[Lh,Ty,qy,q_,Rk],n_,Ty,Rk]}),e}(),Nk=["underline"],Lk=["connectionContainer"],Vk=["inputContainer"],jk=["label"];function Fk(e,t){1&e&&(vs(0),ds(1,"div",14),ps(2,"div",15),ps(3,"div",16),ps(4,"div",17),fs(),ds(5,"div",18),ps(6,"div",15),ps(7,"div",16),ps(8,"div",17),fs(),ms())}function Bk(e,t){1&e&&(ds(0,"div",19),Ps(1,1),fs())}function Uk(e,t){if(1&e&&(vs(0),Ps(1,2),ds(2,"span"),Xs(3),fs(),ms()),2&e){var n=xs(2);Ao(3),$s(n._control.placeholder)}}function zk(e,t){1&e&&Ps(0,3,["*ngSwitchCase","true"])}function Wk(e,t){1&e&&(ds(0,"span",23),Xs(1," *"),fs())}function Hk(e,t){if(1&e){var n=gs();ds(0,"label",20,21),ks("cdkObserveContent",function(){return sn(n),xs().updateOutlineGap()}),ss(2,Uk,4,1,"ng-container",12),ss(3,zk,1,0,"ng-content",12),ss(4,Wk,2,0,"span",22),fs()}if(2&e){var i=xs();Us("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),ls("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),os("for",i._control.id)("aria-owns",i._control.id),Ao(2),ls("ngSwitchCase",!1),Ao(1),ls("ngSwitchCase",!0),Ao(1),ls("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Gk(e,t){1&e&&(ds(0,"div",24),Ps(1,4),fs())}function qk(e,t){if(1&e&&(ds(0,"div",25,26),ps(2,"span",27),fs()),2&e){var n=xs();Ao(2),Us("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Zk(e,t){1&e&&(ds(0,"div"),Ps(1,5),fs()),2&e&&ls("@transitionMessages",xs()._subscriptAnimationState)}function Qk(e,t){if(1&e&&(ds(0,"div",31),Xs(1),fs()),2&e){var n=xs(2);ls("id",n._hintLabelId),Ao(1),$s(n.hintLabel)}}function Yk(e,t){if(1&e&&(ds(0,"div",28),ss(1,Qk,2,2,"div",29),Ps(2,6),ps(3,"div",30),Ps(4,7),fs()),2&e){var n=xs();ls("@transitionMessages",n._subscriptAnimationState),Ao(1),ls("ngIf",n.hintLabel)}}var Kk=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jk=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Xk=0,$k=new ki("MatError"),ew=function(){var e=function e(){o(this,e),this.id="mat-error-".concat(Xk++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&os("id",t.id)},inputs:{id:"id"},features:[yu([{provide:$k,useExisting:e}])]}),e}(),tw={transitionMessages:tp("transitionMessages",[op("enter",rp({opacity:1,transform:"translateY(0%)"})),sp("void => enter",[rp({opacity:0,transform:"translateY(-100%)"}),np("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nw=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),iw=new ki("MatHint"),rw=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-label"]]}),e}(),ow=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-placeholder"]]}),e}(),aw=new ki("MatPrefix"),sw=new ki("MatSuffix"),uw=0,cw=Py(function e(t){o(this,e),this._elementRef=t},"primary"),lw=new ki("MAT_FORM_FIELD_DEFAULT_OPTIONS"),hw=new ki("MatFormField"),dw=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c,l){var h;return o(this,n),(h=t.call(this,e))._elementRef=e,h._changeDetectorRef=i,h._dir=a,h._defaults=s,h._platform=u,h._ngZone=c,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Q,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(uw++),h._labelId="mat-form-field-label-".concat(uw++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return s(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Ig(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(wy(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Vb(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Vb(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),me(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(wy(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(wy(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Vb(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,gb(this._label.nativeElement,"transitionend").pipe(Tg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,C(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,C(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h<u.length;h++)l+=u[h].offsetWidth;t=Math.abs(c-s)-5,n=l>0?.75*l+10:0}for(var d=0;d<r.length;d++)r[d].style.width="".concat(t,"px");for(var f=0;f<o.length;f++)o[f].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(cw);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(Xu),cs(Ou),cs(gy,8),cs(lw,8),cs(eg),cs(ml),cs(Gm,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Hc(n,nw,1),Hc(n,nw,3),Hc(n,rw,1),Hc(n,rw,3),Hc(n,ow,1),Hc(n,$k,1),Hc(n,iw,1),Hc(n,aw,1),Hc(n,sw,1)),2&e&&(zc(i=Gc())&&(t._controlNonStatic=i.first),zc(i=Gc())&&(t._controlStatic=i.first),zc(i=Gc())&&(t._labelChildNonStatic=i.first),zc(i=Gc())&&(t._labelChildStatic=i.first),zc(i=Gc())&&(t._placeholderChild=i.first),zc(i=Gc())&&(t._errorChildren=i),zc(i=Gc())&&(t._hintChildren=i),zc(i=Gc())&&(t._prefixChildren=i),zc(i=Gc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Wc(Nk,1),Wc(Lk,3),Wc(Vk,1),Wc(jk,1)),2&e&&(zc(n=Gc())&&(t.underlineRef=n.first),zc(n=Gc())&&(t._connectionContainerRef=n.first),zc(n=Gc())&&(t._inputContainerRef=n.first),zc(n=Gc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Us("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[yu([{provide:hw,useExisting:e}]),Za],ngContentSelectors:Jk,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(Ms(Kk),ds(0,"div",0),ds(1,"div",1,2),ks("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),ss(3,Fk,9,0,"ng-container",3),ss(4,Bk,2,0,"div",4),ds(5,"div",5,6),Ps(7),ds(8,"span",7),ss(9,Hk,5,16,"label",8),fs(),fs(),ss(10,Gk,2,0,"div",9),fs(),ss(11,qk,3,4,"div",10),ds(12,"div",11),ss(13,Zk,2,1,"div",12),ss(14,Yk,5,2,"div",13),fs(),fs()),2&e&&(Ao(3),ls("ngIf","outline"==t.appearance),Ao(1),ls("ngIf",t._prefixChildren.length),Ao(5),ls("ngIf",t._hasFloatingLabel()),Ao(1),ls("ngIf",t._suffixChildren.length),Ao(1),ls("ngIf","outline"!=t.appearance),Ao(1),ls("ngSwitch",t._getDisplayedMessages()),Ao(1),ls("ngSwitchCase","error"),Ao(1),ls("ngSwitchCase","hint"))},directives:[Ch,Th,Mh,Fg],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[tw.transitionMessages]},changeDetection:0}),e}(),fw=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Lh,Ty,Bg],Ty]}),e}(),pw=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ny,Ty],Ny,Ty]}),e}();function vw(e){return function(t){var n=new mw(e),i=t.lift(n);return n.caught=i}}var mw=function(){function e(t){o(this,e),this.selector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new gw(e,this.selector,this.caught))}}]),e}(),gw=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return s(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new ue(this);this.add(o);var a=le(t,o);a!==o&&this.add(a)}}}]),n}(ce);function yw(e){return function(t){return t.lift(new bw(e))}}var bw=function(){function e(t){o(this,e),this.callback=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new _w(e,this.callback))}}]),e}(),_w=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).add(new I(i)),r}return n}(j);function kw(e,t){return he(e,t,1)}var ww=function e(){o(this,e)},Sw=function e(){o(this,e)},Cw=function(){function e(t){var n=this;o(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return s(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,C(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Ew=function(){function e(){o(this,e)}return s(e,[{key:"encodeKey",value:function(e){return xw(e)}},{key:"encodeValue",value:function(e){return xw(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Ow(e,t){var n=new Map;return e.length>0&&e.split("&").forEach(function(e){var i=e.indexOf("="),r=_(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function xw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Tw=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Ew,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ow(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return s(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Mw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Pw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Iw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Aw=function(){function e(t,n,i,r){var a;if(o(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Cw),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u<n.length-1?"&":"")+s}}else this.params=new Tw,this.urlWithParams=n}return s(e,[{key:"serializeBody",value:function(){return null===this.body?null:Mw(this.body)||Pw(this.body)||Iw(this.body)||"string"==typeof this.body?this.body:this.body instanceof Tw?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Iw(this.body)?null:Pw(this.body)?this.body.type||null:Mw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Tw?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(c=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},c)),new e(n,i,o,{params:c,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),Rw=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Dw=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";o(this,e),this.headers=t.headers||new Cw,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Nw=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this,i)).type=Rw.ResponseHeader,e}return s(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Dw),Lw=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this,i)).type=Rw.Response,e.body=void 0!==i.body?i.body:null,e}return s(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Dw),Vw=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(Dw);function jw(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Fw=function(){var e=function(){function e(t){o(this,e),this.handler=t}return s(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Aw)n=e;else{var o=void 0;o=r.headers instanceof Cw?r.headers:new Cw(r.headers);var a=void 0;r.params&&(a=r.params instanceof Tw?r.params:new Tw({fromObject:r.params})),n=new Aw(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=sg(n).pipe(kw(function(e){return i.handler.handle(e)}));if(e instanceof Aw||"events"===r.observe)return s;var u=s.pipe(wg(function(e){return e instanceof Lw}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(J(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(J(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(J(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(J(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Tw).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,jw(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,jw(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,jw(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ww))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Bw=function(){function e(t,n){o(this,e),this.next=t,this.interceptor=n}return s(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Uw=new ki("HTTP_INTERCEPTORS"),zw=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Ww=/^\)\]\}',?\n/,Hw=function e(){o(this,e)},Gw=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),qw=function(){var e=function(){function e(t){o(this,e),this.xhrFactory=t}return s(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new W(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Cw(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Nw({headers:r,status:t,statusText:n,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===i.response?i.responseText:i.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Ww,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new Lw({body:c,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Vw({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u(),r=new Vw({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:Rw.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:Rw.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",l),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:Rw.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("load",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Hw))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Zw=new ki("XSRF_COOKIE_NAME"),Qw=new ki("XSRF_HEADER_NAME"),Yw=function e(){o(this,e)},Kw=function(){var e=function(){function e(t,n,i){o(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return s(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=bh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Xl),Fi(tl),Fi(Zw))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Jw=function(){var e=function(){function e(t,n){o(this,e),this.tokenService=t,this.headerName=n}return s(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Yw),Fi(Qw))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),Xw=function(){var e=function(){function e(t,n){o(this,e),this.backend=t,this.injector=n,this.chain=null}return s(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Uw,[]);this.chain=t.reduceRight(function(e,t){return new Bw(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Sw),Fi(Ga))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),$w=function(){var e=function(){function e(){o(this,e)}return s(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Jw,useClass:zw}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Zw,useValue:t.cookieName}:[],t.headerName?{provide:Qw,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Jw,{provide:Uw,useExisting:Jw,multi:!0},{provide:Yw,useClass:Kw},{provide:Zw,useValue:"XSRF-TOKEN"},{provide:Qw,useValue:"X-XSRF-TOKEN"}]}),e}(),eS=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Fw,{provide:ww,useClass:Xw},qw,{provide:Sw,useExisting:qw},Gw,{provide:Hw,useExisting:Gw}],imports:[[$w.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),tS=["*"];function nS(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function iS(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function rS(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var oS=function e(t,n,i){o(this,e),this.url=t,this.svgText=n,this.options=i},aS=function(){var e=function(){function e(t,n,i,r){o(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return s(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new oS(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Mr.HTML,n);if(!r)throw rS(n);return this._addSvgIconConfig(e,t,new oS("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new oS(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Mr.HTML,t);if(!i)throw rS(t);return this._addSvgIconSetConfig(e,new oS("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Mr.RESOURCE_URL,e);if(!n)throw iS(e);var i=this._cachedIconsByUrl.get(n);return i?sg(sS(i)):this._loadSvgIconFromConfig(new oS(e,null)).pipe(hg(function(e){return t._cachedIconsByUrl.set(n,e)}),J(function(e){return sS(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=uS(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Gb(nS(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?sg(sS(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(J(function(e){return sS(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?sg(i):kd(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(vw(function(t){var i=n._sanitizer.sanitize(Mr.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),sg(null)}))})).pipe(J(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw nS(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(hg(function(t){return e.svgText=t}),J(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?sg(null):this._fetchIcon(e).pipe(hg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Mr.RESOURCE_URL,i);if(!a)throw iS(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var u=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(yw(function(){return n._inProgressUrlFetches.delete(a)}),Ce());return this._inProgressUrlFetches.set(a,u),u}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(uS(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new oS(i.url,null,i.options):new oS(i,null)}var r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Fw,8),Fi(md),Fi(Xl,8),Fi(Lr))},e.\u0275prov=Re({factory:function(){return new e(Fi(Fw,8),Fi(md),Fi(Xl,8),Fi(Lr))},token:e,providedIn:"root"}),e}();function sS(e){return e.cloneNode(!0)}function uS(e,t){return e+":"+t}var cS=Py(function e(t){o(this,e),this._elementRef=t}),lS=new ki("mat-icon-location",{providedIn:"root",factory:function(){var e=Bi(Xl),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),hS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],dS=hS.map(function(e){return"[".concat(e,"]")}).join(", "),fS=/^url\(['"]?#(.*?)['"]?\)$/,pS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this,e))._iconRegistry=i,u._location=a,u._errorHandler=s,u._inline=!1,u._currentIconFetch=I.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),u}return s(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=Ig(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(dS),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){hS.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(fS):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=_(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Tg(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){var n="Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))})}}}]),n}(cS);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(aS),yi("aria-hidden"),cs(lS),cs(Lr))},e.\u0275cmp=ht({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(os("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Us("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Za],ngContentSelectors:tS,decls:1,vars:0,template:function(e,t){1&e&&(Ms(),Ps(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e}(),vS=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty],Ty]}),e}(),mS=rg({passive:!0}),gS=function(){var e=function(){function e(t,n){o(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return s(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return Og;var n=Lg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Q,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,mS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,mS)}}),r}},{key:"stopMonitoring",value:function(e){var t=Lg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(eg),Fi(ml))},e.\u0275prov=Re({factory:function(){return new e(Fi(eg),Fi(ml))},token:e,providedIn:"root"}),e}(),yS=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[tg]]}),e}(),bS=new ki("MAT_INPUT_VALUE_ACCESSOR"),_S=["button","checkbox","file","hidden","image","radio","range","reset","submit"],kS=0,wS=Ry(function e(t,n,i,r){o(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),SS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c,l,h,d){var f;o(this,n),(f=t.call(this,u,a,s,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=l,f._formField=d,f._uid="mat-input-".concat(kS++),f.focused=!1,f.stateChanges=new Q,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ig().has(e)});var p=f._elementRef.nativeElement,v=p.nodeName.toLowerCase();return f._inputValueAccessor=c||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===v,f._isTextarea="textarea"===v,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return s(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Ig(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Ig(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ig().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Ig(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){_S.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(wS);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(eg),cs(Qd,10),cs(Vf,8),cs(qf,8),cs(Dy),cs(bS,10),cs(gS),cs(ml),cs(hw,8))},e.\u0275dir=gt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&ks("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(tu("disabled",t.disabled)("required",t.required),os("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Us("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[yu([{provide:nw,useExisting:e}]),Za,Nt]}),e}(),CS=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[Dy],imports:[[yS,fw,Ty],yS,fw]}),e}(),ES=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty,Lh],Ty]}),e}(),OS=["trigger"],xS=["panel"];function TS(e,t){if(1&e&&(ds(0,"span",8),Xs(1),fs()),2&e){var n=xs();Ao(1),$s(n.placeholder||"\xa0")}}function MS(e,t){if(1&e&&(ds(0,"span"),Xs(1),fs()),2&e){var n=xs(2);Ao(1),$s(n.triggerValue||"\xa0")}}function PS(e,t){1&e&&Ps(0,0,["*ngSwitchCase","true"])}function IS(e,t){1&e&&(ds(0,"span",9),ss(1,MS,2,1,"span",10),ss(2,PS,1,0,"ng-content",11),fs()),2&e&&(ls("ngSwitch",!!xs().customTrigger),Ao(2),ls("ngSwitchCase",!0))}function AS(e,t){if(1&e){var n=gs();ds(0,"div",12),ds(1,"div",13,14),ks("@transformPanel.done",function(e){return sn(n),xs()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return sn(n),xs()._handleKeydown(e)}),Ps(3,1),fs(),fs()}if(2&e){var i=xs();ls("@transformPanelWrap",void 0),Ao(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(e,t,n,i){var r=an(),o=gn(2);r.firstUpdatePass&&Gs(r,null,o,i);var a=on();if(n!==Io&&rs(a,o,n)){var s=r.data[In()];if(Js(s,i)&&!Hs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Te(u,n||"")),hs(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===Io&&(r=Rs);for(var u=0,c=0,l=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==l||null!==h;){var d=u<r.length?r[u+1]:void 0,f=c<o.length?o[c+1]:void 0,p=null,v=void 0;l===h?(u+=2,c+=2,d!==f&&(p=h,v=f)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,v=f),null!==p&&Qs(e,t,n,i,p,v,!0,s),l=u<r.length?r[u]:null,h=c<o.length?o[c]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return Rs;var i=[],r=ir(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,o)}}(Mi,zs,as(on(),r,o,a),!0),Bs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),ls("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),os("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}var r,o,a}var RS=[[["mat-select-trigger"]],"*"],DS=["mat-select-trigger","*"],NS={transformPanelWrap:tp("transformPanelWrap",[sp("* => void",cp("@transformPanel",[up()],{optional:!0}))]),transformPanel:tp("transformPanel",[op("void",rp({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),op("showing",rp({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),op("showing-multiple",rp({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),sp("void => *",np("120ms cubic-bezier(0, 0, 0.2, 1)")),sp("* => void",np("100ms 25ms linear",rp({opacity:0})))])},LS=0,VS=256,jS=new ki("mat-select-scroll-strategy"),FS=new ki("MAT_SELECT_CONFIG"),BS={provide:jS,deps:[B_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},US=function e(t,n){o(this,e),this.source=t,this.value=n},zS=Iy(Ay(My(Ry(function e(t,n,i,r,a){o(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),WS=new ki("MatSelectTrigger"),HS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c,l,h,f,p,v,m,g){var y,b,_,k;return o(this,n),(y=t.call(this,s,a,c,l,f))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=u,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=m,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(LS++),y._triggerAriaLabelledBy=null,y._destroy=new Q,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(LS++),y._panelDoneAnimatingStream=new Q,y._overlayPanelClass=(null===(b=y._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(k=null===(_=y._defaultOptions)||void 0===_?void 0:_.disableOptionCentering)&&void 0!==k&&k,y.ariaLabel="",y.optionSelectionChanges=Z_(function(){var e=y.options;return e?e.changes.pipe(wy(e),Bb(function(){return me.apply(void 0,C(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(Tg(1),Bb(function(){return y.optionSelectionChanges}))}),y.openedChange=new Pc,y._openedStream=y.openedChange.pipe(wg(function(e){return e}),J(function(){})),y._closedStream=y.openedChange.pipe(wg(function(e){return!e}),J(function(){})),y.selectionChange=new Pc,y.valueChange=new Pc,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=g.typeaheadDebounceInterval),y._scrollStrategyFactory=v,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return s(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Ig(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Ig(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Ig(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Ag(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new Xb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(xb(),Vb(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Vb(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(wy(null),Vb(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!cg(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||cg(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Tg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Kg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Vb(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Vb(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=me(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Vb(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),me.apply(void 0,C(this.options.map(function(e){return e._stateChanges}))).pipe(Vb(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(zS);return e.\u0275fac=function(t){return new(t||e)(cs(t_),cs(Xu),cs(ml),cs(Dy),cs(Ou),cs(gy,8),cs(Vf,8),cs(qf,8),cs(hw,8),cs(Qd,10),yi("tabindex"),cs(jS),cs(oy),cs(FS,8))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;1&e&&(Wc(OS,1),Wc(xS,1),Wc(H_,1)),2&e&&(zc(n=Gc())&&(t.trigger=n.first),zc(n=Gc())&&(t.panel=n.first),zc(n=Gc())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Za,Nt]}),e}(),GS=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return s(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Vb(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Tg(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=rb(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new US(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(VS/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-VS)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,VS)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,VS),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=rb(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(HS);return e.\u0275fac=function(t){return qS(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Hc(n,WS,1),Hc(n,ib,1),Hc(n,$y,1)),2&e&&(zc(i=Gc())&&(t.customTrigger=i.first),zc(i=Gc())&&(t.options=i),zc(i=Gc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ks("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(os("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Us("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[yu([{provide:nw,useExisting:e},{provide:Yy,useExisting:e}]),Za],ngContentSelectors:DS,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Ms(RS),ds(0,"div",0,1),ks("click",function(){return t.toggle()}),ds(3,"div",2),ss(4,TS,2,1,"span",3),ss(5,IS,3,2,"span",4),fs(),ds(6,"div",5),ps(7,"div",6),fs(),fs(),ss(8,AS,4,14,"ng-template",7),ks("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=us(1);os("aria-owns",t.panelOpen?t.id+"-panel":null),Ao(3),ls("ngSwitch",t.empty),os("id",t._valueId),Ao(1),ls("ngSwitchCase",!0),Ao(1),ls("ngSwitchCase",!1),Ao(3),ls("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[W_,Th,Mh,H_,Ph,_h],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[NS.transformPanelWrap,NS.transformPanel]},changeDetection:0}),e}(),qS=gi(GS),ZS=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[BS],imports:[[Lh,q_,ob,Ty],n_,fw,ob,Ty]}),e}();function QS(e){return function(t){return t.lift(new YS(e))}}var YS=function(){function e(t){o(this,e),this.value=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new KS(e,this.value))}}]),e}(),KS=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).value=i,r}return s(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(j),JS=["*"];function XS(e,t){if(1&e){var n=gs();ds(0,"div",2),ks("click",function(){return sn(n),xs()._onBackdropClicked()}),fs()}2&e&&Us("mat-drawer-shown",xs()._isShowingBackdrop())}function $S(e,t){1&e&&(ds(0,"mat-drawer-content"),Ps(1,2),fs())}var eC=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tC=["mat-drawer","mat-drawer-content","*"];function nC(e,t){if(1&e){var n=gs();ds(0,"div",2),ks("click",function(){return sn(n),xs()._onBackdropClicked()}),fs()}2&e&&Us("mat-drawer-shown",xs()._isShowingBackdrop())}function iC(e,t){1&e&&(ds(0,"mat-sidenav-content",3),Ps(1,2),fs())}var rC=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],oC=["mat-sidenav","mat-sidenav-content","*"],aC=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",sC={transformDrawer:tp("transform",[op("open, open-instant",rp({transform:"none",visibility:"visible"})),op("void",rp({"box-shadow":"none",visibility:"hidden"})),sp("void => open-instant",np("0ms")),sp("void <=> open, open-instant => void",np("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},uC=new ki("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),cC=new ki("MAT_DRAWER_CONTAINER"),lC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this,r,a,s))._changeDetectorRef=e,u._container=i,u}return s(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(e_);return e.\u0275fac=function(t){return new(t||e)(cs(Xu),cs(Pe(function(){return dC})),cs(Ou),cs($b),cs(ml))},e.\u0275cmp=ht({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Bs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Za],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(Ms(),Ps(0))},encapsulation:2,changeDetection:0}),e}(),hC=function(){var e=function(){function e(t,n,i,r,a,s,u){var c=this;o(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=a,this._doc=s,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Q,this._animationEnd=new Q,this._animationState="void",this.openedChange=new Pc(!0),this._openedStream=this.openedChange.pipe(wg(function(e){return e}),J(function(){})),this.openedStart=this._animationStarted.pipe(wg(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),QS(void 0)),this._closedStream=this.openedChange.pipe(wg(function(e){return!e}),J(function(){})),this.closedStart=this._animationStarted.pipe(wg(function(e){return e.fromState!==e.toState&&"void"===e.toState}),QS(void 0)),this._destroyed=new Q,this.onPositionChanged=new Pc,this._modeChanged=new Q,this.openedChange.subscribe(function(e){e?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){gb(c._elementRef.nativeElement,"keydown").pipe(wg(function(e){return e.keyCode===ug&&!c.disableClose&&!cg(e)}),Vb(c._destroyed)).subscribe(function(e){return c._ngZone.run(function(){c.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(xb(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&c.openedChange.emit(c._opened)})}return s(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=Ig(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=Ig(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(Ig(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(Tg(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ny),cs(cy),cs(eg),cs(ml),cs(Xl,8),cs(cC,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ws("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(os("align",null),nu("@transform",t._animationState),Us("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:JS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Ms(),ds(0,"div",0),Ps(1),fs())},encapsulation:2,data:{animation:[sC.transformDrawer]},changeDetection:0}),e}(),dC=function(){var e=function(){function e(t,n,i,r,a){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;o(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new Ac,this.backdropClick=new Pc,this._destroyed=new Q,this._doCheckSubject=new Q,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Q,t&&t.change.pipe(Vb(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe(Vb(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return s(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=Ig(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:Ig(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(wy(this._allDrawers),Vb(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(wy(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe(yg(10),Vb(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(wg(function(e){return e.fromState!==e.toState}),Vb(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Vb(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Vb(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(Tg(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Vb(me(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(gy,8),cs(Ou),cs(ml),cs(Xu),cs(t_),cs(uC),cs(Gm,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Hc(n,lC,1),Hc(n,hC,1)),2&e&&(zc(i=Gc())&&(t._content=i.first),zc(i=Gc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&Wc(lC,1),2&e&&zc(n=Gc())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Us("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[yu([{provide:cC,useExisting:e}])],ngContentSelectors:tC,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(Ms(eC),ss(0,XS,1,2,"div",0),Ps(1),Ps(2,1),ss(3,$S,2,0,"mat-drawer-content",1)),2&e&&(ls("ngIf",t.hasBackdrop),Ao(3),ls("ngIf",!t._content))},directives:[Ch,lC],styles:[aC],encapsulation:2,changeDetection:0}),e}(),fC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){return o(this,n),t.call(this,e,i,r,a,s)}return n}(lC);return e.\u0275fac=function(t){return new(t||e)(cs(Xu),cs(Pe(function(){return mC})),cs(Ou),cs($b),cs(ml))},e.\u0275cmp=ht({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Bs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Za],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(Ms(),Ps(0))},encapsulation:2,changeDetection:0}),e}(),pC=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return s(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=Ig(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=Ag(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=Ag(e)}}]),n}(hC);return e.\u0275fac=function(t){return vC(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(os("align",null),Bs("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Us("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Za],ngContentSelectors:JS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Ms(),ds(0,"div",0),Ps(1),fs())},encapsulation:2,data:{animation:[sC.transformDrawer]},changeDetection:0}),e}(),vC=gi(pC),mC=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(dC);return e.\u0275fac=function(t){return gC(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(Hc(n,fC,1),Hc(n,pC,1)),2&e&&(zc(i=Gc())&&(t._content=i.first),zc(i=Gc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Us("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[yu([{provide:cC,useExisting:e}]),Za],ngContentSelectors:oC,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(Ms(rC),ss(0,nC,1,2,"div",0),Ps(1),Ps(2,1),ss(3,iC,2,0,"mat-sidenav-content",1)),2&e&&(ls("ngIf",t.hasBackdrop),Ao(3),ls("ngIf",!t._content))},directives:[Ch,fC,e_],styles:[aC],encapsulation:2,changeDetection:0}),e}(),gC=gi(mC),yC=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Lh,Ty,tg,n_],n_,Ty]}),e}(),bC=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Lh,Ty],Ty]}),e}(),_C=["*",[["mat-toolbar-row"]]],kC=["*","mat-toolbar-row"],wC=Py(function e(t){o(this,e),this._elementRef=t}),SC=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),CC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e))._platform=i,a._document=r,a}return s(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(wC);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(eg),cs(Xl))},e.\u0275cmp=ht({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Hc(n,SC,1),2&e&&zc(i=Gc())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Us("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Za],ngContentSelectors:kC,decls:2,vars:0,template:function(e,t){1&e&&(Ms(_C),Ps(0),Ps(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}(),EC=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[Ty],Ty]}),e}(),OC=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(j),xC=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return s(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(j);function TC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new xC(e,n,i);if(!r.closed)return t instanceof W?t.subscribe(r):oe(t)(r)}var MC={};function PC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return K(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&x(t[0])&&(t=t[0]),ve(t,r).lift(new AC(i))}var IC,AC=function(){function e(t){o(this,e),this.resultSelector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new RC(e,this.resultSelector))}}]),e}(),RC=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return s(n,[{key:"_next",value:function(e){this.values.push(MC),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(TC(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===MC?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(OC),DC=function(){function e(t){o(this,e),this.total=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new NC(e,this.total))}}]),e}(),NC=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return s(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(j),LC=new Set,VC=function(){var e=function(){function e(t){o(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jC}return s(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!LC.has(e))try{IC||((IC=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(IC)),IC.sheet&&(IC.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),LC.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(eg))},e.\u0275prov=Re({factory:function(){return new e(Fi(eg))},token:e,providedIn:"root"}),e}();function jC(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var FC=function(){var e=function(){function e(t,n){o(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Q}return s(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return BC(Dg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=PC(BC(Dg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=ky(n.pipe(Tg(1)),n.pipe(function(e){return e.lift(new DC(1))},yg(0)))).pipe(J(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new W(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(wy(n),J(function(t){return{query:e,matches:t.matches}}),Vb(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(VC),Fi(ml))},e.\u0275prov=Re({factory:function(){return new e(Fi(VC),Fi(ml))},token:e,providedIn:"root"}),e}();function BC(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var UC={tooltipState:tp("state",[op("initial, void, hidden",rp({opacity:0,transform:"scale(0)"})),op("visible",rp({transform:"scale(1)"})),sp("* => visible",np("200ms cubic-bezier(0, 0, 0.2, 1)",ap([rp({opacity:0,transform:"scale(0)",offset:0}),rp({opacity:.5,transform:"scale(0.99)",offset:.5}),rp({opacity:1,transform:"scale(1)",offset:1})]))),sp("* => hidden",np("100ms cubic-bezier(0, 0, 0.2, 1)",rp({opacity:0})))])},zC=rg({passive:!0}),WC=new ki("mat-tooltip-scroll-strategy"),HC={provide:WC,deps:[B_],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},GC=new ki("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),qC=function(){var e=function(){function e(t,n,i,r,a,s,u,c,l,h,d,f){var p=this;o(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=s,this._ariaDescriber=u,this._focusMonitor=c,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Q,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===ug&&!cg(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return s(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Ig(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Vb(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_(t,2);e.removeEventListener(n[0],n[1],zC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new o_(ZC,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Vb(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(Vb(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Vb(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Tg(1),Vb(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],zC)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(B_),cs(Ou),cs($b),cs(hc),cs(ml),cs(eg),cs(Qg),cs(cy),cs(WC),cs(gy,8),cs(GC,8),cs(Xl))},e.\u0275dir=gt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e}(),ZC=function(){var e=function(){function e(t,n){o(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Q,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return s(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(Xu),cs(FC))},e.\u0275cmp=ht({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&ks("click",function(){return t._handleBodyInteraction()},!1,Ur)("auxclick",function(){return t._handleBodyInteraction()},!1,Ur),2&e&&Bs("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(ds(0,"div",0),ks("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Tc(1,"async"),Xs(2),fs()),2&e&&(Us("mat-tooltip-handset",null==(n=Mc(1,5,t._isHandset))?null:n.matches),ls("ngClass",t.tooltipClass)("@state",t._visibility),Ao(2),$s(t.message))},directives:[_h],pipes:[Nh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[UC.tooltipState]},changeDetection:0}),e}(),QC=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[HC],imports:[[vy,Lh,q_,Ty],Ty,n_]}),e}();function YC(e,t){if(1&e){var n=gs();ds(0,"div",1),ds(1,"button",2),ks("click",function(){return sn(n),xs().action()}),Xs(2),fs(),fs()}if(2&e){var i=xs();Ao(2),$s(i.data.action)}}function KC(e,t){}var JC,XC=new ki("MatSnackBarData"),$C=function e(){o(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},eE=Math.pow(2,31)-1,tE=function(){function e(t,n){var i=this;o(this,e),this._overlayRef=n,this._afterDismissed=new Q,this._afterOpened=new Q,this._onAction=new Q,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return i.dismiss()}),t._onExit.subscribe(function(){return i._finishDismiss()})}return s(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout(function(){return t.dismiss()},Math.min(e,eE))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),nE=function(){var e=function(){function e(t,n){o(this,e),this.snackBarRef=t,this.data=n}return s(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(tE),cs(XC))},e.\u0275cmp=ht({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(ds(0,"span"),Xs(1),fs(),ss(2,YC,3,1,"div",0)),2&e&&(Ao(1),$s(t.data.message),Ao(1),ls("ngIf",t.hasAction))},directives:[Ch,pb],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),iE={snackBarState:tp("state",[op("void, hidden",rp({transform:"scale(0.8)",opacity:0})),op("visible",rp({transform:"scale(1)",opacity:1})),sp("* => visible",np("150ms cubic-bezier(0, 0, 0.2, 1)")),sp("* => void, * => hidden",np("75ms cubic-bezier(0.4, 0.0, 1, 1)",rp({opacity:0})))])},rE=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this))._ngZone=e,u._elementRef=i,u._changeDetectorRef=r,u._platform=a,u.snackBarConfig=s,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new Q,u._onExit=new Q,u._onEnter=new Q,u._animationState="void",u.attachDomPortal=function(e){return u._assertNotAttached(),u._applySnackBarClasses(),u._portalOutlet.attachDomPortal(e)},u._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",u._platform.FIREFOX&&("polite"===u._live&&(u._role="status"),"assertive"===u._live&&(u._role="alert")),u}return s(n,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.toState;if(("void"===t&&"void"!==e.fromState||"hidden"===t)&&this._completeExit(),"visible"===t){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),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 e=this;this._ngZone.onMicrotaskEmpty.pipe(Tg(1)).subscribe(function(){e._onExit.next(),e._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var e=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){e._announceTimeoutId=setTimeout(function(){var t=e._elementRef.nativeElement.querySelector("[aria-hidden]"),n=e._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){var i=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==i||i.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}]),n}(u_);return e.\u0275fac=function(t){return new(t||e)(cs(ml),cs(Ou),cs(Xu),cs(eg),cs($C))},e.\u0275cmp=ht({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&Wc(l_,3),2&e&&zc(n=Gc())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&ws("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&nu("@state",t._animationState)},features:[Za],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(ds(0,"div",0),ss(1,KC,0,0,"ng-template",1),fs(),ps(2,"div")),2&e&&(Ao(2),os("aria-live",t._live)("role",t._role))},directives:[l_],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:[iE.snackBarState]}}),e}(),oE=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[q_,h_,Lh,vb,Ty],Ty]}),e}(),aE=new ki("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new $C}}),sE=function(){var e=function(){function e(t,n,i,r,a,s){o(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=nE,this.snackBarContainerComponent=rE,this.handsetCssClass="mat-snack-bar-handset"}return s(e,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=Ga.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:$C,useValue:t}]}),i=new o_(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new $C),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new tE(o,r);if(e instanceof oc){var s=new a_(e,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var u=this._createInjector(i,a),c=new o_(e,void 0,u),l=o.attachComponentPortal(c);a.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Vb(r.detachments())).subscribe(function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe(function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(t.duration)})}},{key:"_createOverlay",value:function(e){var t=new k_;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,o=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return Ga.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:tE,useValue:t},{provide:XC,useValue:e.data}]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(B_),Fi(oy),Fi(Ga),Fi(FC),Fi(e,12),Fi(aE))},e.\u0275prov=Re({factory:function(){return new e(Fi(B_),Fi(oy),Fi(Ta),Fi(FC),Fi(e,12),Fi(aE))},token:e,providedIn:oE}),e}(),uE={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return uE.schedule(e,0);if(void 0===window.requestAnimationFrame)return uE.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function cE(e,t,n){var i=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some(function(t,n){return!("*"===t||!function(e,t){if(!JC){var n=Element.prototype;JC=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&JC.call(e,t)}(e,t)||(i=n,0))}),i}var lE=function(){function e(t,n){o(this,e),this.componentFactory=n.get(wu).resolveComponentFactory(t)}return s(e,[{key:"create",value:function(e){return new hE(this.componentFactory,e)}}]),e}(),hE=function(){function e(t,n){o(this,e),this.componentFactory=t,this.injector=n,this.eventEmitters=new Kb(1),this.events=this.eventEmitters.pipe(Bb(function(e){return me.apply(void 0,C(e))})),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(function(e){return e.propName})),this.ngZone=this.injector.get(ml),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(function(){return Zone.current})}return s(e,[{key:"connect",value:function(e){var t=this;this.runInZone(function(){if(null!==t.scheduledDestroyFn)return t.scheduledDestroyFn(),void(t.scheduledDestroyFn=null);null===t.componentRef&&t.initializeComponent(e)})}},{key:"disconnect",value:function(){var e=this;this.runInZone(function(){null!==e.componentRef&&null===e.scheduledDestroyFn&&(e.scheduledDestroyFn=uE.schedule(function(){null!==e.componentRef&&(e.componentRef.destroy(),e.componentRef=null,e.viewChangeDetectorRef=null)},10))})}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone(function(){return null===t.componentRef?t.initialInputValues.get(e):t.componentRef.instance[e]})}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone(function(){var i,r;null!==n.componentRef?((i=t)!==(r=n.getInputValue(e))&&(i==i||r==r)||void 0===t&&n.unchangedInputs.has(e))&&(n.recordInputChange(e,t),n.unchangedInputs.delete(e),n.hasInputChanges=!0,n.componentRef.instance[e]=t,n.scheduleDetectChanges()):n.initialInputValues.set(e,t)})}},{key:"initializeComponent",value:function(e){var t=Ga.create({providers:[],parent:this.injector}),n=function(e,t){var n=e.childNodes,i=t.map(function(){return[]}),r=-1;t.some(function(e,t){return"*"===e&&(r=t,!0)});for(var o=0,a=n.length;o<a;++o){var s=n[o],u=cE(s,t,r);-1!==u&&i[u].push(s)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Xu),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Fl).attachView(this.componentRef.hostView)}},{key:"initializeInputs",value:function(){var e=this;this.componentFactory.inputs.forEach(function(t){var n=t.propName;e.initialInputValues.has(n)&&e.setInputValue(n,e.initialInputValues.get(n))}),this.initialInputValues.clear()}},{key:"initializeOutputs",value:function(e){var t=this.componentFactory.outputs.map(function(t){var n=t.templateName;return e.instance[t.propName].pipe(J(function(e){return{name:n,value:e}}))});this.eventEmitters.next(t)}},{key:"callNgOnChanges",value:function(e){if(this.implementsOnChanges&&null!==this.inputChanges){var t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}}},{key:"markViewForCheck",value:function(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}},{key:"scheduleDetectChanges",value:function(){var e=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=uE.scheduleBeforeRender(function(){e.scheduledChangeDetectionFn=null,e.detectChanges()}))}},{key:"recordInputChange",value:function(e,t){if(this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[e];if(n)n.currentValue=t;else{var i=this.unchangedInputs.has(e),r=i?void 0:this.getInputValue(e);this.inputChanges[e]=new Dt(r,t,i)}}}},{key:"detectChanges",value:function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}},{key:"runInZone",value:function(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}]),e}(),dE=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).ngElementEventsSubscription=null,e}return n}(O(HTMLElement));function fE(e,t){var n=function(e,t){return t.get(wu).resolveComponentFactory(e).inputs}(e,t.injector),i=t.strategyFactory||new lE(e,t.injector),r=function(e){var t={};return e.forEach(function(e){var n,i=e.propName;t[(n=e.templateName,n.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}))]=i}),t}(n),a=function(e){c(u,e);var a=p(u);function u(e){var t;return o(this,u),(t=a.call(this)).injector=e,t}return s(u,[{key:"ngElementStrategy",get:function(){var e=this;if(!this._ngElementStrategy){var r=this._ngElementStrategy=i.create(this.injector||t.injector);n.forEach(function(t){var n=t.propName;if(e.hasOwnProperty(n)){var i=e[n];delete e[n],r.setInputValue(n,i)}})}return this._ngElementStrategy}},{key:"attributeChangedCallback",value:function(e,t,n,i){this.ngElementStrategy.setInputValue(r[e],n)}},{key:"connectedCallback",value:function(){var e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}},{key:"disconnectedCallback",value:function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}},{key:"subscribeToEvents",value:function(){var e=this;this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(function(t){var n=function(e,t,n){if("function"!=typeof CustomEvent){var i=e.createEvent("CustomEvent");return i.initCustomEvent(t,!1,!1,n),i}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(e.ownerDocument,t.name,t.value);e.dispatchEvent(n)})}}]),u}(dE);return a.observedAttributes=Object.keys(r),n.forEach(function(e){var t=e.propName;Object.defineProperty(a.prototype,t,{get:function(){return this.ngElementStrategy.getInputValue(t)},set:function(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})}),a}new Au("11.1.1");var pE=function(){function e(t,n){o(this,e),this.strategy=t,this.injector=n,this.ngZone=this.injector.get(ml),this.strategy.events&&(this.events=this.strategy.events)}return s(e,[{key:"connect",value:function(e){var t=this;this.runInZone(function(){t.strategy.connect(e)}),this.events||(this.events=this.strategy.events)}},{key:"disconnect",value:function(){var e=this;this.runInZone(function(){e.strategy.disconnect()})}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone(function(){return t.strategy.getInputValue(e)})}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone(function(){n.strategy.setInputValue(e,t)})}},{key:"runInZone",value:function(e){return this.ngZone.run(e)}}]),e}(),vE=function(){var e=function(){function e(t,n){o(this,e),this.component=t,this.injector=n,this.ngElement=fE(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return s(e,[{key:"string4",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},{key:"generateName",value:function(){var t="dummy-name-n";return t=t+(e.counter+"-")+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),e.counter++,t}},{key:"create",value:function(e){var t=new this.ngElement(this.injector),n=t.ngElementStrategy;return t=null,new pE(n,this.injector)}}]),e}();return e.counter=1,e}(),mE=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._value=e,i}return s(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=r(i(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new G;return this._value}},{key:"next",value:function(e){r(i(n.prototype),"next",this).call(this,this._value=e)}}]),n}(Q),gE={provide:nl,useFactory:function(e,t){return function(){if(Vh(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(yE,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(yE,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[Xl,tl],multi:!0},yE="flex-layout-",bE=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},providers:[gE]}),e}(),_E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;o(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return s(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),kE=function(){var e=function(){function e(){o(this,e),this.stylesheet=new Map}return s(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),wE={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},SE=new ki("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return wE}}),CE=new ki("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),EE=new ki("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function OE(e,t){return e=e?e.clone():new _E,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var xE="inline",TE=["row","column","row-reverse","column-reverse"];function ME(e){var t=function(e){var t=_((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return TE.find(function(e){return e===n})||(n=TE[0]),i===xE&&(i=r!==xE?r:"",r=xE),[n,PE(i),!!r]}(e),n=_(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}function PE(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var IE=function(){var e=function(){function e(t,n,i,r){o(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Q,this.styleCache=new Map}return s(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=_(n,2),r=i[0],o=i[1];if(!o&&t){var a=ME(r),s=[e];this.styler.applyStyleToElements(a,s)}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=gt({type:e,features:[Nt]}),e}(),AE=[{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}],RE="(orientation: portrait) and (max-width: 599.98px)",DE="(orientation: landscape) and (max-width: 959.98px)",NE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",LE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",VE="(orientation: portrait) and (min-width: 840px)",jE="(orientation: landscape) and (min-width: 1280px)",FE={HANDSET:"".concat(RE,", ").concat(DE),TABLET:"".concat(NE," , ").concat(LE),WEB:"".concat(VE,", ").concat(jE," "),HANDSET_PORTRAIT:"".concat(RE),TABLET_PORTRAIT:"".concat(NE," "),WEB_PORTRAIT:"".concat(VE),HANDSET_LANDSCAPE:"".concat(DE),TABLET_LANDSCAPE:"".concat(LE),WEB_LANDSCAPE:"".concat(jE)},BE=[{alias:"handset",priority:2e3,mediaQuery:FE.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:FE.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:FE.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:FE.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:FE.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:FE.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:FE.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:FE.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:FE.WEB_PORTRAIT,overlapping:!0}];function UE(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var zE=/(\.|-|_)/g;function WE(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function HE(e){return e.forEach(function(e){e.suffix||(e.suffix=e.alias.replace(zE,"|").split("|").map(WE).join(""),e.overlapping=!!e.overlapping)}),e}var GE=new ki("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Bi(EE),t=Bi(SE),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach(function(e){n[e.alias]=e}),t.forEach(function(e){n[e.alias]?UE(n[e.alias],e):n[e.alias]=e}),HE(Object.keys(n).map(function(e){return n[e]}))}((t.disableDefaultBps?[]:AE).concat(t.addOrientationBps?BE:[]),n)}});function qE(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function ZE(e,t){return(e.priority||0)-(t.priority||0)}var QE=function(){var e=function(){function e(t){o(this,e),this.findByMap=new Map,this.items=C(t).sort(ZE)}return s(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,function(t){return t.alias==e}):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,function(t){return t.mediaQuery==e})}},{key:"overlappings",get:function(){return this.items.filter(function(e){return 1==e.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(e){return e.alias})}},{key:"suffixes",get:function(){return this.items.map(function(e){return e.suffix?e.suffix:""})}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(GE))},e.\u0275prov=Re({factory:function(){return new e(Fi(GE))},token:e,providedIn:"root"}),e}(),YE=function(){var e=function(){function e(t,n,i){o(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new mE(new _E(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return s(e,[{key:"activations",get:function(){var e=[];return this.registry.forEach(function(t,n){t.matches&&e.push(n)}),e}},{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(function(e){return e.matches})}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(wg(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new W(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return me(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!KE[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var o="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n");r.appendChild(t.createTextNode(o))}t.head.appendChild(r),n.forEach(function(e){return KE[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new _E(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new _E(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Vh(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(ml),Fi(tl),Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(ml),Fi(tl),Fi(Xl))},token:e,providedIn:"root"}),e}(),KE={},JE="print",XE={alias:JE,mediaQuery:JE,priority:1e3},$E=function(){var e=function(){function e(t,n,i){o(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new eO,this.deactivations=[]}return s(e,[{key:"withPrintQuery",value:function(e){return[].concat(C(e),[JE])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith(JE)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return(t?[].concat(C(this.printBreakPoints),[t]):this.printBreakPoints).sort(qE)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),OE(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new _E(!0,JE))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(qE))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(QE),Fi(SE),Fi(Xl))},e.\u0275prov=Re({factory:function(){return new e(Fi(QE),Fi(SE),Fi(Xl))},token:e,providedIn:"root"}),e}(),eO=function(){function e(){o(this,e),this.printBreakpoints=[]}return s(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(XE),e.sort(qE),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith(JE)}(e)?[e].concat(C(this.printBreakpoints)):[].concat(C(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function tO(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var nO=function(){var e=function(){function e(t,n,i,r){o(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return s(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:tO(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:tO(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t="flex-direction",n=this.lookupStyle(e,t);return[n||"row",this.lookupInlineStyle(e,t)||jh(this._platformId)&&this._serverModuleLoaded?n:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Vh(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";if(e){var r=i=this.lookupInlineStyle(e,t);r||(Vh(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))}return i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var a,s=g(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;u=u?u+"":"",Vh(n._platformId)||!n._serverModuleLoaded?Vh(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(c){s.e(c)}finally{s.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(kE),Fi(CE),Fi(tl),Fi(SE))},e.\u0275prov=Re({factory:function(){return new e(Fi(kE),Fi(CE),Fi(tl),Fi(SE))},token:e,providedIn:"root"}),e}(),iO=function(){function e(){o(this,e),this.shouldCache=!0}return s(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function rO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=oO(e.substring(r).trim());var o=e.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=oO(e.trim());else{var a=e.split(" ");i=3===a.length?a:[t,n,e]}return i}function oO(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var aO=function(){var e=function(){function e(t,n,i){o(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Q,this.observeActivations()}return s(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=OE(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(qE),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(qE),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];sO(this.updateMap,e,t,n),sO(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(wg(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var o=r.get(i);e.updateElement(n,i,o)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var o=me.apply(void 0,C(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,o)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map(function(e){return e.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(hg(this.hook.interceptEvents(this)),wg(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(YE),Fi(QE),Fi($E))},e.\u0275prov=Re({factory:function(){return new e(Fi(YE),Fi(QE),Fi($E))},token:e,providedIn:"root"}),e}();function sO(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}new Map;var uO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c){var l;return o(this,n),(l=t.call(this,e,null,i,r)).ngClassInstance=c,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new _h(a,s,e,u)),l.init(),l.setValue("",""),l}return s(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(aO),cs(Gu),cs(Zu),cs(Mu),cs(_h,10))},e.\u0275dir=gt({type:e,inputs:{klass:["class","klass"]},features:[Za]}),e}(),cO=["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"],lO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=cO,e}return n}(uO);return e.\u0275fac=function(t){return hO(t||e)},e.\u0275dir=gt({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Za]}),e}(),hO=gi(lO),dO=(new WeakMap,function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];o(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")});function fO(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function pO(e){var t=S(e.split(":")),n=t[0],i=t.slice(1);return new dO(n,i.join(":"))}function vO(e,t){return t.key&&(e[t.key]=t.value),e}var mO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u,c,l,h){var d;o(this,n),(d=t.call(this,e,null,i,r)).sanitizer=a,d.ngStyleInstance=c,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new Ih(e,s,u)),d.init();var f=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(f),d.isServer=l&&jh(h),d}return s(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(Mr.STYLE,e)||""};if(e)switch(fO(e)){case"string":return _O(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return _O(e,o);case"set":default:return n=o,i=[],"set"===fO(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(pO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(vO,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(aO),cs(md),cs(Zu),cs(Mu),cs(Ih,10),cs(CE),cs(tl))},e.\u0275dir=gt({type:e,features:[Za]}),e}(),gO=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],yO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=gO,e}return n}(mO);return e.\u0275fac=function(t){return bO(t||e)},e.\u0275dir=gt({type:e,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Za]}),e}(),bO=gi(yO);function _O(e,t){return e.map(pO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(vO,{})}var kO=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[bE]]}),e}(),wO="inline",SO=["row","column","row-reverse","column-reverse"];function CO(e){var t=_((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return SO.find(function(e){return e===n})||(n=SO[0]),i===wO&&(i=r!==wO?r:"",r=wO),[n,OO(i),!!r]}function EO(e){return _(CO(e),1)[0].indexOf("row")>-1}function OO(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var xO=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return function(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((t=_(CO(e),3))[0],t[1],t[2]);var t}}]),n}(iO);return e.\u0275fac=function(t){return TO(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),TO=gi(xO),MO=["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"],PO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",s.styleCache=RO,s.init(),s}return n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(xO),cs(aO))},e.\u0275dir=gt({type:e,features:[Za]}),e}(),IO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=MO,e}return n}(PO);return e.\u0275fac=function(t){return AO(t||e)},e.\u0275dir=gt({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Za]}),e}(),AO=gi(IO),RO=new Map,DO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},NO=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._styler=e,i}return s(n,[{key:"buildStyles",value:function(e,t){return e.endsWith(HO)?(n=e=e.slice(0,e.indexOf(HO)),i=t.directionality,o=(r=_(n.split(" "),2))[0],s="0px",u=(a=function(e){return"-".concat(e)})(r[1]||o),c="0px","rtl"===i?c=a(o):s=a(o),{margin:"0px ".concat(s," ").concat(u," ").concat(c)}):{};var n,i,r,o,a,s,u,c}},{key:"sideEffect",value:function(e,t,n){var i,r,o,a,s,u,c,l=n.items;if(e.endsWith(HO)){var h=(i=e=e.slice(0,e.indexOf(HO)),r=n.directionality,a=(o=_(i.split(" "),2))[0],s="0px",u=o[1]||a,c="0px","rtl"===r?c=a:s=a,{padding:"0px ".concat(s," ").concat(u," ").concat(c)});this._styler.applyStyleToElements(h,n.items)}else{var d=l.pop(),f=function(e,t){var n=GO(t.directionality,t.layout),i=Object.assign({},DO);return i[n]=e,i}(e,n);this._styler.applyStyleToElements(f,l),this._styler.applyStyleToElements(DO,[d])}}}]),n}(iO);return e.\u0275fac=function(t){return new(t||e)(Fi(nO))},e.\u0275prov=Re({factory:function(){return new e(Fi(nO))},token:e,providedIn:"root"}),e}(),LO=["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"],VO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s,u){var c;o(this,n),(c=t.call(this,e,s,a,u)).zone=i,c.directionality=r,c.styleUtils=a,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Q;var l=[c.directionality.change,c.observerSubject.asObservable()];return c.init(l),c.marshal.trackValue(c.nativeElement,"layout").pipe(Vb(c.destroySubject)).subscribe(c.onLayoutChange.bind(d(c))),c}return s(n,[{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],SO.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(e){var t=this,n=this.childrenNodes.filter(function(e){return 1===e.nodeType&&t.willDisplay(e)}).sort(function(e,n){var i=+t.styler.lookupStyle(e,"order"),r=+t.styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1});if(n.length>0){var i=this.directionality.value,r=this.layout;"row"===r&&"rtl"===i?this.styleCache=BO:"row"===r&&"rtl"!==i?this.styleCache=zO:"column"===r&&"rtl"===i?this.styleCache=UO:"column"===r&&"rtl"!==i&&(this.styleCache=WO),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var e=Object.keys(this.mru).length>0,t=e?"padding":GO(this.directionality.value,this.layout);e&&r(i(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(k({},t,""),this.childrenNodes)}},{key:"willDisplay",value:function(e){var t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}},{key:"buildChildObservable",value:function(){var e=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e.observerSubject.next()}),e.observer.observe(e.nativeElement,{childList:!0}))})}}]),n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(ml),cs(gy),cs(nO),cs(NO),cs(aO))},e.\u0275dir=gt({type:e,features:[Za]}),e}(),jO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=LO,e}return n}(VO);return e.\u0275fac=function(t){return FO(t||e)},e.\u0275dir=gt({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Za]}),e}(),FO=gi(jO),BO=new Map,UO=new Map,zO=new Map,WO=new Map,HO=" grid";function GO(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function qO(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var ZO=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).layoutConfig=e,i}return s(n,[{key:"buildStyles",value:function(e,t){var n=S(e.split(" ")),i=n[0],r=n[1],o=n.slice(2).join(" "),a=t.direction.indexOf("column")>-1?"column":"row",s=EO(a)?"max-width":"max-height",u=EO(a)?"min-width":"min-height",c=String(o).indexOf("calc")>-1,l=c||"auto"===o,h=String(o).indexOf("%")>-1&&!c,d=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,f=c||d;r="0"==r?0:r;var p=!(i="0"==i?0:i)&&!r,v={},m={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:f||h||isNaN(o)||(o+="%"),"0%"===o&&(f=!0),"0px"===o&&(o="0%"),v=qO(m,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":f?o:"100%"}:{flex:"".concat(i," ").concat(r," ").concat(f?o:"100%")})}return v.flex||v["flex-grow"]||(v=qO(m,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(v[u]=p||f&&i?o:null,v[s]=p||!l&&r?o:null),v[u]||v[s]?t.hasWrap&&(v[c?"flex-basis":"flex"]=v[s]?c?v[s]:"".concat(i," ").concat(r," ").concat(v[s]):c?v[u]:"".concat(i," ").concat(r," ").concat(v[u])):v=qO(m,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)}),qO(v,{"box-sizing":"border-box"})}}]),n}(iO);return e.\u0275fac=function(t){return new(t||e)(Fi(SE))},e.\u0275prov=Re({factory:function(){return new e(Fi(SE))},token:e,providedIn:"root"}),e}(),QO=["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"],YO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this,e,a,i,s)).layoutConfig=r,u.marshal=s,u.DIRECTIVE_KEY="flex",u.direction=void 0,u.wrap=void 0,u.flexGrow="1",u.flexShrink="1",u.init(),u}return s(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Vb(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Vb(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=ex:n&&!i?this.styleCache=XO:!n&&i?this.styleCache=tx:n||i||(this.styleCache=$O);var r=rO(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=rO(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(SE),cs(ZO),cs(aO))},e.\u0275dir=gt({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Za]}),e}(),KO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=QO,e}return n}(YO);return e.\u0275fac=function(t){return JO(t||e)},e.\u0275dir=gt({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Za]}),e}(),JO=gi(KO),XO=new Map,$O=new Map,ex=new Map,tx=new Map,nx=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return{order:e&&parseInt(e,10)||""}}}]),n}(iO);return e.\u0275fac=function(t){return ix(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ix=gi(nx),rx=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"],ox=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="flex-order",s.styleCache=ax,s.init(),s}return n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(nx),cs(aO))},e.\u0275dir=gt({type:e,features:[Za]}),e}(),ax=new Map,sx=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=rx,e}return n}(ox);return e.\u0275fac=function(t){return ux(t||e)},e.\u0275dir=gt({type:e,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[Za]}),e}(),ux=gi(sx),cx=(new Map,new Map,new Map,new Map,new Map,{margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"}),lx=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return cx}}]),n}(iO);return e.\u0275fac=function(t){return hx(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),hx=gi(lx),dx=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).styleCache=fx,s.addStyles(""),s}return n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(lx),cs(aO))},e.\u0275dir=gt({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Za]}),e}(),fx=new Map,px=function(){var e=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e,t){var n={},i=_(e.split(" "),2),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return qO(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===r?EO(t.layout)?null:"100%":null,"max-height":"stretch"===r&&EO(t.layout)?"100%":null})}}]),n}(iO);return e.\u0275fac=function(t){return vx(t||e)},e.\u0275prov=Re({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vx=gi(px),mx=["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"],gx=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(Vb(s.destroySubject)).subscribe(s.onLayoutChange.bind(d(s))),s}return s(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=Cx:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=Ox:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=Ex:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=xx:"column-reverse"!==t||n||(this.styleCache=Sx):this.styleCache=kx:this.styleCache=wx:this.styleCache=_x,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),SO.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(IE);return e.\u0275fac=function(t){return new(t||e)(cs(Ou),cs(nO),cs(px),cs(aO))},e.\u0275dir=gt({type:e,features:[Za]}),e}(),yx=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=mx,e}return n}(gx);return e.\u0275fac=function(t){return bx(t||e)},e.\u0275dir=gt({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Za]}),e}(),bx=gi(yx),_x=new Map,kx=new Map,wx=new Map,Sx=new Map,Cx=new Map,Ex=new Map,Ox=new Map,xx=new Map,Tx=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[bE,yy]]}),e}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var Mx=function(){var e=function e(){o(this,e)};return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[bE]]}),e}(),Px=(new Au("11.0.0-beta.33"),function(){var e=function(){function e(t,n){o(this,e),jh(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return s(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:SE,useValue:Object.assign(Object.assign({},wE),t)},{provide:EE,useValue:n,multi:!0},{provide:CE,useValue:!0}]:[{provide:SE,useValue:Object.assign(Object.assign({},wE),t)},{provide:EE,useValue:n,multi:!0}]}}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(CE),Fi(tl))},imports:[[Tx,kO,Mx],Tx,kO,Mx]}),e}()),Ix=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Ax(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Rx(e,t,n))}}var Rx=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Dx(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Dx=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=a,s.index=0,s}return s(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(j);function Nx(e){return function(t){return 0===e?xg():t.lift(new Lx(e))}}var Lx=function(){function e(t){if(o(this,e),this.total=t,this.total<0)throw new Eg}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Vx(e,this.total))}}]),e}(),Vx=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return s(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(j);function jx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ux;return function(t){return t.lift(new Fx(e))}}var Fx=function(){function e(t){o(this,e),this.errorFactory=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Bx(e,this.errorFactory))}}]),e}(),Bx=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return s(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(j);function Ux(){return new Ix}function zx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Wx(e))}}var Wx=function(){function e(t){o(this,e),this.defaultValue=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Hx(e,this.defaultValue))}}]),e}(),Hx=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return s(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(j);function Gx(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?wg(function(t,n){return e(t,n,i)}):U,Tg(1),n?zx(t):jx(function(){return new Ix}))}}var qx=function e(t,n){o(this,e),this.id=t,this.url=n},Zx=function(e){c(n,e);var t=p(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return o(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=s,r}return s(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(qx),Qx=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return s(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(qx),Yx=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e,i)).reason=r,a}return s(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(qx),Kx=function(e){c(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e,i)).error=r,a}return s(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(qx),Jx=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s}return s(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(qx),Xx=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s}return s(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(qx),$x=function(e){c(n,e);var t=p(n);function n(e,i,r,a,s){var u;return o(this,n),(u=t.call(this,e,i)).urlAfterRedirects=r,u.state=a,u.shouldActivate=s,u}return s(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(qx),eT=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s}return s(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(qx),tT=function(e){c(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s}return s(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(qx),nT=function(){function e(t){o(this,e),this.route=t}return s(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),iT=function(){function e(t){o(this,e),this.route=t}return s(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),rT=function(){function e(t){o(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),oT=function(){function e(t){o(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),aT=function(){function e(t){o(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),sT=function(){function e(t){o(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),uT=function(){function e(t,n,i){o(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return s(e,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),e}(),cT="primary",lT=function(){function e(t){o(this,e),this.params=t||{}}return s(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function hT(e){return new lT(e)}function dT(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function fT(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function pT(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!vT(e[n=i[o]],t[n]))return!1;return!0}function vT(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=C(e).sort(),i=C(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function mT(e){return Array.prototype.concat.apply([],e)}function gT(e){return e.length>0?e[e.length-1]:null}function yT(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function bT(e){return _s(e)?e:ys(e)?se(Promise.resolve(e)):sg(e)}function _T(e,t,n){return n?function(e,t){return pT(e,t)}(e.queryParams,t.queryParams)&&kT(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return vT(e[n],t[n])})}(e.queryParams,t.queryParams)&&wT(e.root,t.root)}function kT(e,t){if(!xT(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!kT(e.children[n],t.children[n]))return!1}return!0}function wT(e,t){return ST(e,t,t.segments)}function ST(e,t,n){if(e.segments.length>n.length)return!!xT(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!xT(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!wT(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!xT(e.segments,r)&&!!e.children.primary&&ST(e.children.primary,t,o)}var CT=function(){function e(t,n,i){o(this,e),this.root=t,this.queryParams=n,this.fragment=i}return s(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=hT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return PT.serialize(this)}}]),e}(),ET=function(){function e(t,n){var i=this;o(this,e),this.segments=t,this.children=n,this.parent=null,yT(n,function(e,t){return e.parent=i})}return s(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return IT(this)}}]),e}(),OT=function(){function e(t,n){o(this,e),this.path=t,this.parameters=n}return s(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=hT(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return jT(this)}}]),e}();function xT(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var TT=function e(){o(this,e)},MT=function(){function e(){o(this,e)}return s(e,[{key:"parse",value:function(e){var t=new WT(e);return new CT(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(AT(e.root,!0)),r=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(DT(e),"=").concat(DT(t))}).join("&"):"".concat(DT(e),"=").concat(DT(n))})).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),PT=new MT;function IT(e){return e.segments.map(function(e){return jT(e)}).join("/")}function AT(e,t){if(!e.hasChildren())return IT(e);if(t){var n=e.children.primary?AT(e.children.primary,!1):"",i=[];return yT(e.children,function(e,t){t!==cT&&i.push("".concat(t,":").concat(AT(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return yT(e.children,function(e,i){i===cT&&(n=n.concat(t(e,i)))}),yT(e.children,function(e,i){i!==cT&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===cT?[AT(e.children.primary,!1)]:["".concat(n,":").concat(AT(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(IT(e),"/").concat(r[0]):"".concat(IT(e),"/(").concat(r.join("//"),")")}function RT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function DT(e){return RT(e).replace(/%3B/gi,";")}function NT(e){return RT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function LT(e){return decodeURIComponent(e)}function VT(e){return LT(e.replace(/\+/g,"%20"))}function jT(e){return"".concat(NT(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(NT(e),"=").concat(NT(t[e]))}).join("")));var t}var FT=/^[^\/()?;=#]+/;function BT(e){var t=e.match(FT);return t?t[0]:""}var UT=/^[^=?&#]+/,zT=/^[^?&#]+/,WT=function(){function e(t){o(this,e),this.url=t,this.remaining=t}return s(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ET([],{}):new ET([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new ET(e,t)),n}},{key:"parseSegment",value:function(){var e=BT(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new OT(LT(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=BT(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=BT(this.remaining);i&&this.capture(n=i)}e[LT(t)]=LT(n)}}},{key:"parseQueryParam",value:function(e){var t,n=(t=this.remaining.match(UT))?t[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(zT);return t?t[0]:""}(this.remaining);r&&this.capture(i=r)}var o=VT(n),a=VT(i);if(e.hasOwnProperty(o)){var s=e[o];Array.isArray(s)||(e[o]=s=[s]),s.push(a)}else e[o]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=BT(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=cT);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new ET([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),HT=function(){function e(t){o(this,e),this._root=t}return s(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=GT(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=GT(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=qT(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return qT(e,this._root).map(function(e){return e.value})}}]),e}();function GT(e,t){if(e===t.value)return t;var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=GT(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function qT(e,t){if(e===t.value)return[t];var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=qT(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var ZT=function(){function e(t,n){o(this,e),this.value=t,this.children=n}return s(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function QT(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var YT=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).snapshot=i,nM(d(r),e),r}return s(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(HT);function KT(e,t){var n=function(e,t){var n=new eM([],{},{},"",{},cT,t,null,e.root,-1,{});return new tM("",new ZT(n,[]))}(e,t),i=new mE([new OT("",{})]),r=new mE({}),o=new mE({}),a=new mE({}),s=new mE(""),u=new JT(i,r,a,s,o,cT,t,n.root);return u.snapshot=n.root,new YT(new ZT(u,[]),n)}var JT=function(){function e(t,n,i,r,a,s,u,c){o(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=s,this.component=u,this._futureSnapshot=c}return s(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(J(function(e){return hT(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(e){return hT(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function XT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return $T(n.slice(i))}function $T(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var eM=function(){function e(t,n,i,r,a,s,u,c,l,h,d){o(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=s,this.component=u,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=h,this._resolve=d}return s(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=hT(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=hT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(e){return e.toString()}).join("/"),t=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(t,"')")}}]),e}(),tM=function(e){c(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,i)).url=e,nM(d(r),i),r}return s(n,[{key:"toString",value:function(){return iM(this._root)}}]),n}(HT);function nM(e,t){t.value._routerState=e,t.children.forEach(function(t){return nM(e,t)})}function iM(e){var t=e.children.length>0?" { ".concat(e.children.map(iM).join(", ")," } "):"";return"".concat(e.value).concat(t)}function rM(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,pT(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),pT(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!pT(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),pT(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function oM(e,t){var n,i;return pT(e.params,t.params)&&xT(n=e.url,i=t.url)&&n.every(function(e,t){return pT(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||oM(e.parent,t.parent))}function aM(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=g(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return aM(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return aM(e,t)})}(e,t,n);return new ZT(i,r)}var o=e.retrieve(t.value);if(o){var a=o.route;return sM(t,a),a}var s,u=new JT(new mE((s=t.value).url),new mE(s.params),new mE(s.queryParams),new mE(s.fragment),new mE(s.data),s.outlet,s.component,s),c=t.children.map(function(t){return aM(e,t)});return new ZT(u,c)}function sM(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)sM(e.children[n],t.children[n])}function uM(e,t,n,i,r){if(0===n.length)return hM(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new fM(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return yT(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(C(e),[{outlets:o}])}if(i.segmentPath)return[].concat(C(e),[i.segmentPath])}return"string"!=typeof i?[].concat(C(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(C(e),[i])},[]);return new fM(n,t,i)}(n);if(o.toRoot())return hM(t.root,new ET([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new pM(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new pM(i,i===t.root,0)}var r=cM(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new pM(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?mM(a.segmentGroup,a.index,o.commands):vM(a.segmentGroup,a.index,o.commands);return hM(a.segmentGroup,s,t,i,r)}function cM(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function lM(e){return"object"==typeof e&&null!=e&&e.outlets}function hM(e,t,n,i,r){var o={};return i&&yT(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new CT(n.root===e?t:dM(n.root,e,t),o,r)}function dM(e,t,n){var i={};return yT(e.children,function(e,r){i[r]=e===t?n:dM(e,t,n)}),new ET(e.segments,i)}var fM=function(){function e(t,n,i){if(o(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&cM(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(lM);if(r&&r!==gT(i))throw new Error("{outlets:{}} has to be the last command")}return s(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),pM=function e(t,n,i){o(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function vM(e,t,n){if(e||(e=new ET([],{})),0===e.segments.length&&e.hasChildren())return mM(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(lM(s))break;var u="".concat(s),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!_M(u,c,a))return o;i+=2}else{if(!_M(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new ET(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new ET(e.segments.slice(i.pathIndex),e.children),mM(o,0,r)}return i.match&&0===r.length?new ET(e.segments,{}):i.match&&!e.hasChildren()?gM(e,t,n):i.match?mM(e,0,r):gM(e,t,n)}function mM(e,t,n){if(0===n.length)return new ET(e.segments,{});var i=function(e){return lM(e[0])?e[0].outlets:k({},cT,e)}(n),r={};return yT(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=vM(e.children[i],t,n))}),yT(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new ET(e.segments,r)}function gM(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(lM(o)){var a=yM(o.outlets);return new ET(i,a)}if(0===r&&cM(n[0]))i.push(new OT(e.segments[t].path,bM(n[0]))),r++;else{var s=lM(o)?o.outlets.primary:"".concat(o),u=r<n.length-1?n[r+1]:null;s&&u&&cM(u)?(i.push(new OT(s,bM(u))),r+=2):(i.push(new OT(s,{})),r++)}}return new ET(i,{})}function yM(e){var t={};return yT(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=gM(new ET([],{}),0,e))}),t}function bM(e){var t={};return yT(e,function(e,n){return t[n]="".concat(e)}),t}function _M(e,t,n){return e==n.path&&pT(t,n.parameters)}var kM=function(){function e(t,n,i,r){o(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return s(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),rM(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=QT(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),yT(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=QT(e),o=0,a=Object.keys(r);o<a.length;o++)this.deactivateRouteAndItsChildren(r[a[o]],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=QT(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new sT(e.value.snapshot))}),e.children.length&&this.forwardEvent(new oT(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(rM(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),wM(s.route)}else{var u=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=c,a.outlet&&a.outlet.activateWith(i,c),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function wM(e){rM(e.value),e.children.forEach(wM)}var SM=function e(t,n){o(this,e),this.routes=t,this.module=n};function CM(e){return"function"==typeof e}function EM(e){return e instanceof CT}var OM=Symbol("INITIAL_VALUE");function xM(){return Bb(function(e){return PC(e.map(function(e){return e.pipe(Tg(1),wy(OM))})).pipe(Ax(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==OM)return e;if(i===OM&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||EM(i))return i}return e},e)},OM),wg(function(e){return e!==OM}),J(function(e){return EM(e)?e:!0===e}),Tg(1))})}var TM=function(){var e=function e(){o(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ps(0,"router-outlet")},directives:function(){return[CP]},encapsulation:2}),e}();function MM(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=IM(t,i);PM(i,r)}}function PM(e,t){e.children&&MM(e.children,t)}function IM(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function AM(e){var t=e.children&&e.children.map(AM),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==cT&&(n.component=TM),n}function RM(e){return e.outlet||cT}function DM(e,t){var n=e.filter(function(e){return RM(e)===t});return n.push.apply(n,C(e.filter(function(e){return RM(e)!==t}))),n}var NM={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function LM(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},NM):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||fT)(n,e,t);if(!r)return Object.assign({},NM);var o={};yT(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function VM(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&BM(e,n,i)){var o=new ET(t,FM(e,t,i,new ET(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&UM(e,n,i)){var a=new ET(e.segments,jM(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new ET(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function jM(e,t,n,i,r,o){var a,s={},u=g(i);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(zM(e,n,c)&&!r[RM(c)]){var l=new ET([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[RM(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}function FM(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=g(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&RM(s)!==cT){var u=new ET([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[RM(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return r}function BM(e,t,n){return n.some(function(n){return zM(e,t,n)&&RM(n)!==cT})}function UM(e,t,n){return n.some(function(n){return zM(e,t,n)})}function zM(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function WM(e,t,n,i){return!!(RM(e)===i||i!==cT&&zM(t,n,e))&&("**"===e.path||LM(t,e,n).matched)}function HM(e,t,n){return 0===t.length&&!e.children[n]}var GM=function e(t){o(this,e),this.segmentGroup=t||null},qM=function e(t){o(this,e),this.urlTree=t};function ZM(e){return new W(function(t){return t.error(new GM(e))})}function QM(e){return new W(function(t){return t.error(new qM(e))})}function YM(e){return new W(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var KM=function(){function e(t,n,i,r,a){o(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(uc)}return s(e,[{key:"apply",value:function(){var e=this,t=VM(this.urlTree.root,[],[],this.config).segmentGroup,n=new ET(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,cT).pipe(J(function(t){return e.createUrlTree(JM(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(vw(function(t){if(t instanceof qM)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof GM)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,cT).pipe(J(function(n){return t.createUrlTree(JM(n),e.queryParams,e.fragment)})).pipe(vw(function(e){if(e instanceof GM)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new ET([],k({},cT,e)):e;return new CT(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(J(function(e){return new ET([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return se(r).pipe(kw(function(r){var o=n.children[r],a=DM(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(J(function(e){return{segment:e,outlet:r}}))}),Ax(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?wg(function(t,n){return e(t,n,i)}):U,Nx(1),n?zx(t):jx(function(){return new Ix}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return se(n).pipe(kw(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(vw(function(e){if(e instanceof GM)return sg(null);throw e}))}),Gx(function(e){return!!e}),vw(function(e,n){if(e instanceof Ix||"EmptyError"===e.name){if(HM(t,i,r))return sg(new ET([],{}));throw new GM(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return WM(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):ZM(t):ZM(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?QM(o):this.lineralizeSegments(n,o).pipe(he(function(n){var o=new ET(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=LM(t,i,r),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return ZM(t);var h=this.applyRedirectCommands(u,i.redirectTo,l);return i.redirectTo.startsWith("/")?QM(h):this.lineralizeSegments(i,h).pipe(he(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(J(function(e){return n._loadedConfig=e,new ET(i,{})})):sg(new ET(i,{}));var a=LM(t,n,i),s=a.consumedSegments,u=a.lastChild;if(!a.matched)return ZM(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(he(function(e){var i=e.module,a=e.routes,u=VM(t,s,c,a),l=u.segmentGroup,h=u.slicedSegments,d=new ET(l.segments,l.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(J(function(e){return new ET(s,e)}));if(0===a.length&&0===h.length)return sg(new ET(s,{}));var f=RM(n)===r;return o.expandSegment(i,d,a,h,f?cT:r,!0).pipe(J(function(e){return new ET(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?sg(new SM(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?sg(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(he(function(n){return n?i.configLoader.load(e.injector,t).pipe(J(function(e){return t._loadedConfig=e,e})):function(e){return new W(function(t){return t.error(dT("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):sg(new SM([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?sg(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&CM(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!CM(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return bT(r)})).pipe(xM(),hg(function(e){if(EM(e)){var t=dT('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),J(function(e){return!0===e})):sg(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return sg(n);if(i.numberOfChildren>1||!i.children.primary)return YM(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new CT(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return yT(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return yT(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new ET(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=g(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function JM(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=JM(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new ET(e.segments.concat(t.segments),t.children)}return e}(new ET(e.segments,t))}var XM=function e(t){o(this,e),this.path=t,this.route=this.path[this.path.length-1]},$M=function e(t,n){o(this,e),this.component=t,this.route=n};function eP(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function tP(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=QT(t);return e.children.forEach(function(e){nP(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),yT(o,function(e,t){return rP(e,n.getContext(t),r)}),r}function nP(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=iP(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new XM(i)):(o.data=a.data,o._resolvedData=a._resolvedData),tP(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new $M(s.outlet.component,a))}else a&&rP(t,s,r),r.canActivateChecks.push(new XM(i)),tP(e,null,o.component?s?s.children:null:n,i,r);return r}function iP(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!xT(e.url,t.url);case"pathParamsOrQueryParamsChange":return!xT(e.url,t.url)||!pT(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oM(e,t)||!pT(e.queryParams,t.queryParams);case"paramsChange":default:return!oM(e,t)}}function rP(e,t,n){var i=QT(e),r=e.value;yT(i,function(e,i){rP(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new $M(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var oP=function e(){o(this,e)};function aP(e){return new W(function(t){return t.error(e)})}var sP=function(){function e(t,n,i,r,a,s){o(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return s(e,[{key:"recognize",value:function(){var e=VM(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,cT);if(null===t)return null;var n=new eM([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},cT,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ZT(n,t),r=new tM(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=XT(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=DM(e,o),u=this.processSegmentGroup(s,a,o);if(null===u)return null;n.push.apply(n,C(u))}var c=function(e){var t,n=[],i=g(e);try{var r=function(){var e=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(e))return n.push(e),"continue";var i,r=n.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==r?(i=r.children).push.apply(i,C(e.children)):n.push(e)};for(i.s();!(t=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return n}(n);return c.sort(function(e,t){return e.value.outlet===cT?-1:t.value.outlet===cT?1:e.value.outlet.localeCompare(t.value.outlet)}),c}},{key:"processSegment",value:function(e,t,n,i){var r,o=g(e);try{for(o.s();!(r=o.n()).done;){var a=this.processSegmentAgainstRoute(r.value,t,n,i);if(null!==a)return a}}catch(s){o.e(s)}finally{o.f()}return HM(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!WM(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?gT(n).parameters:{};r=new eM(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lP(e),RM(e),e.component,e,uP(t),cP(t)+n.length,hP(e))}else{var u=LM(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new eM(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lP(e),RM(e),e.component,e,uP(t),cP(t)+o.length,hP(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=VM(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new ZT(r,f)]}if(0===c.length&&0===d.length)return[new ZT(r,[])];var p=RM(e)===i,v=this.processSegment(c,h,d,p?cT:i);return null===v?null:[new ZT(r,v)]}}]),e}();function uP(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function cP(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function lP(e){return e.data||{}}function hP(e){return e.resolve||{}}function dP(e){return Bb(function(t){var n=e(t);return n?se(n).pipe(J(function(){return t})):sg(t)})}var fP=function(e){c(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(function(){function e(){o(this,e)}return s(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),pP=new ki("ROUTES"),vP=function(){function e(t,n,i,r){o(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return s(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(J(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new SM(mT(r.injector.get(pP,void 0,We.Self|We.Optional)).map(AM),r)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?se(this.loader.load(e)):bT(e()).pipe(he(function(e){return e instanceof cc?sg(e):se(t.compiler.compileModuleAsync(e))}))}}]),e}(),mP=function e(){o(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new gP,this.attachRef=null},gP=function(){function e(){o(this,e),this.contexts=new Map}return s(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new mP,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),yP=function(){function e(){o(this,e)}return s(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bP(e){throw e}function _P(e,t,n){return t.parse("/")}function kP(e,t){return sg(null)}var wP=function(){var e=function(){function e(t,n,i,r,a,s,u,c){var l=this;o(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Q,this.errorHandler=bP,this.malformedUriErrorHandler=_P,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kP,afterPreactivation:kP},this.urlHandlingStrategy=new yP,this.routeReuseStrategy=new fP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(uc),this.console=a.get(il);var h=a.get(ml);this.isNgZoneEnabled=h instanceof ml&&ml.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new CT(new ET([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vP(s,u,function(e){return l.triggerEvent(new nT(e))},function(e){return l.triggerEvent(new iT(e))}),this.routerState=KT(this.currentUrlTree,this.rootComponentType),this.transitions=new mE({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return s(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(wg(function(e){return 0!==e.id}),J(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Bb(function(e){var i,r,o,a=!1,s=!1;return sg(e).pipe(hg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Bb(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return sg(e).pipe(Bb(function(e){var i=t.transitions.getValue();return n.next(new Zx(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Og:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,Bb(function(e){return function(e,t,n,i,r){return new KM(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(J(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),hg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return he(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new sP(e,t,n,i,r,o).recognize();return null===a?aP(new oP):sg(a)}catch(s){return aP(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(J(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),hg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new Jx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.extractedUrl,c=e.source,l=e.restoredState,h=e.extras,d=new Zx(e.id,t.serializeUrl(u),c,l);n.next(d);var f=KT(u,t.rootComponentType).snapshot;return sg(Object.assign(Object.assign({},e),{targetSnapshot:f,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Og}),dP(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),hg(function(e){var n=new Xx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),J(function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,r=t.rootContexts,o=n._root,tP(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(e,t){return he(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?sg(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return se(e).pipe(he(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?sg(o.map(function(o){var a,s=eP(o,t,r);if(function(e){return e&&CM(e.canDeactivate)}(s))a=bT(s.canDeactivate(e,t,n,i));else{if(!CM(s))throw new Error("Invalid CanDeactivate guard");a=bT(s(e,t,n,i))}return a.pipe(Gx())})).pipe(xM()):sg(!0)}(e.component,e.route,n,t,i)}),Gx(function(e){return!0!==e},!0))}(s,i,r,e).pipe(he(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return se(t).pipe(kw(function(t){return ky(function(e,t){return null!==e&&t&&t(new rT(e)),sg(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new aT(e)),sg(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Z_(function(){return sg(t.guards.map(function(r){var o,a=eP(r,t.node,n);if(function(e){return e&&CM(e.canActivateChild)}(a))o=bT(a.canActivateChild(i,e));else{if(!CM(a))throw new Error("Invalid CanActivateChild guard");o=bT(a(i,e))}return o.pipe(Gx())})).pipe(xM())})});return sg(r).pipe(xM())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?sg(i.map(function(i){return Z_(function(){var r,o=eP(i,t,n);if(function(e){return e&&CM(e.canActivate)}(o))r=bT(o.canActivate(t,e));else{if(!CM(o))throw new Error("Invalid CanActivate guard");r=bT(o(t,e))}return r.pipe(Gx())})})).pipe(xM()):sg(!0)}(e,t.route,n))}),Gx(function(e){return!0!==e},!0))}(i,a,e,t):sg(n)}),J(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),hg(function(e){if(EM(e.guardsResult)){var n=dT('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new $x(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),wg(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new Yx(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),dP(function(e){if(e.guards.canActivateChecks.length)return sg(e).pipe(hg(function(e){var n=new eT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Bb(function(e){var i,r,o=!1;return sg(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,he(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return sg(e);var o=0;return se(n).pipe(kw(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return sg({});var o={};return se(r).pipe(he(function(r){return function(e,t,n,i){var r=eP(e,t,i);return bT(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(hg(function(e){o[r]=e}))}),Nx(1),he(function(){return Object.keys(o).length===r.length?sg(o):Og}))}(e._resolve,e,t,i).pipe(J(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),XT(e,n).resolve),null}))}(e.route,t,i,r)}),hg(function(){return o++}),Nx(1),he(function(t){return o===n.length?sg(e):Og}))})),hg({next:function(){return o=!0},complete:function(){if(!o){var i=new Yx(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),hg(function(e){var n=new tT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),dP(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),J(function(e){var n,i,r,o=(r=aM(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(i=e.currentRouterState)?i._root:void 0),new YT(r,n));return Object.assign(Object.assign({},e),{targetRouterState:o})}),hg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},J(function(e){return new kM(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),hg({next:function(){a=!0},complete:function(){a=!0}}),yw(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new Yx(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),vw(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=EM(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Yx(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Kx(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var u;return Og}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){MM(e),this.config=e.map(AM),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),uM(s,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=EM(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return SP(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(EM(e))return _T(this.currentUrlTree,e,t);var n=this.parseUrl(e);return _T(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Qx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){var o,a,s,u=this.getTransition(),c="imperative"!==t&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===e.toString();if(c&&l)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Si),Fi(TT),Fi(gP),Fi(fh),Fi(Ga),Fi(Ul),Fi(fl),Fi(void 0))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function SP(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}var CP=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Pc,this.deactivateEvents=new Pc,this.name=r||cT,t.onChildOutletCreated(this.name,this)}return s(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new EP(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(cs(gP),cs(hc),cs(wu),yi("name"),cs(Xu))},e.\u0275dir=gt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),EP=function(){function e(t,n,i){o(this,e),this.route=t,this.childContexts=n,this.parent=i}return s(e,[{key:"get",value:function(e,t){return e===JT?this.route:e===gP?this.childContexts:this.parent.get(e,t)}}]),e}(),OP=function e(){o(this,e)},xP=function(){function e(){o(this,e)}return s(e,[{key:"preload",value:function(e,t){return t().pipe(vw(function(){return sg(null)}))}}]),e}(),TP=function(){function e(){o(this,e)}return s(e,[{key:"preload",value:function(e,t){return sg(null)}}]),e}(),MP=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new vP(n,i,function(e){return t.triggerEvent(new nT(e))},function(e){return t.triggerEvent(new iT(e))})}return s(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(wg(function(e){return e instanceof Qx}),kw(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(uc);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=g(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return se(i).pipe(pe(),J(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(he(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(wP),Fi(Ul),Fi(fl),Fi(Ga),Fi(OP))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),PP=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return s(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Zx?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Qx&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof uT&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new uT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(wP),Fi(Fh),Fi(void 0))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}(),IP=new ki("ROUTER_CONFIGURATION"),AP=new ki("ROUTER_FORROOT_GUARD"),RP=[fh,{provide:TT,useClass:MT},{provide:wP,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new wP(null,e,t,n,i,r,o,mT(a));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),BP(s,l),s.enableTracing){var h=Kl();l.events.subscribe(function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return l},deps:[TT,gP,fh,Ga,Ul,fl,pP,IP,[function e(){o(this,e)},new Zi],[function e(){o(this,e)},new Zi]]},gP,{provide:JT,useFactory:function(e){return e.routerState.root},deps:[wP]},{provide:Ul,useClass:Hl},MP,TP,xP,{provide:IP,useValue:{enableTracing:!1}}];function DP(){return new Al("Router",wP)}var NP=function(){var e=function(){function e(t,n){o(this,e)}return s(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[RP,FP(t),{provide:AP,useFactory:jP,deps:[[wP,new Zi,new Qi]]},{provide:IP,useValue:n||{}},{provide:uh,useFactory:VP,deps:[$l,[new qi(lh),new Zi],IP]},{provide:PP,useFactory:LP,deps:[wP,Fh,IP]},{provide:OP,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:TP},{provide:Al,multi:!0,useFactory:DP},[UP,{provide:Yc,multi:!0,useFactory:zP,deps:[UP]},{provide:HP,useFactory:WP,deps:[UP]},{provide:nl,multi:!0,useExisting:HP}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[FP(t)]}}}]),e}();return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(AP,8),Fi(wP,8))}}),e}();function LP(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new PP(e,t,n)}function VP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new dh(e,t):new hh(e,t)}function jP(e){return"guarded"}function FP(e){return[{provide:wi,multi:!0,useValue:e},{provide:pP,multi:!0,useValue:e}]}function BP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}var UP=function(){var e=function(){function e(t){o(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Q}return s(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(th,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(wP),r=e.injector.get(IP);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?sg(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(IP),n=this.injector.get(MP),i=this.injector.get(PP),r=this.injector.get(wP),o=this.injector.get(Fl);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Fi(Ga))},e.\u0275prov=Re({token:e,factory:e.\u0275fac}),e}();function zP(e){return e.appInitializer.bind(e)}function WP(e){return e.bootstrapListener.bind(e)}var HP=new ki("Router Initializer");function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function qP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GP(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ZP=function(){function e(t){o(this,e);var n=t.length,i=t.separator,r=t.style,a=t.seed;this.dictionaries=t.dictionaries,this.separator=i,this.length=n,this.style=r,this.seed=a}return s(e,[{key:"generate",value:function(){var e=this;if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error("The length cannot be bigger than the number of dictionaries.\nLength provided: ".concat(this.length,". Number of dictionaries provided: ").concat(this.dictionaries.length));return this.dictionaries.slice(0,this.length).reduce(function(t,n){var i,r=n[Math.floor((e.seed?(i=e.seed,function(e){e=1831565813+(e|=0)|0;var t=Math.imul(e^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/4294967296}(i)):Math.random())*n.length)]||"";if("lowerCase"===e.style)r=r.toLowerCase();else if("capital"===e.style){var o=S(r.split("")),a=o[0],s=o.slice(1);r=a.toUpperCase()+s.join("")}else"upperCase"===e.style&&(r=r.toUpperCase());return t?"".concat(t).concat(e.separator).concat(r):""+r},"")}}]),e}(),QP={separator:"_",dictionaries:[]},YP=["average","big","colossal","fat","giant","gigantic","great","huge","immense","large","little","long","mammoth","massive","miniature","petite","puny","short","small","tall","tiny","boiling","breezy","broken","bumpy","chilly","cold","cool","creepy","crooked","cuddly","curly","damaged","damp","dirty","dry","dusty","filthy","flaky","fluffy","wet","broad","chubby","crooked","curved","deep","flat","high","hollow","low","narrow","round","shallow","skinny","square","steep","straight","wide","ancient","brief","early","fast","late","long","modern","old","quick","rapid","short","slow","swift","young","abundant","empty","few","heavy","light","many","numerous","Sound","cooing","deafening","faint","harsh","hissing","hushed","husky","loud","melodic","moaning","mute","noisy","purring","quiet","raspy","resonant","screeching","shrill","silent","soft","squealing","thundering","voiceless","whispering","bitter","delicious","fresh","juicy","ripe","rotten","salty","sour","spicy","stale","sticky","strong","sweet","tasteless","tasty","thirsty","fluttering","fuzzy","greasy","grubby","hard","hot","icy","loose","melted","plastic","prickly","rainy","rough","scattered","shaggy","shaky","sharp","shivering","silky","slimy","slippery","smooth","soft","solid","steady","sticky","tender","tight","uneven","weak","wet","wooden","afraid","angry","annoyed","anxious","arrogant","ashamed","awful","bad","bewildered","bored","combative","condemned","confused","creepy","cruel","dangerous","defeated","defiant","depressed","disgusted","disturbed","eerie","embarrassed","envious","evil","fierce","foolish","frantic","frightened","grieving","helpless","homeless","hungry","hurt","ill","jealous","lonely","mysterious","naughty","nervous","obnoxious","outrageous","panicky","repulsive","scary","scornful","selfish","sore","tense","terrible","thoughtless","tired","troubled","upset","uptight","weary","wicked","worried","agreeable","amused","brave","calm","charming","cheerful","comfortable","cooperative","courageous","delightful","determined","eager","elated","enchanting","encouraging","energetic","enthusiastic","excited","exuberant","fair","faithful","fantastic","fine","friendly","funny","gentle","glorious","good","happy","healthy","helpful","hilarious","jolly","joyous","kind","lively","lovely","lucky","obedient","perfect","pleasant","proud","relieved","silly","smiling","splendid","successful","thoughtful","victorious","vivacious","witty","wonderful","zealous","zany","other","good","new","old","great","high","small","different","large","local","social","important","long","young","national","british","right","early","possible","big","little","political","able","late","general","full","far","low","public","available","bad","main","sure","clear","major","economic","only","likely","real","black","particular","international","special","difficult","certain","open","whole","white","free","short","easy","strong","european","central","similar","human","common","necessary","single","personal","hard","private","poor","financial","wide","foreign","simple","recent","concerned","american","various","close","fine","english","wrong","present","royal","natural","individual","nice","french","following","current","modern","labour","legal","happy","final","red","normal","serious","previous","total","prime","significant","industrial","sorry","dead","specific","appropriate","top","soviet","basic","military","original","successful","aware","hon","popular","heavy","professional","direct","dark","cold","ready","green","useful","effective","western","traditional","scottish","german","independent","deep","interesting","considerable","involved","physical","left","hot","existing","responsible","complete","medical","blue","extra","past","male","interested","fair","essential","beautiful","civil","primary","obvious","future","environmental","positive","senior","nuclear","annual","relevant","huge","rich","commercial","safe","regional","practical","official","separate","key","chief","regular","due","additional","active","powerful","complex","standard","impossible","light","warm","middle","fresh","sexual","front","domestic","actual","united","technical","ordinary","cheap","strange","internal","excellent","quiet","soft","potential","northern","religious","quick","very","famous","cultural","proper","broad","joint","formal","limited","conservative","lovely","usual","ltd","unable","rural","initial","substantial","christian","bright","average","leading","reasonable","immediate","suitable","equal","detailed","working","overall","female","afraid","democratic","growing","sufficient","scientific","eastern","correct","inc","irish","expensive","educational","mental","dangerous","critical","increased","familiar","unlikely","double","perfect","slow","tiny","dry","historical","thin","daily","southern","increasing","wild","alone","urban","empty","married","narrow","liberal","supposed","upper","apparent","tall","busy","bloody","prepared","russian","moral","careful","clean","attractive","japanese","vital","thick","alternative","fast","ancient","elderly","rare","external","capable","brief","wonderful","grand","typical","entire","grey","constant","vast","surprised","ideal","terrible","academic","funny","minor","pleased","severe","ill","corporate","negative","permanent","weak","brown","fundamental","odd","crucial","inner","used","criminal","contemporary","sharp","sick","near","roman","massive","unique","secondary","parliamentary","african","unknown","subsequent","angry","alive","guilty","lucky","enormous","well","communist","yellow","unusual","net","tough","dear","extensive","glad","remaining","agricultural","alright","healthy","italian","principal","tired","efficient","comfortable","chinese","relative","friendly","conventional","willing","sudden","proposed","voluntary","slight","valuable","dramatic","golden","temporary","federal","keen","flat","silent","indian","worried","pale","statutory","welsh","dependent","firm","wet","competitive","armed","radical","outside","acceptable","sensitive","living","pure","global","emotional","sad","secret","rapid","adequate","fixed","sweet","administrative","wooden","remarkable","comprehensive","surprising","solid","rough","mere","mass","brilliant","maximum","absolute","tory","electronic","visual","electric","cool","spanish","literary","continuing","supreme","chemical","genuine","exciting","written","stupid","advanced","extreme","classical","fit","favourite","socialist","widespread","confident","straight","catholic","proud","numerous","opposite","distinct","mad","helpful","given","disabled","consistent","anxious","nervous","awful","stable","constitutional","satisfied","conscious","developing","strategic","holy","smooth","dominant","remote","theoretical","outstanding","pink","pretty","clinical","minimum","honest","impressive","related","residential","extraordinary","plain","visible","accurate","distant","still","greek","complicated","musical","precise","gentle","broken","live","silly","fat","tight","monetary","round","psychological","violent","unemployed","inevitable","junior","sensible","grateful","pleasant","dirty","structural","welcome","deaf","above","continuous","blind","overseas","mean","entitled","delighted","loose","occasional","evident","desperate","fellow","universal","square","steady","classic","equivalent","intellectual","victorian","level","ultimate","creative","lost","medieval","clever","linguistic","convinced","judicial","raw","sophisticated","asleep","vulnerable","illegal","outer","revolutionary","bitter","changing","australian","native","imperial","strict","wise","informal","flexible","collective","frequent","experimental","spiritual","intense","rational","ethnic","generous","inadequate","prominent","logical","bare","historic","modest","dutch","acute","electrical","valid","weekly","gross","automatic","loud","reliable","mutual","liable","multiple","ruling","curious","arab","sole","jewish","managing","pregnant","latin","nearby","exact","underlying","identical","satisfactory","marginal","distinctive","electoral","urgent","presidential","controversial","oral","everyday","encouraging","organic","continued","expected","statistical","desirable","innocent","improved","exclusive","marked","experienced","unexpected","superb","sheer","disappointed","frightened","gastric","capitalist","romantic","naked","reluctant","magnificent","convenient","established","closed","uncertain","artificial","diplomatic","tremendous","marine","mechanical","retail","institutional","mixed","required","biological","known","functional","straightforward","superior","digital","spectacular","unhappy","confused","unfair","aggressive","spare","painful","abstract","asian","associated","legislative","monthly","intelligent","hungry","explicit","nasty","just","faint","coloured","ridiculous","amazing","comparable","successive","realistic","back","decent","unnecessary","flying","random","influential","dull","genetic","neat","marvellous","crazy","damp","giant","secure","bottom","skilled","subtle","elegant","brave","lesser","parallel","steep","intensive","casual","tropical","lonely","partial","preliminary","concrete","alleged","assistant","vertical","upset","delicate","mild","occupational","excessive","progressive","iraqi","exceptional","integrated","striking","continental","okay","harsh","combined","fierce","handsome","characteristic","chronic","compulsory","interim","objective","splendid","magic","systematic","obliged","payable","fun","horrible","primitive","fascinating","ideological","metropolitan","surrounding","estimated","peaceful","premier","operational","technological","kind","advisory","hostile","precious","gay","accessible","determined","excited","impressed","provincial","smart","endless","isolated","drunk","geographical","like","dynamic","boring","forthcoming","unfortunate","definite","super","notable","indirect","stiff","wealthy","awkward","lively","neutral","artistic","content","mature","colonial","ambitious","evil","magnetic","verbal","legitimate","sympathetic","empirical","head","shallow","vague","naval","depressed","shared","added","shocked","mid","worthwhile","qualified","missing","blank","absent","favourable","polish","israeli","developed","profound","representative","enthusiastic","dreadful","rigid","reduced","cruel","coastal","peculiar","racial","ugly","swiss","crude","extended","selected","eager","feminist","canadian","bold","relaxed","corresponding","running","planned","applicable","immense","allied","comparative","uncomfortable","conservation","productive","beneficial","bored","charming","minimal","mobile","turkish","orange","rear","passive","suspicious","overwhelming","fatal","resulting","symbolic","registered","neighbouring","calm","irrelevant","patient","compact","profitable","rival","loyal","moderate","distinguished","interior","noble","insufficient","eligible","mysterious","varying","managerial","molecular","olympic","linear","prospective","printed","parental","diverse","elaborate","furious","fiscal","burning","useless","semantic","embarrassed","inherent","philosophical","deliberate","awake","variable","promising","unpleasant","varied","sacred","selective","inclined","tender","hidden","worthy","intermediate","sound","protective","fortunate","slim","islamic","defensive","divine","stuck","driving","invisible","misleading","circular","mathematical","inappropriate","liquid","persistent","solar","doubtful","manual","architectural","intact","incredible","devoted","prior","tragic","respectable","optimistic","convincing","unacceptable","decisive","competent","spatial","respective","binding","relieved","nursing","toxic","select","redundant","integral","then","probable","amateur","fond","passing","specified","territorial","horizontal","inland","cognitive","regulatory","miserable","resident","polite","scared","marxist","gothic","civilian","instant","lengthy","adverse","korean","unconscious","anonymous","aesthetic","orthodox","static","unaware","costly","fantastic","foolish","fashionable","causal","compatible","wee","implicit","dual","ok","cheerful","subjective","forward","surviving","exotic","purple","cautious","visiting","aggregate","ethical","protestant","teenage","dying","disastrous","delicious","confidential","underground","thorough","grim","autonomous","atomic","frozen","colourful","injured","uniform","ashamed","glorious","wicked","coherent","rising","shy","novel","balanced","delightful","arbitrary","adjacent","psychiatric","worrying","weird","unchanged","rolling","evolutionary","intimate","sporting","disciplinary","formidable","lexical","noisy","gradual","accused","homeless","supporting","coming","renewed","excess","retired","rubber","chosen","outdoor","embarrassing","preferred","bizarre","appalling","agreed","imaginative","governing","accepted","vocational","palestinian","mighty","puzzled","worldwide","handicapped","organisational","sunny","eldest","eventual","spontaneous","vivid","rude","faithful","ministerial","innovative","controlled","conceptual","unwilling","civic","meaningful","disturbing","alive","brainy","breakable","busy","careful","cautious","clever","concerned","crazy","curious","dead","different","difficult","doubtful","easy","famous","fragile","helpful","helpless","important","impossible","innocent","inquisitive","modern","open","outstanding","poor","powerful","puzzled","real","rich","shy","sleepy","stupid","super","tame","uninterested","wandering","wild","wrong","adorable","alert","average","beautiful","blonde","bloody","blushing","bright","clean","clear","cloudy","colorful","crowded","cute","dark","drab","distinct","dull","elegant","fancy","filthy","glamorous","gleaming","graceful","grotesque","homely","light","misty","motionless","muddy","plain","poised","quaint","shiny","smoggy","sparkling","spotless","stormy","strange","ugly","unsightly","unusual","bad","better","beautiful","big","black","blue","bright","clumsy","crazy","dizzy","dull","fat","frail","friendly","funny","great","green","gigantic","gorgeous","grumpy","handsome","happy","horrible","itchy","jittery","jolly","kind","long","lazy","magnificent","magenta","many","mighty","mushy","nasty","new","nice","nosy","nutty","nutritious","odd","orange","ordinary","pretty","precious","prickly","purple","quaint","quiet","quick","quickest","rainy","rare","ratty","red","roasted","robust","round","sad","scary","scrawny","short","silly","stingy","strange","striped","spotty","tart","tall","tame","tan","tender","testy","tricky","tough","ugly","ugliest","vast","watery","wasteful","wonderful","yellow","yummy","zany"],KP=["canidae","felidae","cat","cattle","dog","donkey","goat","horse","pig","rabbit","aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","capybara","cardinal","caribou","carp","cat","catshark","caterpillar","catfish","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","cicada","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragonfly","dragon","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","gamefowl","galliform","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","urial","vicuna","viper","vole","vulture","wallaby","walrus","wasp","warbler","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra","alpaca","cat","cattle","chicken","dog","donkey","ferret","gayal","goldfish","guppy","horse","koi","llama","sheep","yak","unicorn"],JP=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];function XP(e,t){1&e&&(ds(0,"div",18),Xs(1," Room name is "),ds(2,"strong"),Xs(3,"required"),fs(),fs())}function $P(e,t){1&e&&(ds(0,"div",19),Xs(1," Room name is "),ds(2,"strong"),Xs(3,"too short!"),fs(),fs())}var eI=function(){function e(e,t){this.router=e,this.formBuilder=t,this.version=n("kiQV").version}return e.prototype.ngOnInit=function(){var e=function(e){var t=C(e&&e.dictionaries||QP.dictionaries),n=qP(qP(qP({},QP),e),{},{length:e&&e.length||t.length,dictionaries:t});if(!e||!e.dictionaries||!e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new ZP(n).generate()}({dictionaries:[YP,JP,KP],separator:"-"});this.roomForm=new Af(e,[Dd.minLength(4),Dd.required])},e.prototype.goToVideoCall=function(){if(this.roomForm.valid){var e=this.roomForm.value.replace(/ /g,"-");this.roomForm.setValue(e),this.router.navigate(["/",e])}},e.\u0275fac=function(t){return new(t||e)(cs(wP),cs(Yf))},e.\u0275cmp=ht({type:e,selectors:[["app-home"]],decls:28,vars:5,consts:[[1,"section1"],["id","header"],["href","https://openvidu.io/","target","_blank"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo.png"],[1,"ovVersion"],[1,"container"],[1,"ovInfo"],["alt","OpenVidu Logo","src","assets/images/openvidu_logo.png",1,"ovLogo"],[1,"formContainer"],["class","roomError","id","requiredNameError",4,"ngIf"],["class","roomError","id","shortNameError",4,"ngIf"],["novalidate","",3,"formGroup","ngSubmit"],[1,"joinForm"],["matInput","","type","text","autocomplete","off","id","roomInput",1,"inputForm",3,"formControl"],["type","submit","id","joinButton",1,"joinButton"],[1,"footer"],["rel","noopener noreferrer","target","_blank","href","https://unsplash.com/@danielleone?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"],["href","https://unsplash.com/s/photos/mountain?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText","target","_blank"],["id","requiredNameError",1,"roomError"],["id","shortNameError",1,"roomError"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-toolbar",1),ds(2,"a",2),ps(3,"img",3),fs(),ds(4,"div",4),ds(5,"span"),Xs(6),fs(),fs(),fs(),ds(7,"div",5),ds(8,"div",6),ps(9,"img",7),ds(10,"h4"),Xs(11,"Videoconference rooms in one click"),fs(),fs(),ds(12,"div",8),ss(13,XP,4,0,"div",9),ss(14,$P,4,0,"div",10),ds(15,"form",11),ks("ngSubmit",function(){return t.goToVideoCall()}),ds(16,"div",12),ps(17,"input",13),ds(18,"button",14),Xs(19,"JOIN"),fs(),fs(),fs(),fs(),fs(),ds(20,"mat-toolbar",15),ds(21,"span"),Xs(22," Photo by "),ds(23,"a",16),Xs(24," Daniel Leone "),fs(),Xs(25," on "),ds(26,"a",17),Xs(27," Unsplash "),fs(),fs(),fs(),fs()),2&e&&(Ao(6),$s(t.version),Ao(7),ls("ngIf",t.roomForm.hasError("required")),Ao(1),ls("ngIf",t.roomForm.hasError("minlength")),Ao(1),ls("formGroup",t.roomForm),Ao(2),ls("formControl",t.roomForm))},directives:[CC,Ch,Uf,Jd,qf,SS,Td,Kd,Hf],styles:[".section1[_ngcontent-%COMP%]{background:url(bg.webp) top no-repeat;background-size:cover;height:100%;text-align:center;position:relative;color:#fff}#header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%]{background-color:transparent;color:#fff}.roomError[_ngcontent-%COMP%]{font-size:16px;color:#c01515}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;font-size:9px;height:auto}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}#header_img[_ngcontent-%COMP%]{max-width:150px;margin-right:10px;margin-top:10px;padding:15px}.ovVersion[_ngcontent-%COMP%]{position:absolute;right:15px;font-size:16px;font-weight:700}.ovLogo[_ngcontent-%COMP%]{margin:auto}#card_content[_ngcontent-%COMP%]{height:50%}h4[_ngcontent-%COMP%]{font-size:25px;font-weight:500;color:#fff;position:relative;padding-bottom:5px}#room_card[_ngcontent-%COMP%]{color:#303030;position:inherit;max-width:700px;width:75%;margin:auto;background:hsla(0,0%,86.7%,.856)}#room_card[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:auto;padding:0 5px}@media only screen and (max-width:600px){#header_img[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%], .ovVersion[_ngcontent-%COMP%]{display:none}.joinForm[_ngcontent-%COMP%], .ovLogo[_ngcontent-%COMP%]{max-width:80%}.inputForm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:16px}}.container[_ngcontent-%COMP%]{position:relative;width:100%;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.formContainer[_ngcontent-%COMP%]{font-size:20px;text-align:center}.joinForm[_ngcontent-%COMP%]{min-width:300px;margin:10px auto;max-width:50%;background:#fff;padding:6px 10px;position:relative;border-radius:10px 5px 10px 0;text-align:left}.inputForm[_ngcontent-%COMP%]{border:0;padding:4px 8px;font-size:17px;width:calc(100% - 90px);outline:none;caret-color:#000;color:#303030}.joinButton[_ngcontent-%COMP%]{position:absolute;top:0;right:-2px;bottom:0;border:0;background:none;font-size:16px;font-weight:700;padding:0 20px;background:#00ad4e;color:#fff;border-radius:0 5px 10px 0;transition:.3s;box-shadow:0 2px 15px rgba(0,0,0,.1);margin:0}.joinButton[_ngcontent-%COMP%]:hover{background:#009242}@media only screen and (min-width:600px){.ovLogo[_ngcontent-%COMP%]{max-width:75%}}@media only screen and (min-width:992px){.ovLogo[_ngcontent-%COMP%]{max-width:60%}.inputForm[_ngcontent-%COMP%]{font-size:20px!important}}@media only screen and (min-width:1200px){.section1[_ngcontent-%COMP%]{background-attachment:fixed}.ovLogo[_ngcontent-%COMP%]{max-width:50%}}"]}),e}(),tI=function(e){return e.CAMERA="CAMERA",e.SCREEN="SCREEN",e.CUSTOM="CUSTOM",e}({}),nI=function(e){return e.WINDOW="window",e.SCREEN="screen",e}({}),iI=function(){function e(e,t,n){this.connectionId=e||"",this.nickname=n||"OpenVidu",this.streamManager=t||null}return e.prototype.isAudioActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.audioActive},e.prototype.isVideoActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.videoActive},e.prototype.getConnectionId=function(){var e,t,n;return(null===(n=null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)||this.connectionId},e.prototype.getNickname=function(){return this.nickname},e.prototype.getStreamManager=function(){return this.streamManager},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.isLocal=function(){return this.local},e.prototype.isRemote=function(){var e;return null===(e=this.streamManager)||void 0===e?void 0:e.remote},e.prototype.isScreen=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===tI.SCREEN},e.prototype.isCamera=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===tI.CAMERA||this.isLocal()&&!this.isScreen()},e.prototype.setStreamManager=function(e){this.streamManager=e},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.isVideoSizeBig=function(){return this.videoSizeBig},e.prototype.setVideoSizeBig=function(e){this.videoSizeBig=e},e.prototype.setLocal=function(e){this.local=e},e}(),rI=function(){function e(){this.log=window.console,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]],this.LOG_FNS=[this.log.log,this.log.warn,this.log.error]}return e.prototype.get=function(e){var t=this,n=this.LOG_FNS.map(function(n,i){return n.bind(t.log,t.MSG_PREFIXES[i][0]+e+t.MSG_PREFIXES[i][1])});return{d:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},w:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[1].apply(this.log,arguments)},e:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[2].apply(this.log,arguments)}}},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),oI=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(cs(tk),cs(ik))},e.\u0275cmp=ht({type:e,selectors:[["app-dialog-error"]],decls:5,vars:2,consts:[["mat-dialog-title",""]],template:function(e,t){1&e&&(ds(0,"div"),ds(1,"h1",0),Xs(2),fs(),ds(3,"span"),Xs(4),fs(),fs()),2&e&&(Ao(2),$s(t.data.header),Ao(2),eu(" ",t.data.message," "))},directives:[lk],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),e}(),aI=function(e){return e.ROOT_CLASS="OT_root",e}({}),sI=function(e){return e.BIG_ELEMENT="OV_big",e.SMALL_ELEMENT="OV_small",e}({}),uI=n("mgp7"),cI=n.n(uI),lI=function(){function e(e){this.dialog=e}return e.prototype.toggleFullscreen=function(e){var t=window.document,n=t.getElementById(e);t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()},e.prototype.handlerScreenShareError=function(e){e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name?alert("Your browser does not support screen sharing"):e&&"SCREEN_EXTENSION_DISABLED"===e.name&&alert("You need to enable screen sharing extension")},e.prototype.generateNickname=function(){return"OpenVidu_User"+Math.floor(100*Math.random())},e.prototype.isFirefox=function(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)},e.prototype.isMobile=function(){return this.isAndroid()||this.isIos()},e.prototype.showErrorMessage=function(e,t,n){void 0===n&&(n=!1),this.dialogRef=this.dialog.open(oI,{data:{header:e,message:t},disableClose:n})},e.prototype.closeDialog=function(){var e;null===(e=this.dialogRef)||void 0===e||e.close()},e.prototype.getHTMLElementByClassName=function(e,t){for(;e&&e!==document.body;){if(e.className.includes(t))return e;e=e.parentElement}return null},e.prototype.toggleBigElementClass=function(e){(null==e?void 0:e.className.includes(sI.BIG_ELEMENT))?this.removeBigElementClass(e):e.classList.add(sI.BIG_ELEMENT)},e.prototype.removeBigElementClass=function(e){null==e||e.classList.remove(sI.BIG_ELEMENT)},e.prototype.removeAllBigElementClass=function(){for(var e=document.getElementsByClassName(sI.BIG_ELEMENT);e.length>0;)this.removeBigElementClass(e[0])},e.prototype.isSmallElement=function(e){return null==e?void 0:e.className.includes(sI.SMALL_ELEMENT)},e.prototype.getNicknameFromConnectionData=function(e){var t;try{t=JSON.parse(e).clientData}catch(n){t="Unknown"}return t},e.prototype.linkify=function(e,t){return cI()(e,t)},e.prototype.isAndroid=function(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)},e.prototype.isIos=function(){return this.isIPhoneOrIPad(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&this.isIOSWithSafari(null===navigator||void 0===navigator?void 0:navigator.userAgent)},e.prototype.isIPhoneOrIPad=function(e){var t=/\b(\w*Macintosh\w*)\b/.test(e),n=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),i="ontouchend"in document;return(t||n)&&i},e.prototype.isIOSWithSafari=function(e){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(uk))},providedIn:"root"}),e}(),hI=n("7RJT"),dI=function(){function e(e){this.loggerSrv=e,this._OVUsers=new hI.BehaviorSubject([]),this._screenShareState=new hI.BehaviorSubject(!1),this._webcamVideoActive=new hI.BehaviorSubject(!0),this.webcamUser=null,this.screenUser=null,this.log=this.loggerSrv.get("LocalUsersService")}return e.prototype.initialize=function(){this.OVUsers=this._OVUsers.asObservable(),this.screenShareState=this._screenShareState.asObservable(),this.webcamVideoActive=this._webcamVideoActive.asObservable(),this.webcamUser=new iI,this.webcamUser.setLocal(!0),this._OVUsers.next([this.webcamUser])},e.prototype.getWebcamPublisher=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setWebcamPublisher=function(e){this.webcamUser.setStreamManager(e)},e.prototype.getScreenPublisher=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setScreenPublisher=function(e){this.screenUser.setStreamManager(e)},e.prototype.enableWebcamUser=function(){this._OVUsers.next([this.webcamUser,this.screenUser])},e.prototype.disableWebcamUser=function(){this._OVUsers.next([this.screenUser])},e.prototype.enableScreenUser=function(e){var t,n;this.log.d("Enabling screen publisher");var i=null===(n=null===(t=null==e?void 0:e.session)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId;this.screenUser=new iI(i,e,this.getScreenUserName()),this.screenUser.setAvatar(this.webcamUser.getAvatar()),this._screenShareState.next(!0),this.isWebCamEnabled()?this._OVUsers.next([this.webcamUser,this.screenUser]):this._OVUsers.next([this.screenUser])},e.prototype.disableScreenUser=function(){this._OVUsers.next([this.webcamUser]),this._screenShareState.next(!1)},e.prototype.updateUsersStatus=function(){this._webcamVideoActive.next(this.webcamUser.isVideoActive())},e.prototype.clear=function(){this.screenUser=null,this.webcamUser=new iI,this.disableScreenUser()},e.prototype.isWebCamEnabled=function(){return this._OVUsers.getValue()[0].isCamera()},e.prototype.isOnlyScreenConnected=function(){return this._OVUsers.getValue()[0].isScreen()},e.prototype.hasWebcamVideoActive=function(){return this.webcamUser.isVideoActive()},e.prototype.hasWebcamAudioActive=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.hasScreenAudioActive=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.areBothConnected=function(){return 2===this._OVUsers.getValue().length},e.prototype.isOnlyWebcamConnected=function(){return this.isWebCamEnabled()&&!this.areBothConnected()},e.prototype.isScreenShareEnabled=function(){return this.areBothConnected()||this.isOnlyScreenConnected()},e.prototype.setAvatar=function(e){var t,n;null===(t=this.webcamUser)||void 0===t||t.setAvatar(e),null===(n=this.screenUser)||void 0===n||n.setAvatar(e)},e.prototype.updateUsersNickname=function(e){var t;this.webcamUser.setNickname(e),null===(t=this.screenUser)||void 0===t||t.setNickname(this.getScreenUserName())},e.prototype.getAvatar=function(){return this.webcamUser.getAvatar()},e.prototype.getWebcamUserName=function(){return this.webcamUser.getNickname()},e.prototype.getScreenUserName=function(){return this.getWebcamUserName()+"_SCREEN"},e.prototype.resetUsersZoom=function(){var e,t;null===(e=this.webcamUser)||void 0===e||e.setVideoSizeBig(!1),null===(t=this.screenUser)||void 0===t||t.setVideoSizeBig(!1)},e.prototype.toggleZoom=function(e){this.webcamUser.getConnectionId()!==e?this.screenUser.setVideoSizeBig(!this.screenUser.isVideoSizeBig()):this.webcamUser.setVideoSizeBig(!this.webcamUser.isVideoSizeBig())},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI))},providedIn:"root"}),e}(),fI=function(e){return e.DEFAULT="default",e.CAPTURED="captured",e}({}),pI=function(){function e(e,t){this.localUsersService=e,this.loggerSrv=t,this.openviduAvatar="assets/images/openvidu_globe.png",this.capturedAvatar="",this.log=this.loggerSrv.get("ChatService")}return e.prototype.setCaputedAvatar=function(e){this.capturedAvatar=e},e.prototype.setFinalAvatar=function(e){this.localUsersService.setAvatar(e!==fI.CAPTURED?this.openviduAvatar:this.capturedAvatar)},e.prototype.getOpenViduAvatar=function(){return this.openviduAvatar},e.prototype.getCapturedAvatar=function(){return this.capturedAvatar},e.prototype.createCapture=function(){this.log.d("Capturing avatar ...");var e=document.createElement("canvas"),t=this.localUsersService.getWebcamPublisher().videos[0].video;return e.className="user-img",e.width=100,e.height=100,t&&(e.getContext("2d").drawImage(t,200,120,285,285,0,0,100,100),this.capturedAvatar=e.toDataURL()),this.capturedAvatar},e.prototype.getAvatarFromConnectionData=function(e){var t;try{t=JSON.parse(e).avatar}catch(n){t=this.getOpenViduAvatar()}return t},e.prototype.clear=function(){this.capturedAvatar=""},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(dI),Fi(rI))},providedIn:"root"}),e}(),vI=function(){function e(e,t,n){this.loggerSrv=e,this.utilsSrv=t,this.avatarService=n,this._remoteUsers=new hI.BehaviorSubject([]),this._remoteUserNameList=new hI.BehaviorSubject([]),this.users=[],this.log=this.loggerSrv.get("RemoteService"),this.remoteUsers=this._remoteUsers.asObservable(),this.remoteUserNameList=this._remoteUserNameList.asObservable()}return e.prototype.updateUsers=function(){this._remoteUsers.next(this.users)},e.prototype.add=function(e,t){var n,i,r,o,a,s,u,c,l,h,d,f,p=(null===(r=null===(i=null===(n=e)||void 0===n?void 0:n.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)||(null===(a=null===(o=e)||void 0===o?void 0:o.connection)||void 0===a?void 0:a.connectionId),v=(null===(c=null===(u=null===(s=e)||void 0===s?void 0:s.stream)||void 0===u?void 0:u.connection)||void 0===c?void 0:c.data)||(null===(h=null===(l=e)||void 0===l?void 0:l.connection)||void 0===h?void 0:h.data);d=this.utilsSrv.getNicknameFromConnectionData(v),f=this.avatarService.getAvatarFromConnectionData(v);var m=new iI(p,t,d);m.setAvatar(f),this.addUser(m),this.updateUsers()},e.prototype.removeUserByConnectionId=function(e){this.log.w("Deleting user: ",e);var t=this.getRemoteUserByConnectionId(e),n=this.users.indexOf(t,0);n>-1&&(this.users.splice(n,1),this.updateUsers())},e.prototype.someoneIsSharingScreen=function(){return this.users.some(function(e){return e.isScreen()})},e.prototype.toggleUserZoom=function(e){var t=this.getRemoteUserByConnectionId(e);t.setVideoSizeBig(!t.isVideoSizeBig())},e.prototype.resetUsersZoom=function(){this.users.forEach(function(e){return e.setVideoSizeBig(!1)})},e.prototype.setUserZoom=function(e,t){var n;null===(n=this.getRemoteUserByConnectionId(e))||void 0===n||n.setVideoSizeBig(t)},e.prototype.getRemoteUserByConnectionId=function(e){return this.users.find(function(t){return t.getConnectionId()===e})},e.prototype.updateNickname=function(e,t){var n=this.getRemoteUserByConnectionId(e);null==n||n.setNickname(t),this._remoteUsers.next(this.users);var i=this._remoteUserNameList.getValue();i.forEach(function(n){n.connectionId!==e||(n.nickname=t)}),this._remoteUserNameList.next(i)},e.prototype.clear=function(){this._remoteUsers=new hI.BehaviorSubject([]),this.remoteUsers=this._remoteUsers.asObservable(),this._remoteUserNameList=new hI.BehaviorSubject([]),this.remoteUserNameList=this._remoteUserNameList.asObservable(),this.users=[]},e.prototype.getUserAvatar=function(e){var t;return(null===(t=this.getRemoteUserByConnectionId(e))||void 0===t?void 0:t.getAvatar())||this.avatarService.getOpenViduAvatar()},e.prototype.addUserName=function(e){var t=this.utilsSrv.getNicknameFromConnectionData(e.connection.data),n=e.connection.connectionId,i=this._remoteUserNameList.getValue();i.push({nickname:t,connectionId:n}),this._remoteUserNameList.next(i)},e.prototype.deleteUserName=function(e){var t=this._remoteUserNameList.getValue().filter(function(t){return t.connectionId!==e.connection.connectionId});this._remoteUserNameList.next(t)},e.prototype.addUser=function(e){var t=this.getRemoteUserByConnectionId(e.connectionId);t?t.setStreamManager(e.getStreamManager()):this.users.push(e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI),Fi(lI),Fi(pI))},providedIn:"root"}),e}(),mI=function(){function e(e){this.snackBar=e}return e.prototype.newMessage=function(e,t){this.launchNotification(e+" sent a message","OPEN","messageSnackbar",3e3).onAction().subscribe(function(){t()})},e.prototype.launchNotification=function(e,t,n,i){return this.snackBar.open(e,t,{duration:i,verticalPosition:"top",horizontalPosition:"end",panelClass:n})},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(sE))},providedIn:"root"}),e}(),gI=n("PZzU"),yI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},bI=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},_I=function(){function e(e,t){this.loggerSrv=e,this.localUsersSrv=t,this.OV=null,this.OVScreen=null,this.webcamSession=null,this.screenSession=null,this.videoSource=void 0,this.audioSource=void 0,this.screenMediaStream=null,this.webcamMediaStream=null,this.log=this.loggerSrv.get("OpenViduWebRTCService")}return e.prototype.initialize=function(){this.OV=new gI.OpenVidu,this.OVScreen=new gI.OpenVidu,this.OV.enableProdMode(),this.OVScreen.enableProdMode()},e.prototype.initSessions=function(){this.initializeWebcamSession(),this.initializeScreenSession()},e.prototype.getWebcamSession=function(){return this.webcamSession},e.prototype.isWebcamSessionConnected=function(){return!!this.webcamSession.capabilities},e.prototype.initializeWebcamSession=function(){this.webcamSession=this.OV.initSession()},e.prototype.initializeScreenSession=function(){this.screenSession=this.OVScreen.initSession()},e.prototype.getScreenSession=function(){return this.screenSession},e.prototype.isScreenSessionConnected=function(){return!!this.screenSession.capabilities},e.prototype.connectWebcamSession=function(e){return yI(this,void 0,void 0,function(){var t,n;return bI(this,function(i){switch(i.label){case 0:return e?(this.log.d("Connecting webcam session"),t=this.localUsersSrv.getWebcamUserName(),n=this.localUsersSrv.getAvatar(),[4,this.webcamSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.disconnectWebcamSession=function(){this.webcamSession&&(this.log.d("Disconnecting webcam session"),this.webcamSession.disconnect(),this.webcamSession=null)},e.prototype.connectScreenSession=function(e){return yI(this,void 0,void 0,function(){var t,n;return bI(this,function(i){switch(i.label){case 0:return e?(this.log.d("Connecting screen session"),t=this.localUsersSrv.getScreenUserName(),n=this.localUsersSrv.getAvatar(),[4,this.screenSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.disconnectScreenSession=function(){this.screenSession&&(this.log.d("Disconnecting screen session"),this.screenSession.disconnect(),this.screenSession=null)},e.prototype.disconnect=function(){var e,t,n,i,r,o,a,s;this.disconnectWebcamSession(),this.disconnectScreenSession(),this.videoSource=void 0,this.audioSource=void 0,this.stopVideoTracks(null===(t=null===(e=this.localUsersSrv.getWebcamPublisher())||void 0===e?void 0:e.stream)||void 0===t?void 0:t.getMediaStream()),this.stopVideoTracks(null===(i=null===(n=this.localUsersSrv.getScreenPublisher())||void 0===n?void 0:n.stream)||void 0===i?void 0:i.getMediaStream()),this.stopAudioTracks(null===(o=null===(r=this.localUsersSrv.getWebcamPublisher())||void 0===r?void 0:r.stream)||void 0===o?void 0:o.getMediaStream()),this.stopAudioTracks(null===(s=null===(a=this.localUsersSrv.getScreenPublisher())||void 0===a?void 0:a.stream)||void 0===s?void 0:s.getMediaStream())},e.prototype.initPublisher=function(e,t){this.log.d("Initializing publisher with properties: ",t);var n=this.OV.initPublisher(e,t);return n.once("streamPlaying",function(){n.videos[0].video.parentElement.classList.remove("custom-class")}),n},e.prototype.initPublisherAsync=function(e,t){return yI(this,void 0,void 0,function(){var n;return bI(this,function(i){switch(i.label){case 0:return this.log.d("Initializing publisher with properties: ",t),[4,this.OV.initPublisherAsync(e,t)];case 1:return(n=i.sent()).once("streamPlaying",function(){n.videos[0].video.parentElement.classList.remove("custom-class")}),[2,n]}})})},e.prototype.destroyWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setWebcamPublisher(e))},e.prototype.destroyScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&(e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setScreenPublisher(e))},e.prototype.publishWebcamPublisher=function(){var e,t;return yI(this,void 0,void 0,function(){var n;return bI(this,function(i){switch(i.label){case 0:return(null===(t=null===(e=this.webcamSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getWebcamPublisher())?[4,this.webcamSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Webcam publisher cannot be published"),[2]}})})},e.prototype.unpublishWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(this.publishScreenAudio(this.localUsersSrv.hasWebcamAudioActive()),this.webcamSession.unpublish(e))},e.prototype.publishScreenPublisher=function(){var e,t;return yI(this,void 0,void 0,function(){var n;return bI(this,function(i){switch(i.label){case 0:return(null===(t=null===(e=this.screenSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getScreenPublisher())?[4,this.screenSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Screen publisher cannot be published"),[2]}})})},e.prototype.unpublishScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&this.screenSession.unpublish(e)},e.prototype.publishWebcamVideo=function(e){this.localUsersSrv.getWebcamPublisher().publishVideo(e),this.localUsersSrv.updateUsersStatus()},e.prototype.publishWebcamAudio=function(e){var t=this.localUsersSrv.getWebcamPublisher();t&&t.publishAudio(e)},e.prototype.publishScreenAudio=function(e){var t=this.localUsersSrv.getScreenPublisher();t&&t.publishAudio(e)},e.prototype.replaceTrack=function(e,t,n){var i=this;return void 0===n&&(n=!0),new Promise(function(r,o){e&&(i.log.d("Replacing video track "+e),i.videoSource=e),t&&(i.log.d("Replacing audio track "+t),i.audioSource=t),i.destroyWebcamPublisher();var a=i.createPublisherProperties(i.videoSource,i.audioSource,i.localUsersSrv.hasWebcamVideoActive(),i.localUsersSrv.hasWebcamAudioActive(),n),s=i.initPublisher(void 0,a);i.localUsersSrv.setWebcamPublisher(s),s.once("streamPlaying",function(){i.localUsersSrv.setWebcamPublisher(s),r()}),s.once("accessDenied",function(){o()})})},e.prototype.sendSignal=function(e,t,n){var i={data:JSON.stringify(n),type:e,to:t?[t]:void 0};this.webcamSession.signal(i)},e.prototype.sendNicknameSignal=function(e){var t,n;if(this.needSendNicknameSignal()){var i={data:JSON.stringify({clientData:this.localUsersSrv.getWebcamUserName()}),type:"nicknameChanged",to:e?[e]:void 0};null===(t=this.getWebcamSession())||void 0===t||t.signal(i),i.data=JSON.stringify({clientData:this.localUsersSrv.getScreenUserName()}),null===(n=this.getScreenSession())||void 0===n||n.signal(i)}},e.prototype.createPublisherProperties=function(e,t,n,i,r){return{videoSource:e,audioSource:t,publishVideo:n,publishAudio:i,mirror:r}},e.prototype.replaceScreenTrack=function(){return yI(this,void 0,void 0,function(){var e,t,n,i;return bI(this,function(r){switch(r.label){case 0:return e=nI.SCREEN,t=!this.localUsersSrv.isWebCamEnabled(),n=this.createPublisherProperties(e,void 0,!0,t,!1),this.stopScreenTracks(),i=this,[4,this.OVScreen.getUserMedia(n)];case 1:return i.screenMediaStream=r.sent(),[4,this.localUsersSrv.getScreenPublisher().replaceTrack(this.screenMediaStream.getVideoTracks()[0])];case 2:return r.sent(),[2]}})})},e.prototype.stopAudioTracks=function(e){var t;null==e||e.getAudioTracks().forEach(function(e){e.stop(),e.enabled=!1}),null===(t=this.webcamMediaStream)||void 0===t||t.getAudioTracks().forEach(function(e){e.stop()})},e.prototype.stopVideoTracks=function(e){null==e||e.getVideoTracks().forEach(function(e){e.stop()})},e.prototype.needSendNicknameSignal=function(){return JSON.parse(this.webcamSession.connection.data).clientData!==this.localUsersSrv.getWebcamUserName()},e.prototype.isMyOwnConnection=function(e){var t,n,i,r;return(null===(n=null===(t=this.webcamSession)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)===e||(null===(r=null===(i=this.screenSession)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)===e},e.prototype.getSessionOfUserConnected=function(){return this.localUsersSrv.isWebCamEnabled()?this.webcamSession:this.screenSession},e.prototype.stopScreenTracks=function(){this.screenMediaStream&&(this.stopAudioTracks(this.screenMediaStream),this.stopVideoTracks(this.screenMediaStream))},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI),Fi(dI))},providedIn:"root"}),e}(),kI=function(){function e(e,t,n,i,r){this.loggerSrv=e,this.openViduWebRTCService=t,this.localUsersService=n,this.remoteUsersService=i,this.notificationService=r,this._messageList=new hI.BehaviorSubject([]),this._toggleChat=new hI.BehaviorSubject(!1),this.messageList=[],this.messagesUnread=0,this._messagesUnread=new hI.BehaviorSubject(0),this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.toggleChatObs=this._toggleChat.asObservable(),this.messagesUnreadObs=this._messagesUnread.asObservable()}return e.prototype.setChatComponent=function(e){this.chatComponent=e},e.prototype.subscribeToChat=function(){var e=this;this.openViduWebRTCService.getWebcamSession().on("signal:chat",function(t){var n=t.from.connectionId,i=JSON.parse(t.data),r=e.openViduWebRTCService.isMyOwnConnection(n);e.messageList.push({isLocal:r,nickname:i.nickname,message:i.message,userAvatar:r?e.localUsersService.getAvatar():e.remoteUsersService.getUserAvatar(n)}),e.isChatOpened()||(e.addMessageUnread(),e.notificationService.newMessage(i.nickname.toUpperCase(),e.toggleChat.bind(e))),e._messageList.next(e.messageList)})},e.prototype.sendMessage=function(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){var t={message:e,nickname:this.localUsersService.getWebcamUserName()};this.openViduWebRTCService.getSessionOfUserConnected().signal({data:JSON.stringify(t),type:"chat"})}},e.prototype.toggleChat=function(){var e=this;this.log.d("Toggling chat"),this.chatComponent.toggle().then(function(){e.chatOpened=e.chatComponent.opened,e._toggleChat.next(e.chatOpened),e.chatOpened&&(e.messagesUnread=0,e._messagesUnread.next(e.messagesUnread))})},e.prototype.isChatOpened=function(){return this.chatOpened},e.prototype.addMessageUnread=function(){this.messagesUnread++,this._messagesUnread.next(this.messagesUnread)},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI),Fi(_I),Fi(dI),Fi(vI),Fi(mI))},providedIn:"root"}),e}(),wI=function(){function e(e){this.utilsSrv=e}return e.prototype.transform=function(e){return e?this.utilsSrv.linkify(e):e},e.\u0275fac=function(t){return new(t||e)(cs(lI))},e.\u0275pipe=yt({name:"linkify",type:e,pure:!0}),e}(),SI=["chatScroll"],CI=["chatInput"];function EI(e,t){if(1&e&&(ds(0,"div",13),ps(1,"img",14),ds(2,"div",15),ds(3,"div",16),ds(4,"p"),Xs(5),fs(),fs(),ds(6,"div",17),ps(7,"span",18),ps(8,"p",19),Tc(9,"linkify"),fs(),fs(),fs()),2&e){var n=t.$implicit;ls("ngClass",n.isLocal?"right":"left"),Ao(1),ls("src",n.userAvatar,Ir),Ao(4),$s(n.nickname),Ao(3),ls("innerHTML",Mc(9,4,n.message),Pr)}}var OI=function(){function e(e){this.chatService=e,this.messageList=[]}return e.prototype.onKeydownHandler=function(e){console.log(e),this.chatOpened&&this.close()},e.prototype.ngOnInit=function(){this.subscribeToMessages(),this.subscribeToToggleChat()},e.prototype.ngOnDestroy=function(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe(),this.chatToggleSubscription&&this.chatToggleSubscription.unsubscribe()},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.sendMessage()},e.prototype.sendMessage=function(){this.chatService.sendMessage(this.message),this.message=""},e.prototype.scrollToBottom=function(){var e=this;setTimeout(function(){try{e.chatScroll.nativeElement.scrollTop=e.chatScroll.nativeElement.scrollHeight}catch(t){}},20)},e.prototype.close=function(){this.chatService.toggleChat()},e.prototype.subscribeToMessages=function(){var e=this;this.chatMessageSubscription=this.chatService.messagesObs.subscribe(function(t){e.messageList=t,e.scrollToBottom()})},e.prototype.subscribeToToggleChat=function(){var e=this;this.chatToggleSubscription=this.chatService.toggleChatObs.subscribe(function(t){e.chatOpened=t,e.chatOpened&&(e.scrollToBottom(),setTimeout(function(){e.chatInput.nativeElement.focus()}))})},e.\u0275fac=function(t){return new(t||e)(cs(kI))},e.\u0275cmp=ht({type:e,selectors:[["chat-component"]],viewQuery:function(e,t){if(1&e&&(Wc(SI,1),Wc(CI,1)),2&e){var n=void 0;zc(n=Gc())&&(t.chatScroll=n.first),zc(n=Gc())&&(t.chatInput=n.first)}},hostBindings:function(e,t){1&e&&ks("keydown.escape",function(e){return t.onKeydownHandler(e)},!1,Br)},inputs:{lightTheme:"lightTheme"},decls:17,vars:4,consts:[["id","chatContainer"],["id","chatComponent"],["id","chatToolbar"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close","color","warn"],[1,"message-wrap"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["id","messageInput"],["placeholder","Send a message","autocomplete","off","id","chatInput",3,"ngModel","keypress","ngModelChange"],["chatInput",""],["mat-mini-fab","","id","sendButton",3,"click"],["matTooltip","Send"],[1,"message",3,"ngClass"],[1,"user-img",3,"src"],[1,"msg-detail"],[1,"msg-info"],[1,"msg-content"],[1,"triangle"],[1,"text",3,"innerHTML"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"span"),Xs(4," CHAT"),fs(),ds(5,"button",3),ks("click",function(){return t.close()}),ds(6,"mat-icon",4),Xs(7,"highlight_off"),fs(),fs(),fs(),ds(8,"div",5,6),ss(10,EI,10,6,"div",7),fs(),ds(11,"div",8),ds(12,"input",9,10),ks("keypress",function(e){return t.eventKeyPress(e)})("ngModelChange",function(e){return t.message=e}),fs(),ds(14,"button",11),ks("click",function(){return t.sendMessage()}),ds(15,"mat-icon",12),Xs(16,"send"),fs(),fs(),fs(),fs(),fs()),2&e&&(Ao(1),Us("chatComponentLight",t.lightTheme),Ao(9),ls("ngForOf",t.messageList),Ao(2),ls("ngModel",t.message))},directives:[pb,pS,qC,wh,Td,Kd,Bf,_h,lO],pipes:[wI],styles:["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:calc(100% - 20px)}input[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#chatToolbar[_ngcontent-%COMP%]{height:30px;background-color:#3d3d3d;box-sizing:border-box;font-weight:700;font-size:14px;text-align:center;padding-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff}#closeButton[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px}#chatComponent[_ngcontent-%COMP%]{background-color:#b8b8b8;position:absolute;z-index:99999;top:0;left:0;right:0;bottom:0;margin:auto;height:calc(100% - 30px);width:calc(100% - 30px);border-radius:20px}.message-wrap[_ngcontent-%COMP%]{padding:0 15px;height:calc(100% - 80px);overflow:auto}.message[_ngcontent-%COMP%]{position:relative;padding:7px 0}.user-img[_ngcontent-%COMP%]{position:absolute;border-radius:45px;width:60px;height:60px;top:15px}.msg-detail[_ngcontent-%COMP%]{width:calc(100% - 65px);display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:15px}.msg-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8em;color:#000;font-style:italic}.msg-content[_ngcontent-%COMP%]{position:relative;margin-top:5px;border-radius:5px;padding:8px;color:#000;width:auto;max-width:95%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;transform:rotate(45deg);position:absolute}.text[_ngcontent-%COMP%]{word-break:break-all}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%]{padding-left:65px}.message.left[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{left:-5px;border:1px solid hsla(0,0%,94.1%,.5803921568627451)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#f0f0f0;float:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#f0f0f0;border-bottom-width:0;border-left-width:0;left:-5px}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{right:-5px;border:1px solid rgba(200,255,232,.6705882352941176)}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#c8ffe8;float:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#c8ffe8;border-bottom-width:0;border-left-width:0;right:-5px}#messageInput[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:#fff;text-align:center;padding:10px 0;height:30px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}#messageInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%;height:100%;border:none;outline:none;font-size:14px;margin-left:-6%}#sendButton[_ngcontent-%COMP%]{background-color:#81e9b0;position:absolute;right:10px;top:0;bottom:0;margin:auto;border:1px solid #7ae2a9;box-shadow:none!important}#sendButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:3px!important;margin-bottom:2px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6b6b6b}.chatComponentLight[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#eee!important}"]}),e}(),xI=function(){function e(){this.ovSettings={chat:!0,autopublish:!1,toolbar:!0,footer:!0,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,layoutSpeaking:!0,exit:!0}}}return e.prototype.set=function(e){this.ovSettings=e},e.prototype.isAutoPublish=function(){return this.ovSettings.autopublish},e.prototype.hasVideo=function(){return this.ovSettings.toolbarButtons.video},e.prototype.hasScreenSharing=function(){return this.ovSettings.toolbarButtons.screenShare},e.prototype.hasLayoutSpeaking=function(){return this.ovSettings.toolbarButtons.layoutSpeaking},e.prototype.hasFullscreen=function(){return this.ovSettings.toolbarButtons.fullscreen},e.prototype.hasAudio=function(){return this.ovSettings.toolbarButtons.audio},e.prototype.hasChat=function(){return this.ovSettings.chat},e.prototype.hasExit=function(){return this.ovSettings.toolbarButtons.exit},e.prototype.setScreenSharing=function(e){this.ovSettings.toolbarButtons.screenShare=e},e.prototype.hasFooter=function(){return this.ovSettings.footer},e.prototype.hasToolbar=function(){return this.ovSettings.toolbar},e}(),TI=function(e){return e.DARK="dark",e.LIGHT="light",e}({}),MI=function(){function e(){this.theme=TI.DARK,this.ovSettings=new xI}return e.prototype.getComponentName=function(){},e.prototype.getOvSettings=function(){return this.ovSettings},e.prototype.getSessionName=function(){return this.sessionName},e.prototype.getOvServerUrl=function(){return this.ovServerUrl},e.prototype.getOvSecret=function(){return this.ovSecret},e.prototype.getTheme=function(){return this.theme},e.prototype.getNickname=function(){return this.nickname},e.prototype.getTokens=function(){return this.tokens},e.prototype.getScreenToken=function(){return this.tokens[1]},e.prototype.getWebcamToken=function(){return this.tokens[0]},e.prototype.setOvSettings=function(e){e&&this.ovSettings.set(e)},e.prototype.setSessionName=function(e){this.sessionName=e},e.prototype.setOvServerUrl=function(e){this.ovServerUrl=e},e.prototype.setOvSecret=function(e){this.ovSecret=e},e.prototype.setTheme=function(e){Object.values(TI).includes(e)&&(this.theme=e===TI.DARK?TI.DARK:TI.LIGHT)},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.setTokens=function(e){this.tokens=e},e.prototype.canJoinToSession=function(){return this.canOVCallGenerateToken()||this.hasReceivedToken()},e.prototype.hasTokens=function(){var e;return(null===(e=this.tokens)||void 0===e?void 0:e.length)>0},e.prototype.canOVCallGenerateToken=function(){return!!(this.sessionName&&this.ovServerUrl&&this.ovSecret&&this.nickname)},e.prototype.hasReceivedToken=function(){return!!this.tokens&&this.tokens.length>0&&!!this.nickname},e}(),PI=function(e){return e.USER_NICKNAME="openviduCallNickname",e.VIDEO_DEVICE="openviduCallVideoDevice",e.AUDIO_DEVICE="openviduCallAudioDevice",e}({}),II=function(e){return e.FRONT="FRONT",e.BACK="BACK",e}({}),AI=function(){function e(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}return e.prototype.set=function(e,t){var n=JSON.stringify({item:t});this.storage.setItem(e,n)},e.prototype.get=function(e){var t=JSON.parse(this.storage.getItem(e));return(null==t?void 0:t.item)?t.item:null},e.prototype.clear=function(){this.log.d("Clearing localStorage"),this.storage.clear()},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI))},providedIn:"root"}),e}(),RI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},DI=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},NI=function(){function e(e,t,n){this.loggerSrv=e,this.utilSrv=t,this.storageSrv=n,this.OV=null,this.cameras=[],this.microphones=[],this.log=this.loggerSrv.get("DevicesService"),this.OV=new gI.OpenVidu}return e.prototype.initDevices=function(){return RI(this,void 0,void 0,function(){return DI(this,function(e){switch(e.label){case 0:return[4,this.initOpenViduDevices()];case 1:return e.sent(),this.devices.length>0?this.log.d("Devices found: ",this.devices):this.log.w("No devices found!"),this.resetDevicesArray(),this.hasAudioDeviceAvailable()&&(this.initAudioDevices(),this.micSelected=this.getMicSelected()),this.hasVideoDeviceAvailable()&&(this.initVideoDevices(),this.camSelected=this.cameras.find(function(e){return e.type===II.FRONT})),[2]}})})},e.prototype.initOpenViduDevices=function(){return RI(this,void 0,void 0,function(){var e;return DI(this,function(t){switch(t.label){case 0:return e=this,[4,this.OV.getDevices()];case 1:return e.devices=t.sent(),[2]}})})},e.prototype.initAudioDevices=function(){var e=this;this.devices.filter(function(e){return"audioinput"===e.kind}).forEach(function(t){e.microphones.push({label:t.label,device:t.deviceId})})},e.prototype.initVideoDevices=function(){var e=this;this.devices.filter(function(e){return"videoinput"===e.kind}).forEach(function(t,n){var i={label:t.label,device:t.deviceId,type:II.BACK};e.utilSrv.isMobile()?i.label.toLowerCase().includes(II.FRONT.toLowerCase())&&(i.type=II.FRONT):0===n&&(i.type=II.FRONT),e.cameras.push(i)}),this.log.d("Camera selected",this.camSelected)},e.prototype.getCamSelected=function(){if(0!==this.cameras.length)return this.getCamFromStorage()||this.camSelected||this.cameras[0];this.log.e("No video devices found!")},e.prototype.getCamFromStorage=function(){var e=this.storageSrv.get(PI.VIDEO_DEVICE);if(e=this.getCameraByDeviceField(null==e?void 0:e.device))return e},e.prototype.getMicSelected=function(){if(0!==this.microphones.length)return this.getMicFromStogare()||this.micSelected||this.microphones[0];this.log.e("No audio devices found!")},e.prototype.getMicFromStogare=function(){var e=this.storageSrv.get(PI.AUDIO_DEVICE);if(e=this.getMicrophoneByDeviceField(null==e?void 0:e.device))return e},e.prototype.setCamSelected=function(e){this.camSelected=this.getCameraByDeviceField(e),this.saveCamToStorage(this.camSelected)},e.prototype.saveCamToStorage=function(e){this.storageSrv.set(PI.VIDEO_DEVICE,e)},e.prototype.setMicSelected=function(e){this.micSelected=this.getMicrophoneByDeviceField(e),this.saveMicToStorage(this.micSelected)},e.prototype.saveMicToStorage=function(e){this.storageSrv.set(PI.AUDIO_DEVICE,e)},e.prototype.needUpdateVideoTrack=function(e){return this.getCamSelected().device!==e},e.prototype.needUpdateAudioTrack=function(e){return this.getMicSelected().device!==e},e.prototype.getCameras=function(){return this.cameras},e.prototype.getMicrophones=function(){return this.microphones},e.prototype.hasVideoDeviceAvailable=function(){var e;return!this.videoDevicesDisabled&&!!(null===(e=this.devices)||void 0===e?void 0:e.find(function(e){return"videoinput"===e.kind}))},e.prototype.hasAudioDeviceAvailable=function(){var e;return!!(null===(e=this.devices)||void 0===e?void 0:e.find(function(e){return"audioinput"===e.kind}))},e.prototype.cameraNeedsMirror=function(e){var t;return(null===(t=this.getCameraByDeviceField(e))||void 0===t?void 0:t.type)===II.FRONT},e.prototype.areEmptyLabels=function(){return!!this.cameras.find(function(e){return""===e.label})||!!this.microphones.find(function(e){return""===e.label})},e.prototype.disableVideoDevices=function(){this.videoDevicesDisabled=!0},e.prototype.clear=function(){this.OV=new gI.OpenVidu,this.devices=[],this.cameras=[],this.microphones=[],this.camSelected=null,this.micSelected=null,this.videoDevicesDisabled=!1},e.prototype.getCameraByDeviceField=function(e){return this.cameras.find(function(t){return t.device===e||t.label===e})},e.prototype.getMicrophoneByDeviceField=function(e){return this.microphones.find(function(t){return t.device===e||t.label===e})},e.prototype.resetDevicesArray=function(){this.cameras=[{label:"None",device:null,type:null}],this.microphones=[{label:"None",device:null,type:null}]},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI),Fi(lI),Fi(AI))},providedIn:"root"}),e}(),LI=function(){function e(){}return e.prototype.updateLayout=function(){var e=this;setTimeout(function(){if("none"!==e.layoutContainer.style.display){var t=e.layoutContainer.id;t||(t="OT_"+e.cheapUUID(),e.layoutContainer.id=t);var n=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">."+e.opts.smallClass),e.filterDisplayNone),i=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">."+e.opts.bigClass),e.filterDisplayNone).filter(function(e){return!n.includes(e)}),r=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">*:not(."+e.opts.bigClass+")"),e.filterDisplayNone).filter(function(e){return!n.includes(e)});e.attachElements(i,r,n)}},50)},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",smallClass:null!=t.smallClass?t.smallClass:"OT_small",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer=e},e.prototype.setLayoutOptions=function(e){this.opts=e},e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var i=n.style.width;n.style.width=t+"px",n.style.width=i||""}},e.prototype.positionElement=function(e,t,n,i,r,o){var a=this,s={left:t+"px",top:n+"px",width:i+"px",height:r+"px"};this.fixAspectRatio(e,i),setTimeout(function(){e.style.left=s.left,e.style.top=s.top,e.style.width=s.width,e.style.height=s.height,a.fixAspectRatio(e,i)},10)},e.prototype.getVideoRatio=function(e){if(!e)return 3/4;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:3/4},e.prototype.getCSSNumber=function(e,t){var n=window.getComputedStyle(e)[t];return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=window.getComputedStyle(e).height;return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=window.getComputedStyle(e).width;return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,i,r,o){for(var a,s,u,c,l,h,d,f=1;f<=n;f++){var p=f,v=Math.ceil(n/p);(d=(h=Math.floor(r/v))/(l=Math.floor(i/p)))>t?h=l*(d=t):d<e&&(l=h/(d=e));var m=l*h*n;(void 0===a||m>a)&&(a=m,o=h,c=l,s=p,u=v)}return{maxArea:a,targetCols:s,targetRows:u,targetHeight:o,targetWidth:c,ratio:o/c}},e.prototype.arrange=function(e,t,n,i,r,o,a,s,u){var c,l,h=e.length;if(o){var d=this.getVideoRatio(e.length>0?e[0]:null);l=this.getBestDimensions(d,d,h,t,n,c)}else l=this.getBestDimensions(a,s,h,t,n,c);for(var f,p=0,v=0,m=[],g=0;g<e.length;g++){g%l.targetCols==0&&m.push(f={children:[],width:0,height:0}),f.children.push(C=e[g]);var y=l.targetWidth;c=l.targetHeight,o&&(y=c/this.getVideoRatio(C)),f.width+=y,f.height=c}var b=0,_=0;for(g=0;g<m.length;g++)(f=m[g]).width>t?(f.height=Math.floor(f.height*(t/f.width)),f.width=t):f.width<t&&(_+=1),b+=f.height;if(b<n&&_>0){var k=n-b;for(b=0,g=0;g<m.length;g++){if((f=m[g]).width<t){var w=k/_;w/f.height>(t-f.width)/f.width&&(w=Math.floor((t-f.width)/f.width*f.height)),f.width+=Math.floor(w/f.height*f.width),f.height+=w,k-=w,_-=1}b+=f.height}}for(v=(n-b)/2,g=0;g<m.length;g++){p=(t-(f=m[g]).width)/2;for(var S=0;S<f.children.length;S++){var C=f.children[S];y=l.targetWidth,c=f.height,o&&(y=Math.floor(c/this.getVideoRatio(C))),C.style.position="absolute";var E=y-this.getCSSNumber(C,"paddingLeft")-this.getCSSNumber(C,"paddingRight")-this.getCSSNumber(C,"marginLeft")-this.getCSSNumber(C,"marginRight")-this.getCSSNumber(C,"borderLeft")-this.getCSSNumber(C,"borderRight"),O=c-this.getCSSNumber(C,"paddingTop")-this.getCSSNumber(C,"paddingBottom")-this.getCSSNumber(C,"marginTop")-this.getCSSNumber(C,"marginBottom")-this.getCSSNumber(C,"borderTop")-this.getCSSNumber(C,"borderBottom");this.positionElement(C,p+i,v+r,E,O,u),p+=y}v+=c}},e.prototype.attachElements=function(e,t,n){var i=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),r=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight");if(this.existBigAndNormalOnes(e,t,n))this.arrangeBigAndSmallOnes(e.length>0?e:t,n.length>0?n:t);else if(this.onlyExistBigOnes(e,t,n))this.arrange(e,r,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate);else if(this.existBigAndNormalAndSmallOnes(e,t,n))this.arrangeBigAndSmallOnes(e,t.concat(n));else{var o=t.concat(n);this.arrange(o,r-0,i-0,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.arrangeBigAndSmallOnes=function(e,t){var n,i,r=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),o=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight"),a=0,s=0,u=0,c=0;r/o>this.getVideoRatio(e[0])?(n=o,u=r-(s=i=Math.floor(r*this.opts.bigPercentage))):(i=r,c=o-(a=n=Math.floor(o*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(e,n,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(t,o-a,r-s,a,s,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(t,o-a,r-s,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(e,n,i,c,u,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))},e.prototype.existBigAndNormalOnes=function(e,t,n){return e.length>0&&t.length>0&&0===n.length||e.length>0&&0===t.length&&n.length>0||0===e.length&&t.length>0&&n.length>0},e.prototype.onlyExistBigOnes=function(e,t,n){return e.length>0&&0===t.length&&0===n.length},e.prototype.existBigAndNormalAndSmallOnes=function(e,t,n){return e.length>0&&t.length>0&&n.length>0},e.prototype.filterDisplayNone=function(e){return"none"!==e.style.display},e}(),VI=function(){function e(){}return e.prototype.initialize=function(){this.openviduLayout=new LI,this.openviduLayoutOptions=this.getOptions(),this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.openviduLayoutOptions)},e.prototype.getOptions=function(){return{maxRatio:1.5,minRatio:.6,fixedRatio:!1,bigClass:sI.BIG_ELEMENT,smallClass:sI.SMALL_ELEMENT,bigPercentage:.85,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0}},e.prototype.update=function(e){var t=this;if(this.openviduLayout){if(!e)return void this.openviduLayout.updateLayout();setTimeout(function(){t.openviduLayout.updateLayout()},e)}},e.prototype.getLayout=function(){return this.openviduLayout},e.prototype.clear=function(){this.openviduLayout=null},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),jI=n("vLqr"),FI=n("rNzc"),BI=function(){function e(e,t){this.http=e,this.loggerSrv=t,this.log=this.loggerSrv.get("NetworkService"),this.baseHref="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":"")}return e.prototype.getToken=function(e,t,n){return i=this,void 0,o=function(){var i,r;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(o){switch(o.label){case 0:return t&&n?[4,this.createSession(e,t,n)]:[3,3];case 1:return i=o.sent(),[4,this.createToken(i,t,n)];case 2:return[2,o.sent()];case 3:return o.trys.push([3,5,,6]),this.log.d("Getting token from backend"),[4,this.http.post(this.baseHref+"call",{sessionId:e}).toPromise()];case 4:return[2,o.sent()];case 5:if(404===(r=o.sent()).status)throw{status:r.status,message:"Cannot connect with backend. "+r.url+" not found"};throw r;case 6:return[2]}})},new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o},e.prototype.createSession=function(e,t,n){var i=this;return new Promise(function(r,o){var a=JSON.stringify({customSessionId:e}),s={headers:new Cw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions",a,s).pipe(Object(FI.catchError)(function(t){return 409===t.status&&r(e),"Unknown Error"===t.statusText&&o({status:401,message:"ERR_CERT_AUTHORITY_INVALID"}),Object(jI.throwError)(t)})).subscribe(function(e){r(e.id)})})},e.prototype.createToken=function(e,t,n){var i=this;return new Promise(function(r,o){var a=JSON.stringify({}),s={headers:new Cw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions/"+e+"/connection",a,s).pipe(Object(FI.catchError)(function(e){return o(e),Object(jI.throwError)(e)})).subscribe(function(e){i.log.d(e),r(e.token)})})},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(Fw),Fi(rI))},providedIn:"root"}),e}(),UI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},zI=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},WI=function(){function e(e,t){this.loggerSrv=e,this.networkSrv=t,this.webcamToken="",this.screenToken="",this.sessionId="",this.log=this.loggerSrv.get("TokenService")}return e.prototype.initialize=function(e){this.ovSettings=e},e.prototype.setSessionId=function(e){this.sessionId=e},e.prototype.getSessionId=function(){return this.sessionId},e.prototype.initTokens=function(e){var t,n;return UI(this,void 0,void 0,function(){return zI(this,function(i){switch(i.label){case 0:return e&&e.hasTokens()?(this.log.d("Received external tokens from "+e.getComponentName()),this.webcamToken=e.getWebcamToken(),this.screenToken=(null===(t=this.ovSettings)||void 0===t?void 0:t.hasScreenSharing())?e.getScreenToken():void 0,[2]):(this.log.d("No external tokens received. Generating token..."),[4,this.generateWebcamToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]);case 1:return i.sent(),(null===(n=this.ovSettings)||void 0===n?void 0:n.hasScreenSharing())?[4,this.generateScreenToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.getWebcamToken=function(){return this.webcamToken},e.prototype.getScreenToken=function(){return this.screenToken},e.prototype.generateWebcamToken=function(e,t,n){return UI(this,void 0,void 0,function(){var i;return zI(this,function(r){switch(r.label){case 0:return this.log.d("Generating webcam token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.webcamToken=r.sent(),[2]}})})},e.prototype.generateScreenToken=function(e,t,n){return UI(this,void 0,void 0,function(){var i;return zI(this,function(r){switch(r.label){case 0:return this.log.d("Generating screen token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.screenToken=r.sent(),[2]}})})},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(rI),Fi(BI))},providedIn:"root"}),e}(),HI=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))},e}(),GI=n("Tt94"),qI=["videoElement"];function ZI(e,t){1&e&&ps(0,"img",3)}var QI=function(){function e(){this.toggleVideoSizeEvent=new Pc}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e._streamManager&&e._videoElement&&e._streamManager.addVideoElement(e._videoElement.nativeElement)})},Object.defineProperty(e.prototype,"videoElement",{set:function(e){this._videoElement=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"streamManager",{set:function(e){var t=this;setTimeout(function(){t._streamManager=e,t._videoElement&&t._streamManager&&(t._streamManager.stream.typeOfVideo===tI.SCREEN?(t._videoElement.nativeElement.style.objectFit="contain",t._videoElement.nativeElement.style.background="#272727",t.enableVideoSizeBig()):t._videoElement.nativeElement.style.objectFit="cover",t._streamManager.addVideoElement(t._videoElement.nativeElement))})},enumerable:!1,configurable:!0}),e.prototype.enableVideoSizeBig=function(){var e=this;setTimeout(function(){e.toggleVideoSizeEvent.emit(!0)},590)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["ov-video"]],viewQuery:function(e,t){var n;1&e&&Wc(qI,1),2&e&&zc(n=Gc())&&(t.videoElement=n.first)},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},outputs:{toggleVideoSizeEvent:"toggleVideoSizeEvent"},decls:3,vars:3,consts:[["class","poster_img","alt","OpenVidu Logo","src","assets/images/poster.png",4,"ngIf"],[3,"muted"],["videoElement",""],["alt","OpenVidu Logo","src","assets/images/poster.png",1,"poster_img"]],template:function(e,t){1&e&&(ss(0,ZI,1,0,"img",0),ps(1,"video",1,2)),2&e&&(ls("ngIf",!(null!=t._streamManager&&null!=t._streamManager.stream&&t._streamManager.stream.videoActive)),Ao(1),ls("muted",t.mutedSound),os("id",t.streamManager&&t._streamManager.stream?"video-"+t._streamManager.stream.streamId:"video-undefined"))},directives:[Ch],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3686274509803922);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),YI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasChat()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasChat",type:e,pure:!0}),e}(),KI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasAudio()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasAudio",type:e,pure:!0}),e}(),JI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasVideo()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasVideo",type:e,pure:!0}),e}(),XI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.isAutoPublish()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"isAutoPublish",type:e,pure:!0}),e}(),$I=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasScreenSharing()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasScreenSharing",type:e,pure:!0}),e}(),eA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFullscreen()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasFullscreen",type:e,pure:!0}),e}(),tA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasLayoutSpeaking()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasLayoutSpeaking",type:e,pure:!0}),e}(),nA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasExit()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasExit",type:e,pure:!0}),e}(),iA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasToolbar()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasToolbar",type:e,pure:!0}),e}(),rA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFooter()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"hasFooter",type:e,pure:!0}),e}(),oA=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},aA=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},sA=["bodyCard"];function uA(e,t){if(1&e&&ps(0,"ov-video",35),2&e){var n=xs(),i=n.$implicit,r=n.index,o=xs(2);ls("streamManager",i.streamManager)("className",o.localUsers.length>1&&0===r?"ovVideoSmall":"")}}function cA(e,t){1&e&&(ds(0,"span"),Xs(1,"Oops! Camera and microphone are not available"),fs())}function lA(e,t){1&e&&(ds(0,"span"),Xs(1,"Oops! Camera is not available"),fs())}function hA(e,t){1&e&&(ds(0,"span"),Xs(1,"Oops! Microphone is not available"),fs())}function dA(e,t){if(1&e&&(ds(0,"div",36),ss(1,cA,2,0,"span",29),ss(2,lA,2,0,"span",29),ss(3,hA,2,0,"span",29),fs()),2&e){var n=xs(3);Ao(1),ls("ngIf",!n.hasVideoDevices&&!n.hasAudioDevices),Ao(1),ls("ngIf",!n.hasVideoDevices&&n.hasAudioDevices),Ao(1),ls("ngIf",n.hasVideoDevices&&!n.hasAudioDevices)}}function fA(e,t){if(1&e&&(ds(0,"div"),ss(1,uA,1,2,"ov-video",33),ss(2,dA,4,3,"div",34),fs()),2&e){var n=t.$implicit,i=xs(2);Ao(1),ls("ngIf",n.isCamera()&&i.hasVideoDevices||n.isScreen()),Ao(1),ls("ngIf",n.isCamera()&&!i.hasVideoDevices)}}function pA(e,t){if(1&e){var n=gs();ds(0,"div",37),ds(1,"button",38),ks("click",function(){return sn(n),xs(2).captureAvatar()}),ds(2,"mat-icon",39),Xs(3,"photo_camera"),fs(),ds(4,"span",40),Xs(5,"Capture Avatar"),fs(),fs(),fs()}}function vA(e,t){1&e&&(ds(0,"div",41),ds(1,"h3"),Xs(2,"Avatar"),fs(),fs())}function mA(e,t){1&e&&(ds(0,"div",47),ds(1,"span"),Xs(2,"Press Avatar Button"),fs(),fs())}function gA(e,t){1&e&&ps(0,"img",48),2&e&&ls("src",xs(3).capturedAvatar,Ir)}function yA(e,t){1&e&&ps(0,"img",48),2&e&&ls("src",xs(3).openviduAvatar,Ir)}function bA(e,t){if(1&e){var n=gs();ds(0,"div",42),ds(1,"div",43),ds(2,"div",44),ks("click",function(){sn(n);var e=xs(2);return e.onSelectAvatar(e.avatarTypeEnum.CAPTURED)}),ss(3,mA,3,0,"div",45),ss(4,gA,1,1,"img",46),fs(),ds(5,"div",44),ks("click",function(){sn(n);var e=xs(2);return e.onSelectAvatar(e.avatarTypeEnum.DEFAULT)}),ss(6,yA,1,1,"img",46),fs(),fs(),fs()}if(2&e){var i=xs(2);Ao(2),Bs("background",i.avatarSelected===i.avatarTypeEnum.CAPTURED?"lightgreen":"transparent"),Ao(1),ls("ngIf",!i.capturedAvatar),Ao(1),ls("ngIf",i.capturedAvatar),Ao(1),Bs("background",i.avatarSelected===i.avatarTypeEnum.DEFAULT?"lightgreen":"transparent"),Ao(1),ls("ngIf",i.openviduAvatar)}}function _A(e,t){1&e&&(ds(0,"mat-error"),Xs(1," Nickname is "),ds(2,"strong"),Xs(3,"required"),fs(),fs())}function kA(e,t){1&e&&(ds(0,"mat-error"),Xs(1," Nickname is "),ds(2,"strong"),Xs(3,"too long!"),fs(),fs())}function wA(e,t){1&e&&(ds(0,"mat-icon",55),Xs(1,"mic"),fs())}function SA(e,t){1&e&&(ds(0,"mat-icon",56),Xs(1,"mic_off"),fs())}function CA(e,t){if(1&e&&(ds(0,"mat-option",57),Xs(1),fs()),2&e){var n=t.$implicit;ls("value",n.device),Ao(1),eu(" ",n.label," ")}}function EA(e,t){if(1&e){var n=gs();ds(0,"div",21),ds(1,"div",22),ds(2,"div",23),ds(3,"button",49),ks("click",function(){return sn(n),xs(2).toggleMic()}),ss(4,wA,2,0,"mat-icon",50),ss(5,SA,2,0,"mat-icon",51),fs(),fs(),ds(6,"div",26),ds(7,"mat-form-field",52),ds(8,"mat-select",53),ks("selectionChange",function(e){return sn(n),xs(2).onMicrophoneSelected(e)}),ss(9,CA,2,2,"mat-option",54),fs(),fs(),fs(),fs(),fs()}if(2&e){var i=xs(2);Ao(4),ls("ngIf",i.isAudioActive),Ao(1),ls("ngIf",!i.isAudioActive),Ao(3),ls("ngModel",i.isAudioActive&&i.micSelected?i.micSelected.device:"None"),Ao(1),ls("ngForOf",i.microphones)}}function OA(e,t){1&e&&(ds(0,"mat-icon",62),Xs(1,"videocam"),fs())}function xA(e,t){1&e&&(ds(0,"mat-icon",63),Xs(1,"videocam_off"),fs())}function TA(e,t){if(1&e&&(ds(0,"mat-option",57),Xs(1),fs()),2&e){var n=t.$implicit;ls("value",n.device),Ao(1),eu(" ",n.label," ")}}function MA(e,t){if(1&e){var n=gs();ds(0,"div",21),ds(1,"div",22),ds(2,"div",23),ds(3,"button",58),ks("click",function(){return sn(n),xs(2).toggleCam()}),ss(4,OA,2,0,"mat-icon",59),ss(5,xA,2,0,"mat-icon",60),fs(),fs(),ds(6,"div",26),ds(7,"mat-form-field",52),ds(8,"mat-select",61),ks("selectionChange",function(e){return sn(n),xs(2).onCameraSelected(e)}),ss(9,TA,2,2,"mat-option",54),fs(),fs(),fs(),fs(),fs()}if(2&e){var i=xs(2);Ao(4),ls("ngIf",i.isVideoActive),Ao(1),ls("ngIf",!i.isVideoActive),Ao(3),ls("ngModel",i.isVideoActive&&i.camSelected?i.camSelected.device:"None"),Ao(1),ls("ngForOf",i.cameras)}}function PA(e,t){1&e&&(ds(0,"mat-icon",68),Xs(1,"screen_share"),fs())}function IA(e,t){1&e&&(ds(0,"mat-icon",69),Xs(1," stop_screen_share"),fs())}function AA(e,t){if(1&e){var n=gs();ds(0,"div",21),ds(1,"div",22),ds(2,"div",23),ds(3,"button",64),ks("click",function(){return sn(n),xs(2).toggleScreenShare()}),ss(4,PA,2,0,"mat-icon",65),ss(5,IA,2,0,"mat-icon",66),fs(),fs(),ds(6,"div",26),ds(7,"mat-form-field",52),ps(8,"input",67),fs(),fs(),fs(),fs()}if(2&e){var i=xs(2);Ao(4),ls("ngIf",i.screenShareEnabled),Ao(1),ls("ngIf",!i.screenShareEnabled),Ao(3),ls("ngModel",i.screenShareEnabled?"Screen":"None")}}function RA(e,t){if(1&e){var n=gs();ds(0,"div",2),ds(1,"div",3),ds(2,"div",4),ds(3,"div",5),ds(4,"div",6),ps(5,"img",7),fs(),ds(6,"h3",8),Xs(7),fs(),ds(8,"button",9),ks("click",function(){return sn(n),xs().close()}),ds(9,"mat-icon",10),Xs(10,"highlight_off"),fs(),fs(),fs(),ds(11,"div",11,12),ds(13,"div",13),ds(14,"div",14),ds(15,"div",15),ss(16,fA,3,2,"div",16),fs(),ss(17,pA,6,0,"div",17),fs(),ds(18,"div",18),ss(19,vA,3,0,"div",19),ss(20,bA,7,7,"div",20),ds(21,"div",21),ds(22,"div",22),ds(23,"div",23),ds(24,"button",24),ds(25,"mat-icon",25),Xs(26,"person"),fs(),fs(),fs(),ds(27,"div",26),ds(28,"form",27),ds(29,"mat-form-field"),ds(30,"input",28),ks("keypress",function(e){return sn(n),xs().eventKeyPress(e)}),fs(),ss(31,_A,4,0,"mat-error",29),ss(32,kA,4,0,"mat-error",29),fs(),fs(),fs(),fs(),fs(),ss(33,EA,10,4,"div",30),Tc(34,"hasAudio"),ss(35,MA,10,4,"div",30),Tc(36,"hasVideo"),ss(37,AA,9,3,"div",30),Tc(38,"hasScreenSharing"),fs(),fs(),fs(),ds(39,"div",31),ds(40,"button",32),ks("click",function(){return sn(n),xs().joinSession()}),Xs(41,"JOIN"),fs(),fs(),fs(),fs(),fs()}if(2&e){var i=xs();Ao(7),$s(i.mySessionId),Ao(9),ls("ngForOf",i.localUsers),Ao(1),ls("ngIf",i.hasVideoDevices),Ao(2),ls("ngIf",i.hasVideoDevices),Ao(1),ls("ngIf",i.hasVideoDevices),Ao(10),ls("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Ao(1),ls("ngIf",i.nicknameFormControl.hasError("required")),Ao(1),ls("ngIf",i.nicknameFormControl.hasError("maxlength")),Ao(1),ls("ngIf",i.hasAudioDevices&&Mc(34,12,i.ovSettings)),Ao(2),ls("ngIf",i.hasVideoDevices&&Mc(36,14,i.ovSettings)),Ao(2),ls("ngIf",Mc(38,16,i.ovSettings))}}var DA=function(e){return{display:e}},NA=function(){function e(e,t,n,i,r,o,a,s,u){this.route=e,this.utilsSrv=t,this.openViduWebRTCService=n,this.localUsersService=i,this.tokenService=r,this.oVDevicesService=o,this.loggerSrv=a,this.storageSrv=s,this.avatarService=u,this.join=new Pc,this.leaveSession=new Pc,this.publisherCreated=new Pc,this.isVideoActive=!0,this.isAudioActive=!0,this.localUsers=[],this.avatarTypeEnum=fI,this.nicknameFormControl=new Af("",[Dd.maxLength(25),Dd.required]),this.matcher=new HI,this.log=this.loggerSrv.get("RoomConfigComponent")}return e.prototype.beforeunloadHandler=function(){this.close()},e.prototype.ngOnInit=function(){return oA(this,void 0,void 0,function(){return aA(this,function(e){switch(e.label){case 0:return this.subscribeToLocalUsersEvents(),this.initNicknameAndSubscribeToChanges(),this.openviduAvatar=this.avatarService.getOpenViduAvatar(),this.columns=window.innerWidth>900?2:1,this.setSessionName(),[4,this.oVDevicesService.initDevices()];case 1:return e.sent(),this.setDevicesInfo(),this.hasAudioDevices||this.hasVideoDevices?[4,this.initwebcamPublisher()]:[3,3];case 2:return e.sent(),[3,4];case 3:this.emitPublisher(null),this.showConfigCard=!0,e.label=4;case 4:return[2]}})})},e.prototype.ngOnDestroy=function(){this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.oVDevicesService.clear()},e.prototype.onCameraSelected=function(e){return oA(this,void 0,void 0,function(){var t,n;return aA(this,function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateVideoTrack(t)?(n=this.oVDevicesService.cameraNeedsMirror(t),[4,this.openViduWebRTCService.replaceTrack(t,null,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setCamSelected(t),this.camSelected=this.oVDevicesService.getCamSelected(),i.label=2;case 2:return this.openViduWebRTCService.publishWebcamVideo(!0),this.isVideoActive=!0,[2];case 3:return this.openViduWebRTCService.publishWebcamVideo(!1),this.isVideoActive=!1,[2]}})})},e.prototype.onMicrophoneSelected=function(e){return oA(this,void 0,void 0,function(){var t,n;return aA(this,function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateAudioTrack(t)?(console.log(this.camSelected),n=this.oVDevicesService.cameraNeedsMirror(this.camSelected.device),[4,this.openViduWebRTCService.replaceTrack(null,t,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setMicSelected(t),this.micSelected=this.oVDevicesService.getMicSelected(),i.label=2;case 2:return this.publishAudio(!0),this.isAudioActive=!0,[2];case 3:return this.publishAudio(!1),this.isAudioActive=!1,[2]}})})},e.prototype.toggleCam=function(){this.isVideoActive=!this.isVideoActive,this.openViduWebRTCService.publishWebcamVideo(this.isVideoActive),this.localUsersService.areBothConnected()?(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.publishScreenAudio(this.isAudioActive)):this.localUsersService.isOnlyScreenConnected()&&this.localUsersService.enableWebcamUser()},e.prototype.toggleScreenShare=function(){var e=this;if(this.localUsersService.areBothConnected())this.localUsersService.disableScreenUser();else{if(this.localUsersService.isOnlyWebcamConnected()){var t=this.initScreenPublisher();return t.on("accessAllowed",function(n){t.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",function(){e.log.d("Clicked native stop button. Stopping screen sharing"),e.toggleScreenShare()}),e.localUsersService.enableScreenUser(t),e.localUsersService.hasWebcamVideoActive()||e.localUsersService.disableWebcamUser()}),void t.on("accessDenied",function(t){e.log.w("ScreenShare: Access Denied")})}this.localUsersService.enableWebcamUser(),this.localUsersService.disableScreenUser()}},e.prototype.toggleMic=function(){this.isAudioActive=!this.isAudioActive,this.publishAudio(this.isAudioActive)},e.prototype.captureAvatar=function(){this.capturedAvatar=this.avatarService.createCapture()},e.prototype.initNicknameAndSubscribeToChanges=function(){var e=this;if(this.externalConfig)return this.nicknameFormControl.setValue(this.externalConfig.getNickname()),void this.localUsersService.updateUsersNickname(this.externalConfig.getNickname());var t=this.storageSrv.get(PI.USER_NICKNAME)||this.utilsSrv.generateNickname();this.nicknameFormControl.setValue(t),this.localUsersService.updateUsersNickname(t),this.nicknameFormControl.valueChanges.subscribe(function(t){e.localUsersService.updateUsersNickname(t),e.storageSrv.set(PI.USER_NICKNAME,t)})},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&this.joinSession()},e.prototype.onResize=function(e){this.columns=e.target.innerWidth>900?2:1},e.prototype.joinSession=function(){if(this.nicknameFormControl.valid)return this.avatarService.setFinalAvatar(this.avatarSelected),this.join.emit();this.scrollToBottom()},e.prototype.close=function(){this.leaveSession.emit(),this.showConfigCard=!1},e.prototype.onSelectAvatar=function(e){this.avatarSelected=e},e.prototype.setDevicesInfo=function(){this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.microphones=this.oVDevicesService.getMicrophones(),this.cameras=this.oVDevicesService.getCameras(),this.camSelected=this.oVDevicesService.getCamSelected(),this.micSelected=this.oVDevicesService.getMicSelected()},e.prototype.setSessionName=function(){var e=this;this.route.params.subscribe(function(t){e.mySessionId=e.externalConfig?e.externalConfig.getSessionName():t.roomName,e.tokenService.setSessionId(e.mySessionId)})},e.prototype.scrollToBottom=function(){try{this.bodyCard.nativeElement.scrollTop=this.bodyCard.nativeElement.scrollHeight}catch(e){}},e.prototype.initScreenPublisher=function(){var e=nI.SCREEN,t=this.hasAudioDevices?void 0:null,n=this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,!n&&this.hasAudioDevices&&this.isAudioActive,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.publishAudio=function(e){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(e):this.openViduWebRTCService.publishScreenAudio(e)},e.prototype.subscribeToLocalUsersEvents=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe(function(t){e.localUsers=t}),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe(function(t){e.screenShareEnabled=t})},e.prototype.initwebcamPublisher=function(){var e,t;return oA(this,void 0,void 0,function(){var n,i,r,o;return aA(this,function(a){switch(a.label){case 0:return n=(null===(e=this.micSelected)||void 0===e?void 0:e.device)||void 0,i=(null===(t=this.camSelected)||void 0===t?void 0:t.device)||void 0,r=this.openViduWebRTCService.createPublisherProperties(!!this.hasVideoDevices&&i,!!this.hasAudioDevices&&n,!!this.hasVideoDevices&&this.isVideoActive,!!this.hasAudioDevices&&this.isAudioActive,this.camSelected&&this.camSelected.type===II.FRONT),[4,this.openViduWebRTCService.initPublisherAsync(void 0,r)];case 1:return o=a.sent(),this.localUsersService.setWebcamPublisher(o),this.handlePublisherSuccess(o),this.handlePublisherError(o),[2]}})})},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.handlePublisherSuccess=function(e){var t=this;e.once("accessAllowed",function(){return oA(t,void 0,void 0,function(){var t,n,i,r,o,a,s,u;return aA(this,function(c){switch(c.label){case 0:return this.oVDevicesService.areEmptyLabels()?[4,this.oVDevicesService.initDevices()]:[3,2];case 1:c.sent(),this.hasAudioDevices&&(t=null===(o=null===(r=null===(i=null==e?void 0:e.stream)||void 0===i?void 0:i.getMediaStream())||void 0===r?void 0:r.getAudioTracks()[0])||void 0===o?void 0:o.label,this.oVDevicesService.setMicSelected(t)),this.hasVideoDevices&&(n=null===(u=null===(s=null===(a=null==e?void 0:e.stream)||void 0===a?void 0:a.getMediaStream())||void 0===s?void 0:s.getVideoTracks()[0])||void 0===u?void 0:u.label,this.oVDevicesService.setCamSelected(n)),this.setDevicesInfo(),c.label=2;case 2:return this.emitPublisher(e),this.ovSettings.isAutoPublish()?(this.joinSession(),[2]):(this.showConfigCard=!0,[2])}})})})},e.prototype.handlePublisherError=function(e){var t=this;e.once("accessDenied",function(e){var n;if(e.name===GI.OpenViduErrorName.DEVICE_ALREADY_IN_USE)return t.log.w("Video device already in use. Disabling video device..."),t.hasVideoDevices=!1,t.oVDevicesService.disableVideoDevices(),t.initwebcamPublisher();e.name===GI.OpenViduErrorName.DEVICE_ACCESS_DENIED?n="Access to media devices was not allowed.":e.name===GI.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(n="No video or audio devices have been found. Please, connect at least one."),t.utilsSrv.showErrorMessage(e.name.replace(/_/g," "),n,!0),t.log.e(e.message)})},e.\u0275fac=function(t){return new(t||e)(cs(JT),cs(lI),cs(_I),cs(dI),cs(WI),cs(NI),cs(rI),cs(AI),cs(pI))},e.\u0275cmp=ht({type:e,selectors:[["app-room-config"]],viewQuery:function(e,t){var n;1&e&&Wc(sA,1),2&e&&zc(n=Gc())&&(t.bodyCard=n.first)},hostBindings:function(e,t){1&e&&ks("beforeunload",function(){return t.beforeunloadHandler()},!1,Fr)},inputs:{externalConfig:"externalConfig",ovSettings:"ovSettings"},outputs:{join:"join",leaveSession:"leaveSession",publisherCreated:"publisherCreated"},decls:3,vars:6,consts:[["id","roomConfig",3,"ngStyle"],["class","modal",4,"ngIf"],[1,"modal"],[1,"modal-dialog","modal-xl"],[1,"modal-content","cardContainer"],[1,"modal-header","cardHeader"],[1,"headerLogo"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo_grey.png"],[1,"headerTitle"],["mat-mini-fab","","id","closeButton",1,"closeButton",3,"click"],["color","warn","matTooltip","Close"],[1,"modal-body"],["bodyCard",""],[1,"row","align-items-center"],[1,"col-sm-6","col-md-6","col-lg-6","leftSection"],[1,"videoContainer"],[4,"ngFor","ngForOf"],["class","avatarButton",4,"ngIf"],[1,"col-sm-6","col-md-6","col-lg-6","rightSection"],["class","avatarContainer",4,"ngIf"],["fxLayout","row","fxFill","","id","avatarSection",4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection"],["fxLayout","","fxFlex",""],["fxFlex","20","fxLayoutAlign","center center",1,"one"],["mat-mini-fab","",1,"deviceButton"],["matTooltip","Nickname"],["fxFlex","80","fxLayoutAlign","center center",1,"two"],["id","nicknameForm",1,"alternate-theme"],["matInput","","placeholder","Nickname","autocomplete","off",3,"formControl","errorStateMatcher","keypress"],[4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection",4,"ngIf"],[1,"modal-footer",2,"justify-content","center"],["mat-flat-button","","color","accent","form","nicknameForm","id","joinButton",3,"click"],[3,"streamManager","className",4,"ngIf"],["class","cameraMessageContainer",4,"ngIf"],[3,"streamManager","className"],[1,"cameraMessageContainer"],[1,"avatarButton"],["mat-stroked-button","",3,"click"],["matTooltip","Take Photo"],[2,"margin-left","5px"],[1,"avatarContainer"],["fxLayout","row","fxFill","","id","avatarSection"],["fxFlex","100","fxLayoutAlign","center center",1,""],["id","avatarContainer",3,"click"],["id","imgText",4,"ngIf"],["id","avatarImg",3,"src",4,"ngIf"],["id","imgText"],["id","avatarImg",3,"src"],["mat-mini-fab","","id","configCardMicrophoneButton",1,"deviceButton",3,"click"],["matTooltip","Microphone Enabled",4,"ngIf"],["color","warn","matTooltip","Microphone Disabled",4,"ngIf"],[1,"alternate-theme"],["placeholder","Microphone Options",3,"ngModel","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltip","Microphone Enabled"],["color","warn","matTooltip","Microphone Disabled"],[3,"value"],["mat-mini-fab","","id","configCardCameraButton",1,"deviceButton",3,"click"],["matTooltip","Camera Enabled",4,"ngIf"],["color","warn","matTooltip","Camera Disabled",4,"ngIf"],["placeholder","Camera Options",3,"ngModel","selectionChange"],["matTooltip","Camera Enabled"],["color","warn","matTooltip","Camera Disabled"],["mat-mini-fab","","id","configCardScreenButton",1,"deviceButton",3,"click"],["matTooltip","Screen Share Enabled",4,"ngIf"],["color","warn","matTooltip","Screen Share Disabled",4,"ngIf"],["matInput","","disabled","","placeholder","Screen",3,"ngModel"],["matTooltip","Screen Share Enabled"],["color","warn","matTooltip","Screen Share Disabled"]],template:function(e,t){1&e&&(ds(0,"div",0),Tc(1,"isAutoPublish"),ss(2,RA,42,18,"div",1),fs()),2&e&&(ls("ngStyle",Ec(4,DA,Mc(1,2,t.ovSettings)?"none":"block")),Ao(2),ls("ngIf",t.showConfigCard))},directives:[Ih,yO,Ch,pb,pS,qC,wh,IO,dx,KO,yx,Uf,Jd,Vf,dw,SS,Td,Kd,Hf,QI,ew,GS,Bf,ib],pipes:[XI,KI,JI,$I],styles:[".cardHeader[_ngcontent-%COMP%]{background-color:#ccc;border-radius:14px 14px 0 0;text-align:center;height:50px}.headerLogo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:inherit}.headerTitle[_ngcontent-%COMP%]{font-size:large;margin:auto}.videoContainer[_ngcontent-%COMP%]{width:100%;height:calc(100% - 50px);text-align:center;margin:auto}.avatarButton[_ngcontent-%COMP%]{text-align:center;margin-top:10px}.videoContainer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline}.ovVideoSmall[_ngcontent-%COMP%]{position:absolute;width:30%;left:15px;bottom:46px}.cameraMessageContainer[_ngcontent-%COMP%]{height:100%;width:100%;text-align:center;border:2px solid;font-size:large;display:table}.cameraMessageContainer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.deviceButton[_ngcontent-%COMP%]{box-shadow:none;background-color:#f5f5f5}.rightSection[_ngcontent-%COMP%]{padding-left:0!important;text-align:center}.avatarContainer[_ngcontent-%COMP%]{background-color:#f5f5f5;height:40px;text-align:center;display:flex}.avatarContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:auto}.closeButton[_ngcontent-%COMP%]{position:absolute;top:5px;right:7px;box-shadow:none;background-color:transparent}#roomConfig[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%}#header_img[_ngcontent-%COMP%]{max-width:150px}#sessionInfo[_ngcontent-%COMP%]{margin-top:0}#joinButton[_ngcontent-%COMP%]{margin:15px;width:80%}#photoButton[_ngcontent-%COMP%]{margin:10px;text-align:center}#avatarContainer[_ngcontent-%COMP%]{border:1px solid #b6b6b6;width:100px;height:100px;margin:10px;position:relative;cursor:pointer;display:inline-block}#devicesSection[_ngcontent-%COMP%]{margin:15px 0}#avatarSection[_ngcontent-%COMP%], #devicesSection[_ngcontent-%COMP%]{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;min-height:auto!important}#imgText[_ngcontent-%COMP%]{display:table}#avatarImg[_ngcontent-%COMP%], #imgText[_ngcontent-%COMP%]{text-align:center;position:absolute;margin:auto;top:25%;left:0;right:0;bottom:25%}#avatarImg[_ngcontent-%COMP%]{height:83%;width:83%}#avatarContainer[_ngcontent-%COMP%], #avatarImg[_ngcontent-%COMP%]{border-radius:25%}#optionsContent[_ngcontent-%COMP%]{position:static}#nicknameForm[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{max-width:85%!important;position:absolute;top:0;bottom:0;left:0;right:0;max-height:90%;margin:auto;padding:20px;overflow:auto;border:2px solid #fff;border-right-width:4px}@media only screen and (max-width:959px){mat-card[_ngcontent-%COMP%]{max-width:80%!important;max-height:80%!important}} .mat-option-text{color:#000!important} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b8afaf;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:4px}\n\n\n*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}.container[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container[_ngcontent-%COMP%]{width:750px}}@media (min-width:992px){.container[_ngcontent-%COMP%]{width:970px}}@media (min-width:1200px){.container[_ngcontent-%COMP%]{width:1170px}}.container-fluid[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row[_ngcontent-%COMP%]{margin-right:-15px;margin-left:-15px}.row-no-gutters[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.row-no-gutters[_ngcontent-%COMP%] [class*=col-][_ngcontent-%COMP%]{padding-right:0;padding-left:0}.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{float:left}.col-xs-12[_ngcontent-%COMP%]{width:100%}.col-xs-11[_ngcontent-%COMP%]{width:91.66666667%}.col-xs-10[_ngcontent-%COMP%]{width:83.33333333%}.col-xs-9[_ngcontent-%COMP%]{width:75%}.col-xs-8[_ngcontent-%COMP%]{width:66.66666667%}.col-xs-7[_ngcontent-%COMP%]{width:58.33333333%}.col-xs-6[_ngcontent-%COMP%]{width:50%}.col-xs-5[_ngcontent-%COMP%]{width:41.66666667%}.col-xs-4[_ngcontent-%COMP%]{width:33.33333333%}.col-xs-3[_ngcontent-%COMP%]{width:25%}.col-xs-2[_ngcontent-%COMP%]{width:16.66666667%}.col-xs-1[_ngcontent-%COMP%]{width:8.33333333%}.col-xs-pull-12[_ngcontent-%COMP%]{right:100%}.col-xs-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-xs-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-xs-pull-9[_ngcontent-%COMP%]{right:75%}.col-xs-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-xs-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-xs-pull-6[_ngcontent-%COMP%]{right:50%}.col-xs-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-xs-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-xs-pull-3[_ngcontent-%COMP%]{right:25%}.col-xs-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-xs-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-xs-pull-0[_ngcontent-%COMP%]{right:auto}.col-xs-push-12[_ngcontent-%COMP%]{left:100%}.col-xs-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-xs-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-xs-push-9[_ngcontent-%COMP%]{left:75%}.col-xs-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-xs-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-xs-push-6[_ngcontent-%COMP%]{left:50%}.col-xs-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-xs-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-xs-push-3[_ngcontent-%COMP%]{left:25%}.col-xs-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-xs-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-xs-push-0[_ngcontent-%COMP%]{left:auto}.col-xs-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-xs-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-xs-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-xs-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-xs-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-xs-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-xs-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-xs-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-xs-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-xs-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-xs-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-xs-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-xs-offset-0[_ngcontent-%COMP%]{margin-left:0}@media (min-width:768px){.col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%]{float:left}.col-sm-12[_ngcontent-%COMP%]{width:100%}.col-sm-11[_ngcontent-%COMP%]{width:91.66666667%}.col-sm-10[_ngcontent-%COMP%]{width:83.33333333%}.col-sm-9[_ngcontent-%COMP%]{width:75%}.col-sm-8[_ngcontent-%COMP%]{width:66.66666667%}.col-sm-7[_ngcontent-%COMP%]{width:58.33333333%}.col-sm-6[_ngcontent-%COMP%]{width:50%}.col-sm-5[_ngcontent-%COMP%]{width:41.66666667%}.col-sm-4[_ngcontent-%COMP%]{width:33.33333333%}.col-sm-3[_ngcontent-%COMP%]{width:25%}.col-sm-2[_ngcontent-%COMP%]{width:16.66666667%}.col-sm-1[_ngcontent-%COMP%]{width:8.33333333%}.col-sm-pull-12[_ngcontent-%COMP%]{right:100%}.col-sm-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-sm-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-sm-pull-9[_ngcontent-%COMP%]{right:75%}.col-sm-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-sm-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-sm-pull-6[_ngcontent-%COMP%]{right:50%}.col-sm-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-sm-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-sm-pull-3[_ngcontent-%COMP%]{right:25%}.col-sm-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-sm-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-sm-pull-0[_ngcontent-%COMP%]{right:auto}.col-sm-push-12[_ngcontent-%COMP%]{left:100%}.col-sm-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-sm-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-sm-push-9[_ngcontent-%COMP%]{left:75%}.col-sm-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-sm-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-sm-push-6[_ngcontent-%COMP%]{left:50%}.col-sm-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-sm-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-sm-push-3[_ngcontent-%COMP%]{left:25%}.col-sm-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-sm-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-sm-push-0[_ngcontent-%COMP%]{left:auto}.col-sm-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-sm-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-sm-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-sm-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-sm-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-sm-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-sm-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-sm-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-sm-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-sm-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-sm-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-sm-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-sm-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width:992px){.col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%]{float:left}.col-md-12[_ngcontent-%COMP%]{width:100%}.col-md-11[_ngcontent-%COMP%]{width:91.66666667%}.col-md-10[_ngcontent-%COMP%]{width:83.33333333%}.col-md-9[_ngcontent-%COMP%]{width:75%}.col-md-8[_ngcontent-%COMP%]{width:66.66666667%}.col-md-7[_ngcontent-%COMP%]{width:58.33333333%}.col-md-6[_ngcontent-%COMP%]{width:50%}.col-md-5[_ngcontent-%COMP%]{width:41.66666667%}.col-md-4[_ngcontent-%COMP%]{width:33.33333333%}.col-md-3[_ngcontent-%COMP%]{width:25%}.col-md-2[_ngcontent-%COMP%]{width:16.66666667%}.col-md-1[_ngcontent-%COMP%]{width:8.33333333%}.col-md-pull-12[_ngcontent-%COMP%]{right:100%}.col-md-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-md-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-md-pull-9[_ngcontent-%COMP%]{right:75%}.col-md-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-md-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-md-pull-6[_ngcontent-%COMP%]{right:50%}.col-md-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-md-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-md-pull-3[_ngcontent-%COMP%]{right:25%}.col-md-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-md-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-md-pull-0[_ngcontent-%COMP%]{right:auto}.col-md-push-12[_ngcontent-%COMP%]{left:100%}.col-md-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-md-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-md-push-9[_ngcontent-%COMP%]{left:75%}.col-md-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-md-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-md-push-6[_ngcontent-%COMP%]{left:50%}.col-md-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-md-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-md-push-3[_ngcontent-%COMP%]{left:25%}.col-md-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-md-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-md-push-0[_ngcontent-%COMP%]{left:auto}.col-md-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-md-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-md-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-md-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-md-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-md-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-md-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-md-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-md-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-md-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-md-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-md-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-md-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width:1200px){.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%]{float:left}.col-lg-12[_ngcontent-%COMP%]{width:100%}.col-lg-11[_ngcontent-%COMP%]{width:91.66666667%}.col-lg-10[_ngcontent-%COMP%]{width:83.33333333%}.col-lg-9[_ngcontent-%COMP%]{width:75%}.col-lg-8[_ngcontent-%COMP%]{width:66.66666667%}.col-lg-7[_ngcontent-%COMP%]{width:58.33333333%}.col-lg-6[_ngcontent-%COMP%]{width:50%}.col-lg-5[_ngcontent-%COMP%]{width:41.66666667%}.col-lg-4[_ngcontent-%COMP%]{width:33.33333333%}.col-lg-3[_ngcontent-%COMP%]{width:25%}.col-lg-2[_ngcontent-%COMP%]{width:16.66666667%}.col-lg-1[_ngcontent-%COMP%]{width:8.33333333%}.col-lg-pull-12[_ngcontent-%COMP%]{right:100%}.col-lg-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-lg-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-lg-pull-9[_ngcontent-%COMP%]{right:75%}.col-lg-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-lg-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-lg-pull-6[_ngcontent-%COMP%]{right:50%}.col-lg-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-lg-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-lg-pull-3[_ngcontent-%COMP%]{right:25%}.col-lg-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-lg-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-lg-pull-0[_ngcontent-%COMP%]{right:auto}.col-lg-push-12[_ngcontent-%COMP%]{left:100%}.col-lg-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-lg-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-lg-push-9[_ngcontent-%COMP%]{left:75%}.col-lg-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-lg-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-lg-push-6[_ngcontent-%COMP%]{left:50%}.col-lg-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-lg-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-lg-push-3[_ngcontent-%COMP%]{left:25%}.col-lg-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-lg-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-lg-push-0[_ngcontent-%COMP%]{left:auto}.col-lg-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-lg-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-lg-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-lg-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-lg-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-lg-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-lg-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-lg-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-lg-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-lg-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-lg-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-lg-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-lg-offset-0[_ngcontent-%COMP%]{margin-left:0}}.modal[_ngcontent-%COMP%], .modal-open[_ngcontent-%COMP%]{overflow:hidden}.modal[_ngcontent-%COMP%]{top:0;right:0;bottom:0;left:0;z-index:1050;display:none;-webkit-overflow-scrolling:touch;outline:0;display:block;height:100%}.modal.fade[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translateY(-25%);transition:transform .3s ease-out}.modal.in[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translate(0)}.modal-open[_ngcontent-%COMP%] .modal[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}.modal-dialog[_ngcontent-%COMP%]{width:auto;margin:30px;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0;border-radius:15px}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade[_ngcontent-%COMP%]{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in[_ngcontent-%COMP%]{filter:alpha(opacity=50);opacity:.5}.modal-header[_ngcontent-%COMP%]{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-top:-2px}.modal-title[_ngcontent-%COMP%]{margin:0;line-height:1.42857143}.modal-body[_ngcontent-%COMP%]{position:relative;padding:15px}.modal-footer[_ngcontent-%COMP%]{padding:1px;text-align:center;border-top:1px solid #e5e5e5}.modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-bottom:0;margin-left:5px}.modal-footer[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:-1px}.modal-footer[_ngcontent-%COMP%] .btn-block[_ngcontent-%COMP%] + .btn-block[_ngcontent-%COMP%]{margin-left:0}.modal-scrollbar-measure[_ngcontent-%COMP%]{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (max-width:600px){.headerTitle[_ngcontent-%COMP%]{display:none}.headerLogo[_ngcontent-%COMP%]{right:0}}@media (max-width:767px){.row[_ngcontent-%COMP%]{height:100%}.leftSection[_ngcontent-%COMP%]{height:60%}.rightSection[_ngcontent-%COMP%]{padding-right:0!important}.headerTitle[_ngcontent-%COMP%]{font-size:medium}.modal-content[_ngcontent-%COMP%]{max-height:100%;height:100%}.modal-dialog[_ngcontent-%COMP%]{height:calc(100% - 10px);margin:5px;padding:0;position:relative;top:0;left:0;transform:none}.modal-body[_ngcontent-%COMP%]{padding:10px 20px;overflow:auto;height:calc(100% - 120px);overflow:-moz-scrollbars-vertical;overflow-x:hidden;overflow-y:scroll}.modal[_ngcontent-%COMP%]{max-height:100%}.videoContainer[_ngcontent-%COMP%]{width:90%}}@media (min-width:768px){.ovVideoSmall[_ngcontent-%COMP%]{width:40%}.row[_ngcontent-%COMP%]{display:flex!important}.modal-dialog[_ngcontent-%COMP%]{width:90%;margin:55px auto}.modal-content[_ngcontent-%COMP%]{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm[_ngcontent-%COMP%]{width:300px}}@media (min-width:992px){.modal-lg[_ngcontent-%COMP%]{width:75%}}@media (min-width:1440px){.modal-xl[_ngcontent-%COMP%]{width:75%}}"]}),e}(),LA=function(e){return e.BIG="zoom_in",e.NORMAL="zoom_out",e}({}),VA=function(e){return e.BIG="fullscreen",e.NORMAL="fullscreen_exit",e}({}),jA=function(e,t){return{titleContent:!0,titleContentLight:e,titleContentDark:t}};function FA(e,t){if(1&e&&(ds(0,"div",3),ds(1,"span",4),Xs(2),fs(),fs()),2&e){var n=xs();ls("ngClass",(i=2,r=jA,o=n.lightTheme,a=!n.lightTheme,function(e,t,n,i,r,o,a){var s=t+n;return function(e,t,n,i){var r=rs(e,t,n);return rs(e,t+1,i)||r}(e,s,r,o)?is(e,s+2,a?i.call(a,r,o):i(r,o)):Oc(e,s+2)}(on(),vn(),i,r,o,a,s))),Ao(2),$s(n.sessionId)}var i,r,o,a,s}var BA=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-toolbar-logo"]],inputs:{lightTheme:"lightTheme",compact:"compact",sessionId:"sessionId",logoUrl:"logoUrl"},decls:4,vars:2,consts:[["id","navSessionInfo"],["id","header_img","alt","OpenVidu Logo",3,"src"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["id","session-title"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"a"),ps(2,"img",1),fs(),ss(3,FA,3,5,"div",2),fs()),2&e&&(Ao(2),ls("src",t.logoUrl,Ir),Ao(1),ls("ngIf",!t.compact&&t.sessionId))},directives:[Ch,_h,lO],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width:600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}();function UA(e,t){1&e&&(ds(0,"mat-icon",14),Xs(1,"mic"),fs())}function zA(e,t){1&e&&(ds(0,"mat-icon",15),Xs(1,"mic_off"),fs())}function WA(e,t){if(1&e){var n=gs();ds(0,"button",11),ks("click",function(){return sn(n),xs().toggleMicrophone()}),ss(1,UA,2,0,"mat-icon",12),ss(2,zA,2,0,"mat-icon",13),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(1),ls("ngIf",i.isWebcamAudioEnabled),Ao(1),ls("ngIf",!i.isWebcamAudioEnabled)}}function HA(e,t){1&e&&(ds(0,"mat-icon",19),Xs(1,"videocam"),fs())}function GA(e,t){1&e&&(ds(0,"mat-icon",20),Xs(1,"videocam_off"),fs())}function qA(e,t){if(1&e){var n=gs();ds(0,"button",16),ks("click",function(){return sn(n),xs().toggleCamera()}),ss(1,HA,2,0,"mat-icon",17),ss(2,GA,2,0,"mat-icon",18),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(1),ls("ngIf",i.isWebcamVideoEnabled),Ao(1),ls("ngIf",!i.isWebcamVideoEnabled)}}function ZA(e,t){1&e&&(ds(0,"mat-icon",24),Xs(1,"stop_screen_share"),fs())}function QA(e,t){1&e&&(ds(0,"mat-icon",25),Xs(1,"screen_share"),fs())}function YA(e,t){if(1&e){var n=gs();ds(0,"button",21),ks("click",function(){return sn(n),xs().toggleScreenShare()}),ss(1,ZA,2,0,"mat-icon",22),ss(2,QA,2,0,"mat-icon",23),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(1),ls("ngIf",!i.isScreenShareEnabled),Ao(1),ls("ngIf",i.isScreenShareEnabled)}}function KA(e,t){if(1&e){var n=gs();ds(0,"button",26),ks("click",function(){return sn(n),xs().toggleFullscreen()}),ds(1,"mat-icon",27),Xs(2),fs(),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(2),$s(i.fullscreenIcon)}}function JA(e,t){1&e&&(ds(0,"mat-icon",30),Xs(1,"voice_over_off"),fs())}function XA(e,t){1&e&&(ds(0,"mat-icon",31),Xs(1,"record_voice_over"),fs())}function $A(e,t){if(1&e){var n=gs();ds(0,"button",26),ks("click",function(){return sn(n),xs().toggleSpeakerLayout()}),ss(1,JA,2,0,"mat-icon",28),ss(2,XA,2,0,"mat-icon",29),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(1),ls("ngIf",!i.isAutoLayout),Ao(1),ls("ngIf",i.isAutoLayout)}}function eR(e,t){if(1&e){var n=gs();ds(0,"button",32),ks("click",function(){return sn(n),xs().leaveSession()}),ds(1,"mat-icon",33),Xs(2,"power_settings_new"),fs(),fs()}}function tR(e,t){if(1&e){var n=gs();ds(0,"button",26),ks("click",function(){return sn(n),xs().toggleChat()}),ds(1,"mat-icon",34),Xs(2,"chat"),fs(),fs()}if(2&e){var i=xs();ls("disabled",i.isConnectionLost),Ao(1),Is("matBadge",i.newMessagesNum),ls("matBadgeHidden",0===i.newMessagesNum)}}var nR,iR=function(){function e(e,t,n,i){this.utilsSrv=e,this.chatService=t,this.tokenService=n,this.localUsersService=i,this.micButtonClicked=new Pc,this.camButtonClicked=new Pc,this.screenShareClicked=new Pc,this.layoutButtonClicked=new Pc,this.leaveSessionButtonClicked=new Pc,this.fullscreenIcon=VA.BIG,this.logoUrl="assets/images/openvidu_logo.png",this.participantsNames=[]}return e.prototype.ngOnDestroy=function(){this.chatServiceSubscription&&this.chatServiceSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.webcamVideoStateSubscription&&this.webcamVideoStateSubscription.unsubscribe()},e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.fullscreenIcon=VA.BIG)},e.prototype.ngOnInit=function(){var e=this;this.mySessionId=this.tokenService.getSessionId(),this.chatServiceSubscription=this.chatService.messagesUnreadObs.subscribe(function(t){e.newMessagesNum=t}),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe(function(t){e.isScreenShareEnabled=t}),this.webcamVideoStateSubscription=this.localUsersService.webcamVideoActive.subscribe(function(t){e.isWebcamVideoEnabled=t}),this.lightTheme&&(this.logoUrl="assets/images/openvidu_logo_grey.png")},e.prototype.toggleMicrophone=function(){this.micButtonClicked.emit()},e.prototype.toggleCamera=function(){this.camButtonClicked.emit()},e.prototype.toggleScreenShare=function(){this.screenShareClicked.emit()},e.prototype.toggleSpeakerLayout=function(){this.layoutButtonClicked.emit()},e.prototype.leaveSession=function(){this.leaveSessionButtonClicked.emit()},e.prototype.toggleChat=function(){this.chatService.toggleChat()},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("videoRoomNavBar"),this.fullscreenIcon=this.fullscreenIcon===VA.BIG?VA.NORMAL:VA.BIG},e.\u0275fac=function(t){return new(t||e)(cs(lI),cs(kI),cs(WI),cs(dI))},e.\u0275cmp=ht({type:e,selectors:[["app-toolbar"]],hostBindings:function(e,t){1&e&&ks("resize",function(e){return t.sizeChange(e)},!1,Fr)},inputs:{lightTheme:"lightTheme",compact:"compact",showNotification:"showNotification",ovSettings:"ovSettings",isWebcamAudioEnabled:"isWebcamAudioEnabled",isAutoLayout:"isAutoLayout",isConnectionLost:"isConnectionLost",hasVideoDevices:"hasVideoDevices",hasAudioDevices:"hasAudioDevices"},outputs:{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",layoutButtonClicked:"layoutButtonClicked",leaveSessionButtonClicked:"leaveSessionButtonClicked"},decls:20,vars:27,consts:[["id","header","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","10px",1,"container"],["fxFlex","20%"],[3,"lightTheme","sessionId","compact","logoUrl"],["fxFlex","70%","fxFlexOrder","2"],["align","center",1,"buttonsContainer"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navCameraButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navScreenButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","","id","navLeaveButton",3,"click",4,"ngIf"],["fxFlex","10%","fxFlexOrder","3","align","end"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your audio",4,"ngIf"],["color","warn","matTooltip","Unmute your audio",4,"ngIf"],["matTooltip","Mute your audio"],["color","warn","matTooltip","Unmute your audio"],["id","navCameraButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your cam",4,"ngIf"],["color","warn","matTooltip","Unmute your cam",4,"ngIf"],["matTooltip","Mute your cam"],["color","warn","matTooltip","Unmute your cam"],["id","navScreenButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Screen share","color","warn",4,"ngIf"],["matTooltip","Stop sharing",4,"ngIf"],["matTooltip","Screen share","color","warn"],["matTooltip","Stop sharing"],["mat-icon-button","",3,"disabled","click"],["matTooltip","Fullscreen"],["matTooltip","Enable speaker layout","color","warn",4,"ngIf"],["matTooltip","Disable speaker layout",4,"ngIf"],["matTooltip","Enable speaker layout","color","warn"],["matTooltip","Disable speaker layout"],["mat-icon-button","","id","navLeaveButton",3,"click"],["color","warn","matTooltip","Leave the session"],["matBadgePosition","above before","matTooltip","Chat","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,t){1&e&&(ds(0,"mat-toolbar",0),ds(1,"div",1),ps(2,"app-toolbar-logo",2),fs(),ds(3,"div",3),ds(4,"div",4),ss(5,WA,3,3,"button",5),Tc(6,"hasAudio"),ss(7,qA,3,3,"button",6),Tc(8,"hasVideo"),ss(9,YA,3,3,"button",7),Tc(10,"hasScreenSharing"),ss(11,KA,3,2,"button",8),Tc(12,"hasFullscreen"),ss(13,$A,3,3,"button",8),Tc(14,"hasLayoutSpeaking"),ss(15,eR,3,0,"button",9),Tc(16,"hasExit"),fs(),fs(),ds(17,"div",10),ss(18,tR,3,3,"button",8),Tc(19,"hasChat"),fs(),fs()),2&e&&(Us("headerLight",t.lightTheme),Ao(2),ls("lightTheme",t.lightTheme)("sessionId",t.mySessionId)("compact",t.compact)("logoUrl",t.logoUrl),Ao(3),ls("ngIf",t.hasAudioDevices&&Mc(6,13,t.ovSettings)),Ao(2),ls("ngIf",!t.ovSettings||t.hasVideoDevices&&Mc(8,15,t.ovSettings)),Ao(2),ls("ngIf",Mc(10,17,t.ovSettings)),Ao(2),ls("ngIf",Mc(12,19,t.ovSettings)),Ao(2),ls("ngIf",Mc(14,21,t.ovSettings)),Ao(2),ls("ngIf",Mc(16,23,t.ovSettings)),Ao(3),ls("ngIf",Mc(19,25,t.ovSettings)))},directives:[CC,IO,yx,jO,KO,BA,sx,Ch,pb,pS,qC,ub],pipes:[KI,JI,$I,eA,tA,nA,YI],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width:600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}(),rR=(nR=function(e,t){return(nR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}nR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.containerSelector=".sidenav-main",t.customClass="cdk-overlay-container",t}return rR(t,e),t.prototype._createContainer=function(){var e=document.createElement("div");e.classList.add(this.customClass);var t=this.getElement(this.containerSelector);t||(t=this.getElement("body")),this._containerElement=t.appendChild(e)},t.prototype.setSelector=function(e){var t=this.getElement("."+this.customClass);if(t&&this.containerSelector!==e){var n=this.getElement(e);this.containerSelector=e,null==n||n.appendChild(t)}},t.prototype.getElement=function(e){return document.querySelector(e)},t.\u0275prov=Re({token:t,factory:t.\u0275fac=function(e){return aR(e||t)}}),t}(T_),aR=gi(oR),sR=function(){function e(e){this.cdkOverlayModel=e}return e.prototype.setSelector=function(e){this.cdkOverlayModel.setSelector(e)},e.\u0275prov=Re({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Fi(oR))},providedIn:"root"}),e}(),uR=["streamComponent"],cR=["menu"],lR=["nicknameInput"];function hR(e,t){1&e&&(ds(0,"span"),Xs(1," (edit)"),fs())}function dR(e,t){if(1&e){var n=gs();ds(0,"div",10),ks("click",function(){return sn(n),xs(2).toggleNicknameForm()}),ds(1,"span",11),Xs(2),fs(),ss(3,hR,2,0,"span",12),fs()}if(2&e){var i=xs(2);Ao(2),$s(i._user.nickname),Ao(1),ls("ngIf",i._user.local||i._user.streamManager&&!(null!=i._user.streamManager&&i._user.streamManager.remote))}}function fR(e,t){1&e&&(ds(0,"mat-error"),Xs(1," Nickname is "),ds(2,"strong"),Xs(3,"required"),fs(),fs())}function pR(e,t){1&e&&(ds(0,"mat-error"),Xs(1," Nickname is "),ds(2,"strong"),Xs(3,"too long!"),fs(),fs())}function vR(e,t){if(1&e){var n=gs();ds(0,"div",13),ds(1,"button",14),ks("click",function(){return sn(n),xs(2).toggleNicknameForm()}),ds(2,"mat-icon",15),Xs(3,"highlight_off"),fs(),fs(),ds(4,"form",16),ds(5,"mat-form-field",17),ds(6,"input",18,19),ks("keypress",function(e){return sn(n),xs(2).eventKeyPress(e)}),fs(),ss(8,fR,4,0,"mat-error",12),ss(9,pR,4,0,"mat-error",12),fs(),fs(),fs()}if(2&e){var i=xs(2);Us("fullscreen",i.isFullscreen),Ao(6),As("placeholder","Nick: ",i._user.nickname,""),ls("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Ao(2),ls("ngIf",i.nicknameFormControl.hasError("required")),Ao(1),ls("ngIf",i.nicknameFormControl.hasError("maxlength"))}}function mR(e,t){1&e&&(ds(0,"div",20),ds(1,"mat-icon"),Xs(2,"mic_off"),fs(),fs())}function gR(e,t){1&e&&(ds(0,"span"),Xs(1,"Zoom out"),fs())}function yR(e,t){1&e&&(ds(0,"span"),Xs(1,"Zoom in"),fs())}function bR(e,t){if(1&e){var n=gs();ds(0,"button",30),ks("click",function(){return sn(n),xs(3).toggleVideoSize()}),ds(1,"mat-icon"),Xs(2),fs(),ss(3,gR,2,0,"span",12),ss(4,yR,2,0,"span",12),fs()}if(2&e){var i=xs(3);Ao(2),$s(i.videoSizeIcon),Ao(1),ls("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),Ao(1),ls("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG)}}function _R(e,t){1&e&&(ds(0,"mat-icon"),Xs(1,"volume_up"),fs())}function kR(e,t){1&e&&(ds(0,"span"),Xs(1,"Mute sound"),fs())}function wR(e,t){1&e&&(ds(0,"mat-icon"),Xs(1,"volume_off"),fs())}function SR(e,t){1&e&&(ds(0,"span"),Xs(1,"Unmute sound"),fs())}function CR(e,t){if(1&e){var n=gs();ds(0,"button",31),ks("click",function(){return sn(n),xs(3).toggleSound()}),ss(1,_R,2,0,"mat-icon",12),ss(2,kR,2,0,"span",12),ss(3,wR,2,0,"mat-icon",12),ss(4,SR,2,0,"span",12),fs()}if(2&e){var i=xs(3);Ao(1),ls("ngIf",!i.mutedSound),Ao(1),ls("ngIf",!i.mutedSound),Ao(1),ls("ngIf",i.mutedSound),Ao(1),ls("ngIf",i.mutedSound)}}function ER(e,t){1&e&&(ds(0,"span"),Xs(1,"Exit fullscreen"),fs())}function OR(e,t){1&e&&(ds(0,"span"),Xs(1,"Go to fullscreen"),fs())}function xR(e,t){if(1&e){var n=gs();ds(0,"button",32),ks("click",function(){return sn(n),xs(3).toggleFullscreen()}),ds(1,"mat-icon"),Xs(2),fs(),ss(3,ER,2,0,"span",12),ss(4,OR,2,0,"span",12),fs()}if(2&e){var i=xs(3);Ao(2),$s(i.fullscreenIcon),Ao(1),ls("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.NORMAL),Ao(1),ls("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.BIG)}}function TR(e,t){if(1&e){var n=gs();ds(0,"button",33),ks("click",function(){return sn(n),xs(3).replaceScreenTrack()}),ds(1,"mat-icon"),Xs(2,"picture_in_picture"),fs(),ds(3,"span"),Xs(4,"Replace screen"),fs(),fs()}}function MR(e,t){if(1&e){var n=gs();ds(0,"div",21),ds(1,"button",22),ks("click",function(e){return sn(n),xs(2).toggleVideoMenu(e)}),ds(2,"mat-icon"),Xs(3,"more_vert"),fs(),fs(),ps(4,"span",23),ds(5,"mat-menu",24,25),ss(7,bR,5,3,"button",26),ss(8,CR,5,4,"button",27),ss(9,xR,5,3,"button",28),ss(10,TR,5,0,"button",29),fs(),fs()}if(2&e){var i=us(6),r=xs(2);Ao(4),ls("matMenuTriggerFor",i),Ao(3),ls("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Ao(1),ls("ngIf",null==r._user.streamManager?null:r._user.streamManager.remote),Ao(1),ls("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Ao(1),ls("ngIf",!(null!=r._user.streamManager&&r._user.streamManager.remote)&&(null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.typeOfVideo)===r.videoTypeEnum.SCREEN)}}function PR(e,t){if(1&e){var n=gs();ds(0,"div",1,2),ks("dblclick",function(){return sn(n),xs().toggleVideoSize()}),ds(2,"div",3),ss(3,dR,4,2,"div",4),ss(4,vR,10,7,"div",5),fs(),ds(5,"ov-video",6),ks("toggleVideoSizeEvent",function(e){return sn(n),xs().toggleVideoSize(e)}),fs(),ds(6,"div",7),ss(7,mR,3,0,"div",8),fs(),ss(8,MR,11,5,"div",9),fs()}if(2&e){var i=xs();ls("id","container-"+(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.streamId)),Ao(2),Us("fullscreen",i.isFullscreen),Ao(1),ls("ngIf",!i.toggleNickname),Ao(1),ls("ngIf",i.toggleNickname&&!(null!=i._user.streamManager&&i._user.streamManager.remote)),Ao(1),ls("streamManager",i._user.streamManager)("mutedSound",i.mutedSound),Ao(2),ls("ngIf",!(null!=i._user.streamManager&&null!=i._user.streamManager.stream&&i._user.streamManager.stream.audioActive)),Ao(1),ls("ngIf",i._user.local&&(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||!i._user.local&&((null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.audioActive)))}}var IR=function(){function e(e,t){this.utilsSrv=e,this.cdkSrv=t,this.videoSizeIconEnum=LA,this.videoFullscreenIconEnum=VA,this.videoTypeEnum=tI,this.videoSizeIcon=LA.BIG,this.fullscreenIcon=VA.BIG,this.nicknameClicked=new Pc,this.replaceScreenTrackClicked=new Pc,this.toggleVideoSizeClicked=new Pc}return e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.isFullscreen=!1,this.videoSizeIcon=LA.BIG)},Object.defineProperty(e.prototype,"videoSizeBig",{set:function(e){this.checkVideoSizeBigIcon(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{set:function(e){this._user=e,this.nicknameFormControl=new Af(this._user.getNickname(),[Dd.maxLength(25),Dd.required])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nicknameInputElement",{set:function(e){setTimeout(function(){null==e||e.nativeElement.focus()})},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.matcher=new HI},e.prototype.ngOnDestroy=function(){this.cdkSrv.setSelector("body")},e.prototype.toggleVideoSize=function(e){var t=this.utilsSrv.getHTMLElementByClassName(this.streamComponent.element.nativeElement,aI.ROOT_CLASS);this.toggleVideoSizeClicked.emit({element:t,connectionId:this._user.getConnectionId(),resetAll:e})},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("container-"+this._user.getStreamManager().stream.streamId),this.toggleFullscreenIcon()},e.prototype.toggleVideoMenu=function(e){var t,n;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(n=null===(t=this._user.streamManager)||void 0===t?void 0:t.stream)||void 0===n?void 0:n.streamId)),this.menuTrigger.openMenu())},e.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},e.prototype.toggleNicknameForm=function(){this._user.isLocal()&&(this.toggleNickname=!this.toggleNickname)},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm())},e.prototype.replaceScreenTrack=function(){this.replaceScreenTrackClicked.emit()},e.prototype.checkVideoSizeBigIcon=function(e){this.videoSizeIcon=e?LA.NORMAL:LA.BIG},e.prototype.toggleFullscreenIcon=function(){this.fullscreenIcon=this.fullscreenIcon===VA.BIG?VA.NORMAL:VA.BIG},e.\u0275fac=function(t){return new(t||e)(cs(lI),cs(sR))},e.\u0275cmp=ht({type:e,selectors:[["stream-component"]],viewQuery:function(e,t){if(1&e&&(Wc(uR,1,hc),Wc(Ak,1),Wc(cR,1),Wc(lR,1)),2&e){var n=void 0;zc(n=Gc())&&(t.streamComponent=n.first),zc(n=Gc())&&(t.menuTrigger=n.first),zc(n=Gc())&&(t.menu=n.first),zc(n=Gc())&&(t.nicknameInputElement=n.first)}},hostBindings:function(e,t){1&e&&ks("resize",function(e){return t.sizeChange(e)},!1,Fr)},inputs:{videoSizeBig:"videoSizeBig",user:"user"},outputs:{nicknameClicked:"nicknameClicked",replaceScreenTrackClicked:"replaceScreenTrackClicked",toggleVideoSizeClicked:"toggleVideoSizeClicked"},decls:1,vars:1,consts:[["class","OT_widget-container",3,"id","dblclick",4,"ngIf"],[1,"OT_widget-container",3,"id","dblclick"],["streamComponent",""],[1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","dialogNickname",3,"fullscreen",4,"ngIf"],[3,"streamManager","mutedSound","toggleVideoSizeEvent"],[1,"statusIcons"],["id","statusMic",4,"ngIf"],["class","videoButtons",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname"],[4,"ngIf"],["id","dialogNickname"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close"],["id","nicknameForm"],["color","primary"],["matInput","","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","keypress"],["nicknameInput",""],["id","statusMic"],[1,"videoButtons"],["mat-icon-button","","matTooltip","Settings","aria-label","Video settings menu",3,"click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","fullscreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","videoZoomButton",3,"click"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","fullscreenButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,t){1&e&&ss(0,PR,9,9,"div",0),2&e&&ls("ngIf",t._user)},directives:[Ch,QI,pb,pS,qC,Uf,Jd,Vf,dw,SS,Td,Kd,Hf,ew,Ak,Tk,Ck],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3686274509803922);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),AR=function(){function e(){}return e.prototype.transform=function(e){var t="";return e.forEach(function(e){t+="\u2022 "+e+"\n"}),t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=yt({name:"tooltipList",type:e,pure:!0}),e}(),RR=function(){function e(){this.participantsNames=[]}return Object.defineProperty(e.prototype,"participants",{set:function(e){var t=this;this.participantsNames=[],e.forEach(function(e){e.nickname.includes(tI.SCREEN)||t.participantsNames.push(e.nickname)}),this.participantsNames=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}(this.participantsNames)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-footer"]],inputs:{lightTheme:"lightTheme",participants:"participants"},decls:9,vars:6,consts:[["fxLayout","","fxLayout.xs","row","fxLayoutAlign","center center","fxLayoutGap","2px","id","footer","role","heading",1,"container"],[1,"participantsButtonContainer"],["mat-icon-button","","matTooltip","Remote participants",1,""],["matBadgeSize","small","matBadgePosition","above after","matBadgeColor","accent",3,"matBadge"],["fxFlex","calc(100% - 40px)","fxFlexOrder","2"],[1,"participantNames"]],template:function(e,t){1&e&&(ds(0,"mat-toolbar",0),ds(1,"div",1),ds(2,"button",2),ds(3,"mat-icon",3),Xs(4,"people"),fs(),fs(),fs(),ds(5,"div",4),ds(6,"span",5),Xs(7),Tc(8,"tooltipList"),fs(),fs(),fs()),2&e&&(Us("headerLight",t.lightTheme),Ao(3),Is("matBadge",null==t.participantsNames?null:t.participantsNames.length),Ao(4),$s(Mc(8,4,t.participantsNames)))},directives:[CC,IO,yx,jO,pb,qC,pS,ub,KO,sx],pipes:[AR],styles:["#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999;min-width:400px!important}.footerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}.participantNames[_ngcontent-%COMP%]{font-size:small;height:inherit}.participantsButton[_ngcontent-%COMP%]{position:absolute;left:5px;top:none}.participantsButton[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%]{height:-webkit-fill-available;height:-moz-available}.mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{line-height:18px}"]}),e}(),DR=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})},NR=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},LR=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},VR=["chatComponent"],jR=["sidenav"];function FR(e,t){if(1&e){var n=gs();ds(0,"app-room-config",4),ks("join",function(){return sn(n),xs(2).onConfigRoomJoin()})("leaveSession",function(){return sn(n),xs(2).leaveSession()})("publisherCreated",function(e){return sn(n),xs(2).emitPublisher(e)}),fs()}if(2&e){var i=xs(2);ls("ovSettings",i.ovSettings)("externalConfig",i.externalConfig)}}function BR(e,t){1&e&&ps(0,"div",14)}function UR(e,t){if(1&e){var n=gs();ds(0,"app-toolbar",15),ks("camButtonClicked",function(){return sn(n),xs(3).toggleCam()})("micButtonClicked",function(){return sn(n),xs(3).toggleMic()})("screenShareClicked",function(){return sn(n),xs(3).toggleScreenShare()})("layoutButtonClicked",function(){return sn(n),xs(3).toggleSpeakerLayout()})("leaveSessionButtonClicked",function(){return sn(n),xs(3).leaveSession()}),fs()}if(2&e){var i=xs(3);ls("lightTheme",i.lightTheme)("compact",i.compact)("ovSettings",i.ovSettings)("hasVideoDevices",i.hasVideoDevices)("hasAudioDevices",i.hasAudioDevices)("isWebcamAudioEnabled",i.toolbarMicIconEnabled())("isAutoLayout",i.isAutoLayout)("isConnectionLost",i.isConnectionLost)}}function zR(e,t){if(1&e&&(ds(0,"mat-sidenav",16,17),ps(2,"chat-component",18,19),fs()),2&e){var n=xs(3);Us("boundsLight",n.lightTheme),Is("mode",n.sidenavMode),Ao(2),ls("lightTheme",n.lightTheme)}}var WR=function(e){return{OV_small:e}};function HR(e,t){if(1&e){var n=gs();ds(0,"div",20),ds(1,"stream-component",21),ks("nicknameClicked",function(e){return sn(n),xs(3).onNicknameUpdate(e)})("replaceScreenTrackClicked",function(e){return sn(n),xs(3).onReplaceScreenTrack(e)})("toggleVideoSizeClicked",function(e){return sn(n),xs(3).onToggleVideoSize(e)}),fs(),fs()}if(2&e){var i=t.$implicit;ls("ngClass",Ec(3,WR,!(null!=i&&null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Ao(1),ls("user",i)("videoSizeBig",i.videoSizeBig)}}function GR(e,t){if(1&e){var n=gs();ds(0,"div",22),ds(1,"stream-component",23),ks("toggleVideoSizeClicked",function(e){return sn(n),xs(3).onToggleVideoSize(e)}),fs(),fs()}if(2&e){var i=t.$implicit;ls("ngClass",Ec(3,WR,!(null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Ao(1),ls("user",i)("videoSizeBig",i.videoSizeBig)}}function qR(e,t){if(1&e&&ps(0,"app-footer",24),2&e){var n=xs(3);ls("lightTheme",n.lightTheme)("participants",n.participantsNameList)}}function ZR(e,t){if(1&e&&(ds(0,"div"),ss(1,BR,1,0,"div",5),ss(2,UR,1,8,"app-toolbar",6),Tc(3,"hasToolbar"),ds(4,"mat-sidenav-container",7),ss(5,zR,4,4,"mat-sidenav",8),Tc(6,"hasChat"),ds(7,"mat-sidenav-content",9),ds(8,"div",10),Tc(9,"hasToolbar"),Tc(10,"hasFooter"),ss(11,HR,2,5,"div",11),ss(12,GR,2,5,"div",12),fs(),fs(),fs(),ss(13,qR,1,2,"app-footer",13),Tc(14,"hasFooter"),fs()),2&e){var n=xs(2);Ao(1),ls("ngIf",n.isConnectionLost),Ao(1),ls("ngIf",Mc(3,14,n.ovSettings)),Ao(2),Us("boundsLight",n.lightTheme),Ao(1),ls("ngIf",Mc(6,16,n.ovSettings)),Ao(3),Bs("top",Mc(9,18,n.ovSettings)?"40px":"0px")("bottom",Mc(10,20,n.ovSettings)?"25px":"0px"),Us("boundsLight",n.lightTheme),Ao(3),ls("ngForOf",n.localUsers),Ao(1),ls("ngForOf",n.remoteUsers),Ao(1),ls("ngIf",Mc(14,22,n.ovSettings))}}function QR(e,t){if(1&e&&(ds(0,"div",1),ss(1,FR,1,2,"app-room-config",2),ss(2,ZR,15,24,"div",3),fs()),2&e){var n=xs();Us("boundsLight",n.lightTheme),Ao(1),ls("ngIf",n.showConfigRoomCard),Ao(1),ls("ngIf",n.localUsers&&n.localUsers.length>0)}}var YR=function(){function e(e,t,n,i,r,o,a,s,u,c,l){this.router=e,this.utilsSrv=t,this.remoteUsersService=n,this.openViduWebRTCService=i,this.localUsersService=r,this.oVDevicesService=o,this.loggerSrv=a,this.chatService=s,this.storageSrv=u,this.oVLayout=c,this.tokenService=l,this._session=new Pc,this._publisher=new Pc,this._error=new Pc,this._joinSession=new Pc,this._leaveSession=new Pc,this.compact=!1,this.sidenavMode="side",this.showConfigRoomCard=!0,this.localUsers=[],this.remoteUsers=[],this.participantsNameList=[],this.isAutoLayout=!1,this.log=this.loggerSrv.get("VideoRoomComponent")}return e.prototype.beforeunloadHandler=function(){this.leaveSession()},e.prototype.sizeChange=function(){this.oVLayout.update(),this.checkSizeComponent()},e.prototype.ngOnInit=function(){var e;return DR(this,void 0,void 0,function(){return NR(this,function(t){return this.localUsersService.initialize(),this.openViduWebRTCService.initialize(),this.lightTheme=(null===(e=this.externalConfig)||void 0===e?void 0:e.getTheme())===TI.LIGHT,this.ovSettings=this.externalConfig?this.externalConfig.getOvSettings():new xI,this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&!this.utilsSrv.isMobile()),[2]})})},e.prototype.ngOnDestroy=function(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.remoteUsersService.clear(),this.oVLayout.clear(),this.localUsersService.clear(),this.session=null,this.sessionScreen=null,this.localUsers=[],this.remoteUsers=[],this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.remoteUsersSubscription&&this.remoteUsersSubscription.unsubscribe(),this.chatSubscription&&this.chatSubscription.unsubscribe(),this.remoteUserNameSubscription&&this.remoteUserNameSubscription.unsubscribe()},e.prototype.onConfigRoomJoin=function(){var e=this;this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.showConfigRoomCard=!1,this.subscribeToLocalUsers(),this.subscribeToRemoteUsers(),this.tokenService.initialize(this.ovSettings),setTimeout(function(){e.oVLayout.initialize(),e.checkSizeComponent(),e.joinToSession()},50)},e.prototype.joinToSession=function(){return DR(this,void 0,void 0,function(){return NR(this,function(e){switch(e.label){case 0:return this.openViduWebRTCService.initSessions(),this.session=this.openViduWebRTCService.getWebcamSession(),this._session.emit(this.session),this.sessionScreen=this.openViduWebRTCService.getScreenSession(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.setChatComponent(this.chatSidenav),this.chatService.subscribeToChat(),this.subscribeToChatComponent(),this.subscribeToReconnection(),[4,this.connectToSession()];case 1:return e.sent(),this.utilsSrv.isFirefox()&&!this.localUsersService.hasWebcamVideoActive()&&(this.openViduWebRTCService.publishWebcamVideo(!0),this.openViduWebRTCService.publishWebcamVideo(!1)),[2]}})})},e.prototype.leaveSession=function(){this.log.d("Leaving session..."),this.openViduWebRTCService.disconnect(),this.router.navigate([""]),this._leaveSession.emit()},e.prototype.onNicknameUpdate=function(e){this.localUsersService.updateUsersNickname(e),this.storageSrv.set(PI.USER_NICKNAME,e),this.openViduWebRTCService.sendNicknameSignal()},e.prototype.toggleMic=function(){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(!this.localUsersService.hasWebcamAudioActive()):this.openViduWebRTCService.publishScreenAudio(!this.localUsersService.hasScreenAudioActive())},e.prototype.toggleCam=function(){return DR(this,void 0,void 0,function(){var e,t;return NR(this,function(n){switch(n.label){case 0:return e=!this.localUsersService.hasWebcamVideoActive(),this.localUsersService.areBothConnected()?(this.openViduWebRTCService.publishWebcamVideo(e),this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher(),[2]):this.localUsersService.isOnlyScreenConnected()?(t=this.localUsersService.hasScreenAudioActive(),this.openViduWebRTCService.isWebcamSessionConnected()?[3,2]:[4,this.connectWebcamSession()]):[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishWebcamPublisher()];case 3:n.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),n.label=4;case 4:return this.openViduWebRTCService.publishWebcamVideo(e),[2]}})})},e.prototype.toggleScreenShare=function(){return DR(this,void 0,void 0,function(){var e,t,n=this;return NR(this,function(i){switch(i.label){case 0:return this.localUsersService.areBothConnected()?(this.removeScreen(),[2]):this.localUsersService.isOnlyWebcamConnected()?((e=this.initScreenPublisher()).once("accessAllowed",function(t){return DR(n,void 0,void 0,function(){var t=this;return NR(this,function(n){switch(n.label){case 0:return e.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",function(){t.log.d("Clicked native stop button. Stopping screen sharing"),t.toggleScreenShare()}),this.log.d("ACCESS ALOWED screenPublisher"),this.localUsersService.enableScreenUser(e),this.openViduWebRTCService.isScreenSessionConnected()?[3,2]:[4,this.connectScreenSession()];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishScreenPublisher()];case 3:return n.sent(),this.openViduWebRTCService.sendNicknameSignal(),this.localUsersService.hasWebcamVideoActive()||(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher()),[2]}})})}),e.once("accessDenied",function(e){n.log.w("ScreenShare: Access Denied")}),[2]):(t=this.localUsersService.hasScreenAudioActive(),[4,this.openViduWebRTCService.publishWebcamPublisher()]);case 1:return i.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),this.removeScreen(),[2]}})})},e.prototype.toggleSpeakerLayout=function(){if(!this.localUsersService.isScreenShareEnabled())return this.isAutoLayout=!this.isAutoLayout,this.log.d("Automatic Layout ",this.isAutoLayout?"Disabled":"Enabled"),this.isAutoLayout?void this.subscribeToSpeechDetection():(this.log.d("Unsubscribe to speech detection"),this.session.off("publisherStartSpeaking"),this.resetAllBigElements(),void this.oVLayout.update());this.log.w("Screen is enabled. Speech detection has been rejected")},e.prototype.onReplaceScreenTrack=function(e){this.openViduWebRTCService.replaceScreenTrack()},e.prototype.checkSizeComponent=function(){var e;this.compact=(null===(e=document.getElementById("room-container"))||void 0===e?void 0:e.offsetWidth)<=790,this.sidenavMode=this.compact?"over":"side"},e.prototype.onToggleVideoSize=function(e){var t=e.element;e.resetAll&&this.resetAllBigElements(),this.utilsSrv.toggleBigElementClass(t),(null==e?void 0:e.connectionId)&&(this.openViduWebRTCService.isMyOwnConnection(e.connectionId)?this.localUsersService.toggleZoom(e.connectionId):this.remoteUsersService.toggleUserZoom(e.connectionId)),this.oVLayout.update()},e.prototype.toolbarMicIconEnabled=function(){return this.localUsersService.isWebCamEnabled()?this.localUsersService.hasWebcamAudioActive():this.localUsersService.hasScreenAudioActive()},e.prototype.connectToSession=function(){return DR(this,void 0,void 0,function(){var e;return NR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.tokenService.initTokens(this.externalConfig)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.log.e("There was an error initializing the token:",e.status,e.message),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.utilsSrv.showErrorMessage("There was an error initializing the token:",e.error||e.message),[3,3];case 3:return this.localUsersService.areBothConnected()?[4,this.connectWebcamSession()]:[3,8];case 4:return t.sent(),[4,this.connectScreenSession()];case 5:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 6:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 7:return t.sent(),[3,14];case 8:return this.localUsersService.isOnlyScreenConnected()?[4,this.connectScreenSession()]:[3,11];case 9:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 10:return t.sent(),[3,14];case 11:return[4,this.connectWebcamSession()];case 12:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 13:t.sent(),t.label=14;case 14:return this._joinSession.emit(),this.oVLayout.update(),[2]}})})},e.prototype.connectScreenSession=function(){return DR(this,void 0,void 0,function(){var e;return NR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectScreenSession(this.tokenService.getScreenToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}})})},e.prototype.connectWebcamSession=function(){return DR(this,void 0,void 0,function(){var e;return NR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectWebcamSession(this.tokenService.getWebcamToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}})})},e.prototype.subscribeToConnectionCreatedAndDestroyed=function(){var e=this;this.session.on("connectionCreated",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);e.remoteUsersService.addUserName(t),(null==n?void 0:n.includes("_"+tI.SCREEN))||(e.remoteUsersService.add(t,null),e.openViduWebRTCService.sendNicknameSignal(t.connection))}}),this.session.on("connectionDestroyed",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){e.remoteUsersService.deleteUserName(t);var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);(null==n?void 0:n.includes("_"+tI.SCREEN))||e.remoteUsersService.removeUserByConnectionId(t.connection.connectionId)}})},e.prototype.subscribeToStreamCreated=function(){var e=this;this.session.on("streamCreated",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)){var n=e.session.subscribe(t.stream,void 0);e.remoteUsersService.add(t,n)}})},e.prototype.subscribeToStreamDestroyed=function(){var e=this;this.session.on("streamDestroyed",function(t){e.remoteUsersService.removeUserByConnectionId(t.stream.connection.connectionId)})},e.prototype.emitPublisher=function(e){this._publisher.emit(e)},e.prototype.subscribeToStreamPropertyChange=function(){var e=this;this.session.on("streamPropertyChanged",function(t){e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)||"videoActive"===t.changedProperty&&e.remoteUsersService.updateUsers()})},e.prototype.subscribeToNicknameChanged=function(){var e=this;this.session.on("signal:nicknameChanged",function(t){var n=t.from.connectionId;if(!e.openViduWebRTCService.isMyOwnConnection(n)){var i=e.utilsSrv.getNicknameFromConnectionData(t.data);e.remoteUsersService.updateNickname(n,i)}})},e.prototype.subscribeToSpeechDetection=function(){var e=this;this.log.d("Subscribe to speech detection",this.session),this.session.on("publisherStartSpeaking",function(t){var n=e.remoteUsersService.someoneIsSharingScreen();if(!e.localUsersService.isScreenShareEnabled()&&!n){var i=e.utilsSrv.getHTMLElementByClassName(t.connection.stream.streamManager.videos[0].video,aI.ROOT_CLASS);e.resetAllBigElements(),e.remoteUsersService.setUserZoom(t.connection.connectionId,!0),e.onToggleVideoSize({element:i})}})},e.prototype.removeScreen=function(){this.localUsersService.disableScreenUser(),this.openViduWebRTCService.unpublishScreenPublisher()},e.prototype.subscribeToChatComponent=function(){var e=this;this.chatSubscription=this.chatService.toggleChatObs.subscribe(function(t){e.oVLayout.update(e.externalConfig?300:0)})},e.prototype.subscribeToReconnection=function(){var e=this;this.session.on("reconnecting",function(){e.log.w("Connection lost: Reconnecting"),e.isConnectionLost=!0,e.utilsSrv.showErrorMessage("Connection Problem","Oops! Trying to reconnect to the session ...",!0)}),this.session.on("reconnected",function(){e.log.w("Connection lost: Reconnected"),e.isConnectionLost=!1,e.utilsSrv.closeDialog()}),this.session.on("sessionDisconnected",function(t){"networkDisconnect"===t.reason&&(e.utilsSrv.closeDialog(),e.leaveSession())})},e.prototype.initScreenPublisher=function(){var e=nI.SCREEN,t=this.hasAudioDevices?void 0:null,n=!(this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive())&&this.hasAudioDevices&&this.localUsersService.hasWebcamAudioActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,n,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.resetAllBigElements=function(){this.utilsSrv.removeAllBigElementClass(),this.remoteUsersService.resetUsersZoom(),this.localUsersService.resetUsersZoom()},e.prototype.subscribeToLocalUsers=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe(function(t){e.localUsers=t,e.oVLayout.update()})},e.prototype.subscribeToRemoteUsers=function(){var e=this;this.remoteUsersSubscription=this.remoteUsersService.remoteUsers.subscribe(function(t){e.remoteUsers=LR(t),e.oVLayout.update()}),this.remoteUserNameSubscription=this.remoteUsersService.remoteUserNameList.subscribe(function(t){e.participantsNameList=LR(t)})},e.\u0275fac=function(t){return new(t||e)(cs(wP),cs(lI),cs(vI),cs(_I),cs(dI),cs(NI),cs(rI),cs(kI),cs(AI),cs(VI),cs(WI))},e.\u0275cmp=ht({type:e,selectors:[["app-video-room"]],viewQuery:function(e,t){if(1&e&&(Wc(VR,1),Wc(jR,1)),2&e){var n=void 0;zc(n=Gc())&&(t.chatComponent=n.first),zc(n=Gc())&&(t.chatSidenav=n.first)}},hostBindings:function(e,t){1&e&&ks("beforeunload",function(){return t.beforeunloadHandler()},!1,Fr)("resize",function(){return t.sizeChange()},!1,Fr)},inputs:{externalConfig:"externalConfig"},outputs:{_session:"_session",_publisher:"_publisher",_error:"_error",_joinSession:"_joinSession",_leaveSession:"_leaveSession"},decls:1,vars:1,consts:[["id","videoRoomNavBar",3,"boundsLight",4,"ngIf"],["id","videoRoomNavBar"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated",4,"ngIf"],[4,"ngIf"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated"],["class","reconnecting-container",4,"ngIf"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked",4,"ngIf"],["id","room-container","fullscreen","",1,"sidenav-container"],["position","end","class","sidenav-chat","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",3,"mode","boundsLight",4,"ngIf"],[1,"sidenav-main"],["id","layout",1,"bounds"],["class","OT_root OT_publisher custom-class","id","localUser",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher custom-class","id","remoteUsers",3,"ngClass",4,"ngFor","ngForOf"],[3,"lightTheme","participants",4,"ngIf"],[1,"reconnecting-container"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked"],["position","end","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",1,"sidenav-chat",3,"mode"],["sidenav",""],[3,"lightTheme"],["chatComponent",""],["id","localUser",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","nicknameClicked","replaceScreenTrackClicked","toggleVideoSizeClicked"],["id","remoteUsers",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","toggleVideoSizeClicked"],[3,"lightTheme","participants"]],template:function(e,t){1&e&&ss(0,QR,3,4,"div",0),2&e&&ls("ngIf",!!t.ovSettings)},directives:[Ch,NA,mC,fC,wh,iR,pC,OI,_h,lO,IR,RR],pipes:[iA,YI,rA],styles:['#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;background-color:#494949;height:100%}.stream-container[_ngcontent-%COMP%]{padding:0}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:1%;position:absolute}.sidenav-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:-webkit-fill-available;overflow:hidden}.sidenav-chat[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:450px;border-left:none;position:absolute}.mat-drawer-container[_ngcontent-%COMP%], .sidenav-chat[_ngcontent-%COMP%]{background-color:#494949}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}.bounds[_ngcontent-%COMP%]{background-color:#494949;position:absolute;left:0;right:0;min-width:350px!important;width:inherit}.boundsLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important}\n\n.custom-class[_ngcontent-%COMP%]{min-height:0!important}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Ubuntu,sans-serif;vertical-align:baseline;transition:all .1s linear}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:48px;min-height:48px}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_publisher.OT_mirrored[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{transform:scaleX(-1);transform-origin:50% 50%}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:hsla(0,0%,100%,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%{box-shadow:0 0 0 0 #c70019}30%{box-shadow:0 0 5px 1px #c70019}50%{box-shadow:0 0 5px 1px #c70019}80%{box-shadow:0 0 0 0 #c70019}to{box-shadow:0 0 0 0 #c70019}}.OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid hsla(0,0%,100%,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:OT_spin 2s linear infinite;animation:OT_spin 2s linear infinite}@-webkit-keyframes OT_spin{to{-webkit-transform:rotate(1turn)}}@keyframes OT_spin{to{transform:rotate(1turn)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation:portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:50%}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat 50%}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,#97ce00 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:100% 100%;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:50%;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}@media only screen and (max-width:600px){#videoRoomNavBar[_ngcontent-%COMP%]{width:100%}}']}),e}(),KR=[{path:"",component:eI},{path:":roomName",component:YR}],JR=function(){function e(){}return e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)},imports:[[NP.forRoot(KR,{useHash:!0})],NP]}),e}(),XR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$R=function(e){function t(){var t=e.call(this)||this;return t.NAME="WebComponent",t}return XR(t,e),t.prototype.setSessionConfig=function(e){var t;this.sessionConfig=e,this.sessionConfig&&(this.sessionName=this.sessionConfig.sessionName,this.nickname=this.sessionConfig.user,this.tokens=this.sessionConfig.tokens,this.sessionConfig.ovSettings&&this.isOvSettingsType(this.sessionConfig.ovSettings)&&this.ovSettings.set(this.sessionConfig.ovSettings),this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&(null===(t=this.tokens)||void 0===t?void 0:t.length)>1),this.ovSettings.hasScreenSharing()||console.warn("ScreenSharing has been disabled. OpenVidu Angular has received only one token."))},t.prototype.getComponentName=function(){return this.NAME},t.prototype.isOvSettingsType=function(e){return"chat"in e&&"boolean"==typeof e.chat&&"autopublish"in e&&"boolean"==typeof e.autopublish&&"toolbar"in e&&"boolean"==typeof e.toolbar&&"footer"in e&&"boolean"==typeof e.footer&&"toolbarButtons"in e&&"object"==typeof e.toolbarButtons&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"video"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.video&&"screenShare"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.screenShare&&"fullscreen"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.fullscreen&&"layoutSpeaking"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.layoutSpeaking&&"exit"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.exit},t}(MI),eD=["videoRoom"];function tD(e,t){if(1&e){var n=gs();ds(0,"app-video-room",1,2),ks("_error",function(e){return sn(n),xs().emitErrorEvent(e)})("_session",function(e){return sn(n),xs().emitSession(e)})("_publisher",function(e){return sn(n),xs().emitPublisher(e)})("_leaveSession",function(e){return sn(n),xs().emitLeaveSessionEvent(e)})("_joinSession",function(e){return sn(n),xs().emitJoinSessionEvent(e)}),fs()}2&e&&ls("externalConfig",xs().webComponent)}var nD=function(){function e(e){this.loggerSrv=e,this.sessionCreated=new Pc,this.publisherCreated=new Pc,this.error=new Pc,this.joinSession=new Pc,this.leaveSession=new Pc,this.display=!1,this.webComponent=new $R,this.log=this.loggerSrv.get("WebComponentComponent")}return Object.defineProperty(e.prototype,"sessionConfig",{set:function(e){var t=this;this.log.d("Webcomponent sessionConfig: ",e),setTimeout(function(){var n;if("string"==typeof e)try{e=JSON.parse(e)}catch(i){return void t.log.e("Unexpected JSON",i)}if(t.isEmpty(e))return t.log.w("Parameters received are incorrect.",e),t.log.w("Exit session"),void(null===(n=t.videoRoom)||void 0===n||n.leaveSession());t.webComponent.setSessionConfig(e),t.display=t.webComponent.canJoinToSession()},200)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{set:function(e){this.webComponent.setTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduServerUrl",{set:function(e){this.webComponent.setOvServerUrl(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduSecret",{set:function(e){this.webComponent.setOvSecret(e)},enumerable:!1,configurable:!0}),e.prototype.emitErrorEvent=function(e){var t=this;setTimeout(function(){return t.error.emit(e)},20)},e.prototype.emitSession=function(e){var t=this;e.on("sessionDisconnected",function(e){return t.display=!1}),e.on("connectionCreated",function(e){t.videoRoom.checkSizeComponent()}),this.sessionCreated.emit(e)},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.emitJoinSessionEvent=function(e){this.joinSession.emit(e)},e.prototype.emitLeaveSessionEvent=function(e){this.leaveSession.emit(e)},e.prototype.isEmpty=function(e){return 0===Object.keys(e).length},e.\u0275fac=function(t){return new(t||e)(cs(rI))},e.\u0275cmp=ht({type:e,selectors:[["app-web-component"]],viewQuery:function(e,t){var n;1&e&&Wc(eD,1),2&e&&zc(n=Gc())&&(t.videoRoom=n.first)},inputs:{ovSettings:"ovSettings",sessionConfig:"sessionConfig",theme:"theme",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret"},outputs:{sessionCreated:"sessionCreated",publisherCreated:"publisherCreated",error:"error",joinSession:"joinSession",leaveSession:"leaveSession"},decls:1,vars:1,consts:[[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession",4,"ngIf"],[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession"],["videoRoom",""]],template:function(e,t){1&e&&ss(0,tD,2,1,"app-video-room",0),2&e&&ls("ngIf",t.display)},directives:[Ch,YR],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),e}(),iD=function(){function e(e){this.injector=e;var t=new vE(nD,this.injector),n=fE(nD,{injector:this.injector,strategyFactory:t});customElements.define("openvidu-webcomponent",n)}return e.prototype.ngDoBootstrap=function(){},e.\u0275mod=vt({type:e}),e.\u0275inj=De({factory:function(t){return new(t||e)(Fi(Ga))},providers:[BI,_I,dI,lI,vI,NI,rI,kI,mI,AI,oR,{provide:T_,useClass:oR}],imports:[[Kf,Jf,_d,Qm,vb,mb,EC,vS,CS,fw,hk,QC,cb,pw,ZS,ob,ES,bC,yC,oE,JR,eS,Px,Dk]]}),e}();(function(){if(Tl)throw new Error("Cannot enable prod mode after platform setup.");xl=!1})(),yd().bootstrapModule(iD).catch(function(e){return console.log(e)})},zfKp:function(e,t,n){"use strict";t.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); |