openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.20.0.js
2021-09-23 14:28:01 +02:00

4 lines
1.3 MiB

!function(){"use strict";var e,n={},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var u=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}t.m=n,e=[],t.O=function(n,r,o,u){if(!r){var i=1/0;for(c=0;c<e.length;c++){r=e[c][0],o=e[c][1],u=e[c][2];for(var l=!0,f=0;f<r.length;f++)(!1&u||i>=u)&&Object.keys(t.O).every(function(e){return t.O[e](r[f])})?r.splice(f--,1):(l=!1,u<i&&(i=u));l&&(e.splice(c--,1),n=o())}return n}u=u||0;for(var c=e.length;c>0&&e[c-1][2]>u;c--)e[c]=e[c-1];e[c]=[r,o,u]},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={666:0};t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,u,i=r[0],l=r[1],f=r[2],c=0;for(o in l)t.o(l,o)&&(t.m[o]=l[o]);if(f)var a=f(t);for(n&&n(r);c<i.length;c++)t.o(e,u=i[c])&&e[u]&&e[u][0](),e[i[c]]=0;return t.O(a)},r=self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}()}();
(self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[]).push([[429],{21843:function(){!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)}}()}()},20228:function(e,t,n){"use strict";var r,o;void 0===(o="function"==typeof(r=function(){!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!==j.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 Z.zone},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return C},enumerable:!1,configurable:!0}),t.__load_patch=function(o,i,c){if(void 0===c&&(c=!1),j.hasOwnProperty(o)){if(!c&&a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var u="Zone:"+o;n(u),j[o]=i(e,t,D),r(u,u)}},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){Z={parent:Z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{Z=Z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),Z={parent:Z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{Z=Z.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!==_||e.type!==P&&e.type!==x){var r=e.state!=E;r&&e._transitionTo(E,T),e.runCount++;var o=C;C=e,Z={parent:Z,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!==_&&e.state!==O&&(e.type==P||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(_,E,_))),Z=Z.parent,C=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==k&&e._transitionTo(T,k),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(P,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(_,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===P&&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==_&&(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){D.onUnhandledError(r)}}}D.microtaskDrainDone(),g=!1}}var m={name:"NO ZONE"},_="notScheduled",k="scheduling",T="scheduled",E="running",w="canceling",O="unknown",S="microTask",x="macroTask",P="eventTask",j={},D={symbol:i,currentZoneFrame:function(){return Z},onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:y,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:M,patchMethod:function(){return M},bindArguments:function(){return[]},patchThen:function(){return M},patchMacroTask:function(){return M},patchEventPrototype:function(){return M},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return M},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return M},wrapWithCurrentZone:function(){return M},filterProperties:function(){return[]},attachOriginToPatched:function(){return M},_redefineProperty:function(){return M},patchCallbacks:function(){return M}},Z={parent:null,zone:new c(null,null)},C=null,z=0;function M(){}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 _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!T&&!k&&!(!d||!g.HTMLElement),w=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!k&&!(!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 P(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 j=v("originalInstance");function D(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[j]=new n;break;case 1:this[j]=new n(t[0]);break;case 2:this[j]=new n(t[0],t[1]);break;case 3:this[j]=new n(t[0],t[1],t[2]);break;case 4:this[j]=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[j][n].apply(this[j],arguments)}:t(y[e].prototype,n,{set:function(t){"function"==typeof t?(this[j][n]=p(t,e+"."+n),z(this[j][n],t)):this[j][n]=t},get:function(){return this[j][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(y[e][r]=n[r])}}function Z(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])||!i.hasOwnProperty(a))&&(c=i[a]=i[r],_(i&&e(i,r)))){var u=o(c,a,r);i[r]=function(){return u(this,arguments)},z(i[r],c)}return c}function C(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=Z(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 M=!1,I=!1;function R(){if(M)return I;M=!0;try{var e=g.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(I=!0)}catch(t){}return I}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 j.reject(e)}var v=i("state"),d=i("value"),g=i("finally"),y=i("parentPromiseValue"),b=i("parentPromiseState"),m=null,_=!0,k=!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(D){return l(function(){w(e,!1,D)})(),e}if(r!==k&&i instanceof j&&i.hasOwnProperty(v)&&i.hasOwnProperty(d)&&i[v]!==m)S(i),w(e,i[v],i[d]);else if(r!==k&&"function"==typeof f)try{f.call(i,l(T(e,r)),l(T(e,!1)))}catch(D){l(function(){w(e,!1,D)})()}else{e[v]=r;var p=e[d];if(e[d]=i,e[g]===g&&r===_&&(e[v]=e[b],e[d]=e[y]),r===k&&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==k){e[v]=0;var P=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(D){P=D}c&&(P.throwOriginal=!0),P.rejection=i,P.promise=e,P.zone=t.current,P.task=t.currentTask,a.push(P),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]=k;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 P=function(){},j=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,_),T(n,k))}catch(r){w(n,!1,r)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return w(new this(null),_,e)},e.reject=function(e){return w(new this(null),k,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(P),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(P);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}();j.resolve=j.resolve,j.reject=j.reject,j.race=j.race,j.all=j.all;var D=e[u]=e.Promise;e.Promise=j;var C=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 j(function(e,t){o.call(n,e,t)}).then(e,t)},e[C]=!0}}return n.patchThen=z,D&&(z(D),Z(e,"fetch",function(e){return t=e,function(e,n){var r=t.apply(e,n);if(r instanceof j)return r;var o=r.constructor;return o[C]||z(o),r};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,j}),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 L=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){L=!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(Ee){L=!1}var N={useG:!0},F={},H={},W=new RegExp("^"+f+"(\\w+)(true|false)$"),G=v("propagationStopped");function B(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 U(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 _=t;_&&!_.hasOwnProperty(o);)_=n(_);if(!_&&t[o]&&(_=t),!_)return!1;if(_[h])return!1;var k,E=r&&r.eventNameToString,w={},O=_[h]=_[o],S=_[v(c)]=_[c],x=_[v(u)]=_[u],P=_[v(p)]=_[p];function j(e,t){return!L&&"object"==typeof e&&e?!!e.capture:L&&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)]=_[r.prepend]);var D=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)},Z=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)},C=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},M=Zone[v("UNPATCHED_EVENTS")],I=e[v("PASSIVE_EVENTS")],R=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=L&&!!I&&-1!==I.indexOf(h),b=j(arguments[2],y);if(M)for(var m=0;m<M.length;m++)if(h===M[m])return y?t.call(p,h,v,b):t.apply(this,arguments);var _=!!b&&("boolean"==typeof b||b.capture),k=!(!b||"object"!=typeof b)&&b.once,O=Zone.current,S=F[h];S||(B(h,E),S=F[h]);var x,P=S[_?s:l],D=p[P],Z=!1;if(D){if(Z=!0,g)for(m=0;m<D.length;m++)if(C(D[m],v))return}else D=p[P]=[];var z=p.constructor.name,R=H[z];R&&(x=R[h]),x||(x=z+n+(E?E(h):h)),w.options=b,k&&(w.options.once=!1),w.target=p,w.capture=_,w.eventName=h,w.isExisting=Z;var A=i?N:void 0;A&&(A.taskData=w);var W=O.scheduleEventTask(x,v,A,o,c);return w.target=null,A&&(A.taskData=null),k&&(b.once=!0),(L||"boolean"!=typeof W.options)&&(W.options=b),W.target=p,W.capture=_,W.eventName=h,d&&(W.originalDelegate=v),f?D.unshift(W):D.push(W),u?p:void 0}}};return _[o]=R(O,d,D,Z,m),k&&(_.prependListener=R(k,".prependListener:",function(e){return k.call(w.target,w.eventName,e.invoke,w.options)},Z,m,!0)),_[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(C(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)}},_[u]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=q(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},_[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(_[o],O),z(_[c],S),P&&z(_[p],P),x&&z(_[u],x),!0}for(var _=[],k=0;k<t.length;k++)_[k]=m(t[k],r);return _}function q(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||(B(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 K(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 X(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,u){return c&&c.prototype&&o.forEach(function(t){var o=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 V,Y,Q,J,$,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&&P(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(){V=Zone.__symbol__,Y=Object[V("defineProperty")]=Object.defineProperty,Q=Object[V("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,J=Object.create,$=V("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])}),J(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=Q(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)||Y(e,$,{writable:!0,value:{}}),e[$]&&(e[$][t]=!0)),n}function ye(e,t,n,r){try{return Y(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return Y(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 _=u+((O=r[m])+c),k=u+(O+a);i[O]={},i[O][c]=_,i[O][a]=k}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=P,u.patchMethod=Z,u.bindArguments=m,u.patchMacroTask=C;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=K,u.patchEventTarget=U,u.isIEOrEdge=R,u.ObjectDefineProperty=t,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=r,u.ArraySlice=o,u.patchClass=D,u.wrapWithCurrentZone=p,u.filterProperties=le,u.attachOriginToPatched=z,u._redefineProperty=Object.defineProperty,u.patchCallbacks=X,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 _e=v("zoneTask");function ke(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(){return t.invoke.apply(this,arguments)},n.handleId=o.apply(e,n.args),t}function u(t){return i.call(e,t.data.handleId)}o=Z(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},l=i[0];i[0]=function(){try{return l.apply(this,arguments)}finally{s.isPeriodic||("number"==typeof s.handleId?delete a[s.handleId]:s.handleId&&(s.handleId[_e]=null))}};var f=h(t,i[0],s,c,u);if(!f)return f;var p=f.data.handleId;return"number"==typeof p?a[p]=f:p&&(p[_e]=f),p&&p.ref&&p.unref&&"function"==typeof p.ref&&"function"==typeof p.unref&&(f.ref=p.ref.bind(p),f.unref=p.unref.bind(p)),"number"==typeof p||p?p:f}return n.apply(e,i)}}),i=Z(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[_e])||(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[_e]=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("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="set",n="clear";ke(e,t,n,"Timeout"),ke(e,t,n,"Interval"),ke(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)Z(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){D("MutationObserver"),D("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,n){D("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,n){D("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",_=Z(f,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],_.apply(e,t)}}),k=v("fetchTaskAborting"),T=v("fetchTaskScheduling"),E=Z(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=Z(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[k])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(!_(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){q(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}})}}e.PromiseRejectionEvent&&(t[v("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[v("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=o)},71796:function(e,t,n){"use strict";n(17168),n(20228),n(21843),window.global=window},97625:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},95143:function(e,t,n){var r=n(60726);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},86063:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},21099:function(e,t,n){var r=n(60726);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},70452:function(e,t,n){var r=n(8643),o=n(15902),i=n(20222),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)}},94115:function(e,t,n){var r=n(29727),o=n(56169),i=n(16174),a=n(15902),c=n(62889),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,_=i(v),k=o(_),T=r(d,g,3),E=a(k.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 k)&&(m=T(b=k[w],w,_),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)}},62889:function(e,t,n){var r=n(60726),o=n(47883),i=n(84563)("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)}},56297:function(e,t,n){var r=n(84563)("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}},96644:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},99420:function(e,t,n){var r=n(72900),o=n(96644),i=n(84563)("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}},5692:function(e,t,n){"use strict";var r=n(83202).f,o=n(38724),i=n(78715),a=n(29727),c=n(86063),u=n(53284),s=n(66038),l=n(37374),f=n(47012),p=n(64238).fastKey,h=n(52493),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)}}},96491:function(e,t,n){"use strict";var r=n(78715),o=n(64238).getWeakData,i=n(21099),a=n(60726),c=n(86063),u=n(53284),s=n(94115),l=n(67791),f=n(52493),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}}},41603:function(e,t,n){"use strict";var r=n(51163),o=n(31864),i=n(87215),a=n(87763),c=n(64238),u=n(53284),s=n(86063),l=n(60726),f=n(8597),p=n(56297),h=n(58242),v=n(38267);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,_=b,k={},T=function(e){var t=m[e];a(m,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(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()}))))_=n.getConstructor(t,e,d,y),c.REQUIRED=!0;else if(i(e,!0)){var E=new _,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||((_=t(function(t,n){s(t,_,e);var r=v(new b,t,_);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:d}),r})).prototype=m,m.constructor=_),(O||x)&&(T("delete"),T("has"),d&&T("get")),(x||w)&&T(y),g&&m.clear&&delete m.clear}return k[e]=_,r({global:!0,forced:_!=b},k),h(_,e),g||n.setStrong(_,e,d),_}},30009:function(e,t,n){var r=n(67791),o=n(99376),i=n(93099),a=n(83202);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))}}},51335:function(e,t,n){var r=n(8597);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},17453:function(e,t,n){"use strict";var r=n(92053).IteratorPrototype,o=n(38724),i=n(53203),a=n(58242),c=n(72339),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}},815:function(e,t,n){var r=n(47012),o=n(83202),i=n(53203);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},53203:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},66038:function(e,t,n){"use strict";var r=n(51163),o=n(17453),i=n(3963),a=n(91464),c=n(58242),u=n(815),s=n(87763),l=n(84563),f=n(97515),p=n(72339),h=n(92053),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",b="values",m="entries",_=function(){return this};e.exports=function(e,t,n,l,h,k,T){o(n,t,l);var E,w,O,S=function(e){if(e===h&&Z)return Z;if(!d&&e in j)return j[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",P=!1,j=e.prototype,D=j[g]||j["@@iterator"]||h&&j[h],Z=!d&&D||S(h),C="Array"==t&&j.entries||D;if(C&&(E=i(C.call(new e)),v!==Object.prototype&&E.next&&(f||i(E)===v||(a?a(E,v):"function"!=typeof E[g]&&u(E,g,_)),c(E,x,!0,!0),f&&(p[x]=_))),h==b&&D&&D.name!==b&&(P=!0,Z=function(){return D.call(this)}),f&&!T||j[g]===Z||u(j,g,Z),p[t]=Z,h)if(w={values:S(b),keys:k?Z:S(y),entries:S(m)},T)for(O in w)(d||P||!(O in j))&&s(j,O,w[O]);else r({target:t,proto:!0,forced:d||P},w);return w}},47012:function(e,t,n){var r=n(8597);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},85815:function(e,t,n){var r=n(31864),o=n(60726),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},71001:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51163:function(e,t,n){var r=n(31864),o=n(93099).f,i=n(815),a=n(87763),c=n(22341),u=n(30009),s=n(87215);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)}}},8597:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},39352:function(e,t,n){var r=n(8597);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},29727:function(e,t,n){var r=n(97625);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)}}},73626:function(e,t,n){var r=n(86950),o=n(31864),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]}},63076:function(e,t,n){var r=n(99420),o=n(72339),i=n(84563)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},31864:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},67791:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3536:function(e){e.exports={}},67538:function(e,t,n){var r=n(73626);e.exports=r("document","documentElement")},27091:function(e,t,n){var r=n(47012),o=n(8597),i=n(85815);e.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},56169:function(e,t,n){var r=n(8597),o=n(96644),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},38267:function(e,t,n){var r=n(60726),o=n(91464);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}},87720:function(e,t,n){var r=n(59941),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},64238:function(e,t,n){var r=n(3536),o=n(60726),i=n(67791),a=n(83202).f,c=n(94295),u=n(39352),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},52493:function(e,t,n){var r,o,i,a=n(51635),c=n(31864),u=n(60726),s=n(815),l=n(67791),f=n(59941),p=n(42650),h=n(3536);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}}}},81643:function(e,t,n){var r=n(84563),o=n(72339),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},47883:function(e,t,n){var r=n(96644);e.exports=Array.isArray||function(e){return"Array"==r(e)}},87215:function(e,t,n){var r=n(8597),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},60726:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},97515:function(e){e.exports=!1},53284:function(e,t,n){var r=n(21099),o=n(81643),i=n(15902),a=n(29727),c=n(63076),u=n(87883),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),_=a(t,n&&n.that,1+y+m),k=function(e){return l&&u(l),new s(!0,e)},T=function(e){return y?(r(e),m?_(e[0],e[1],k):_(e[0],e[1])):m?_(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)}},87883:function(e,t,n){var r=n(21099);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},92053:function(e,t,n){"use strict";var r,o,i,a=n(8597),c=n(3963),u=n(815),s=n(67791),l=n(84563),f=n(97515),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}},72339:function(e){e.exports={}},77040:function(e,t,n){var r=n(8597);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},51635:function(e,t,n){var r=n(31864),o=n(87720),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},38724:function(e,t,n){var r,o=n(21099),i=n(10988),a=n(71001),c=n(3536),u=n(67538),s=n(85815),l=n(42650)("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)}},10988:function(e,t,n){var r=n(47012),o=n(83202),i=n(21099),a=n(68032);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}},83202:function(e,t,n){var r=n(47012),o=n(27091),i=n(21099),a=n(28495),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}},93099:function(e,t,n){var r=n(47012),o=n(5600),i=n(53203),a=n(8643),c=n(28495),u=n(67791),s=n(27091),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])}},94564:function(e,t,n){var r=n(77759),o=n(71001).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},77593:function(e,t){t.f=Object.getOwnPropertySymbols},3963:function(e,t,n){var r=n(67791),o=n(16174),i=n(42650),a=n(51335),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}},77759:function(e,t,n){var r=n(67791),o=n(8643),i=n(70452).indexOf,a=n(3536);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}},68032:function(e,t,n){var r=n(77759),o=n(71001);e.exports=Object.keys||function(e){return r(e,o)}},5600:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},91464:function(e,t,n){var r=n(21099),o=n(95143);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)},99376:function(e,t,n){var r=n(73626),o=n(94564),i=n(77593),a=n(21099);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},86950:function(e,t,n){var r=n(31864);e.exports=r},78715:function(e,t,n){var r=n(87763);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},87763:function(e,t,n){var r=n(31864),o=n(815),i=n(67791),a=n(22341),c=n(87720),u=n(52493),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)})},54230:function(e,t,n){var r=n(88854),o=n(63438),i=n(77719)("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)}}},95025:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},22341:function(e,t,n){var r=n(31864),o=n(815);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},37374:function(e,t,n){"use strict";var r=n(73626),o=n(83202),i=n(84563),a=n(47012),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}})}},58242:function(e,t,n){var r=n(83202).f,o=n(67791),i=n(84563)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},42650:function(e,t,n){var r=n(77719),o=n(94295),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},59941:function(e,t,n){var r=n(31864),o=n(22341),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},77719:function(e,t,n){var r=n(97515),o=n(59941);(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)"})},20222:function(e,t,n){var r=n(59463),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)}},8643:function(e,t,n){var r=n(56169),o=n(95025);e.exports=function(e){return r(o(e))}},59463:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},15902:function(e,t,n){var r=n(59463),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},16174:function(e,t,n){var r=n(95025);e.exports=function(e){return Object(r(e))}},28495:function(e,t,n){var r=n(60726);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")}},72900:function(e,t,n){var r={};r[n(84563)("toStringTag")]="z",e.exports="[object z]"===String(r)},94295:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},24431:function(e,t,n){var r=n(77040);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},84563:function(e,t,n){var r=n(31864),o=n(77719),i=n(67791),a=n(94295),c=n(77040),u=n(24431),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]}},88854:function(e,t,n){"use strict";var r=n(41603),o=n(5692);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},43014:function(e,t,n){"use strict";var r=n(41603),o=n(5692);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},63438:function(e,t,n){"use strict";var r,o=n(31864),i=n(78715),a=n(64238),c=n(41603),u=n(96491),s=n(60726),l=n(52493).enforce,f=n(51635),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,_=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)?_.call(this,e,t):n.frozen.set(e,t)}else _.call(this,e,t);return this}})}},37935:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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)}})},13199:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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)}})},11304:function(e,t,n){var r=n(51163),o=n(43014),i=n(54230),a=n(21099),c=n(3963),u=n(53284),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)}})},47545:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=n(3963),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)}})},87067:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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)}})},40110:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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)}})},78527:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=n(3963),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)}})},3166:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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)}})},5551:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),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))}}})},17168:function(e,t,n){n(37935),n(13199),n(47545),n(11304),n(40110),n(87067),n(78527),n(3166),n(5551)}},function(e){"use strict";e(e.s=71796)}]);
!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);
(self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},55068:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,r)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var r,o,s;if(a(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),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(r=u(e))>0&&s.length>r&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,console&&console.warn&&console.warn(c)}return e}function l(){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 h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(i);return r.listener=n,i.wrapFn=r,r}function d(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):p(r,r.length)}function f(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 p(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function v(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){i.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)i(l[n],this,t)}return!0},o.prototype.on=o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,h(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,h(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var n,i,r,o,s;if(a(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){s=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,s||t)}return this},o.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},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},42596:function(e,t,n){"use strict";var i=n(82111);e.exports=function(e){var t,r={stun:(e||{}).stun||n(48798),turn:(e||{}).turn||n(39642)},o=(e||{}).turnCount||0;function s(e,t){for(var n,o=[],s=[].concat(r[e]);s.length&&o.length<t;)n=Math.random()*s.length|0,o=o.concat(s.splice(n,1));return o.map(function(t){return"string"==typeof t||t instanceof String?i(e+":"+t):t})}return t=[].concat(s("stun",(e||{}).stunCount||2)),o&&(t=t.concat(s("turn",o))),t}},92812:function(e,t,n){var i,r=n(39270);"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 s,a,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,a=new Float32Array(u.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(s=o.createMediaElementSource(e),void 0===d&&(d=!0),h=h||-50):(s=o.createMediaStreamSource(e),h=h||-50),s.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(),s.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,a);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}},5457:function(e){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}}},95784:function(e,t){var n,i=this&&this.__extends||(n=function(e,t){return(n=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 i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function r(e){if(!e)return r.__;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,o){t?t+="."+n:t=n;var s=e["__"+t];return void 0===s&&(r.Logger.prototype=e,s=new r.Logger(t),e["__"+t]=s),s},r.__)}!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 r(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 s=function(e,t,n){this.msg=e,this.meta=t,this.finalString=n};function a(t){var n,i=o(t);switch(typeof i){case"string":return new s(i,null,i);case"number":case"boolean":return n=i.toString(),new s(n,null,n);case"undefined":return new s("undefined",null,"undefined");case"object":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(n=i.toString(),new s(n,null,n)):(n="function"==typeof e.serialize?e.serialize.call(this,i):JSON.stringify(i),new s("",i,n));default:return new s("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=a(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 i(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 i.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)})}},i.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},i.prototype.batchBufferHasStrandedMessage=function(){return!(null==e.maxMessages)&&e.maxMessages<1&&this.batchBuffer.length>0},i.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},i.prototype.onSendingEnded=function(){d(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},i.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},i.prototype.log=function(e,t,i,o,s,a,u){var c;n(this)&&r(this,a)&&(s<this.storeInBufferLevel||(c=h(s,a,u),s<this.level?this.bufferSize>0&&(this.buffer.push(c),this.buffer.length>this.bufferSize&&this.buffer.shift()):(this.addLogItemsToBuffer([c]),s>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete())))},i.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)})}},i}();e.Appender=p;var v=function(r){function o(e){return r.call(this,e,o.prototype.sendLogItemsAjax)||this}return i(o,r),o.prototype.setOptions=function(e){return t("url",e,this),t("beforeSend",e,this),r.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 s={r:e.requestId,lg:t};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,s):"function"==typeof e.defaultBeforeSend&&e.defaultBeforeSend.call(this,this.xhr,s);var a=JSON.stringify(s);this.xhr.send(a)}catch(u){}},o}(p);e.AjaxAppender=v;var m=function(t){function r(e){return t.call(this,e,r.prototype.sendLogItemsConsole)||this}return i(r,t),r.prototype.clog=function(t){e._console.log(t)},r.prototype.cerror=function(t){e._console.error?e._console.error(t):this.clog(t)},r.prototype.cwarn=function(t){e._console.warn?e._console.warn(t):this.clog(t)},r.prototype.cinfo=function(t){e._console.info?e._console.info(t):this.clog(t)},r.prototype.cdebug=function(t){e._console.debug?e._console.debug(t):this.cinfo(t)},r.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],s=o.n+": "+o.m;"undefined"==typeof window&&(s=new Date(o.t)+" | "+s),o.l<=e.getDebugLevel()?this.cdebug(s):o.l<=e.getInfoLevel()?this.cinfo(s):o.l<=e.getWarnLevel()?this.cwarn(s):this.cerror(s)}}catch(a){}i()},r}(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,i){var s,c,l=0;if(!this.appenders)return this;if(e>=this.level&&n(this)&&(i?(c=this.buildExceptionObject(i)).logData=o(t):c=t,r(this,(s=a(c)).finalString))){if(this.onceOnly)for(l=this.onceOnly.length-1;l>=0;){if(new RegExp(this.onceOnly[l]).test(s.finalString)){if(this.seenRegexes[l])return this;this.seenRegexes[l]=!0}l--}for(s.meta=s.meta||{},l=this.appenders.length-1;l>=0;)this.appenders[l].log(u(e),s.msg,s.meta,function(){},e,s.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]})}(r||(r={})),t.__esModule=!0,t.JL=r,"function"==typeof __jsnlog_configure&&__jsnlog_configure(r),"undefined"==typeof window||window.onerror||(window.onerror=function(e,t,n,i,o){return r("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:e?e.message||e:"",url:t,"line number":n,column:i},o),!1}),"undefined"==typeof window||window.onunhandledrejection||(window.onunhandledrejection=function(e){r("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:e.reason?e.reason.message:e.message||null},e.reason)})},75275:function(e,t,n){"use strict";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(94140)),r=i.tokenize,o=i.options.Options;function s(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(e){return e.replace(/"/g,"&quot;")}function u(e){if(!e)return"";var t=[];for(var n in e)t.push(n+'="'+a(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="'+a(f)+'"';v&&(y+=' class="'+a(v)+'"'),m&&(y+=' target="'+a(m)+'"'),g&&(y+=" "+u(g)),y+=">"+s(d)+"</"+p+">",i.push(y)}else i.push(s(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},94140: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(29073),r=a(n(68601)),o=a(n(44272)),s=a(n(33403));function a(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 s.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=s,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},33403:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n(73314),r=n(37102),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),s=n(22040),a=function(e){return new i.TokenState(e)},u=a(),c=a(),l=a(),h=a(),d=a(),f=a(),p=a(),v=a(r.URL),m=a(),g=a(r.URL),y=a(r.URL),b=a(),_=a(),k=a(),w=a(),S=a(),C=a(r.URL),E=a(r.URL),O=a(r.URL),x=a(r.URL),T=a(),P=a(),M=a(),I=a(),A=a(),R=a(),L=a(r.EMAIL),N=a(),D=a(r.EMAIL),V=a(r.MAILTOEMAIL),j=a(),F=a(),B=a(),U=a(),z=a(r.NL);u.on(s.NL,z).on(s.PROTOCOL,c).on(s.MAILTO,l).on(s.SLASH,h),c.on(s.SLASH,h),h.on(s.SLASH,d),u.on(s.TLD,f).on(s.DOMAIN,f).on(s.LOCALHOST,v).on(s.NUM,f),d.on(s.TLD,y).on(s.DOMAIN,y).on(s.NUM,y).on(s.LOCALHOST,y),f.on(s.DOT,p),A.on(s.DOT,R),p.on(s.TLD,v).on(s.DOMAIN,f).on(s.NUM,f).on(s.LOCALHOST,f),R.on(s.TLD,L).on(s.DOMAIN,A).on(s.NUM,A).on(s.LOCALHOST,A),v.on(s.DOT,p),L.on(s.DOT,R),v.on(s.COLON,m).on(s.SLASH,y),m.on(s.NUM,g),g.on(s.SLASH,y),L.on(s.COLON,N),N.on(s.NUM,D);var W=[s.DOMAIN,s.AT,s.LOCALHOST,s.NUM,s.PLUS,s.POUND,s.PROTOCOL,s.SLASH,s.TLD,s.UNDERSCORE,s.SYM,s.AMPERSAND],H=[s.COLON,s.DOT,s.QUERY,s.PUNCTUATION,s.CLOSEBRACE,s.CLOSEBRACKET,s.CLOSEANGLEBRACKET,s.CLOSEPAREN,s.OPENBRACE,s.OPENBRACKET,s.OPENANGLEBRACKET,s.OPENPAREN];y.on(s.OPENBRACE,_).on(s.OPENBRACKET,k).on(s.OPENANGLEBRACKET,w).on(s.OPENPAREN,S),b.on(s.OPENBRACE,_).on(s.OPENBRACKET,k).on(s.OPENANGLEBRACKET,w).on(s.OPENPAREN,S),_.on(s.CLOSEBRACE,y),k.on(s.CLOSEBRACKET,y),w.on(s.CLOSEANGLEBRACKET,y),S.on(s.CLOSEPAREN,y),C.on(s.CLOSEBRACE,y),E.on(s.CLOSEBRACKET,y),O.on(s.CLOSEANGLEBRACKET,y),x.on(s.CLOSEPAREN,y),T.on(s.CLOSEBRACE,y),P.on(s.CLOSEBRACKET,y),M.on(s.CLOSEANGLEBRACKET,y),I.on(s.CLOSEPAREN,y),_.on(W,C),k.on(W,E),w.on(W,O),S.on(W,x),_.on(H,T),k.on(H,P),w.on(H,M),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),P.on(W,E),M.on(W,O),I.on(W,x),T.on(H,T),P.on(H,P),M.on(H,M),I.on(H,I),y.on(W,y),b.on(W,y),y.on(H,b),b.on(H,b),l.on(s.TLD,V).on(s.DOMAIN,V).on(s.NUM,V).on(s.LOCALHOST,V),V.on(W,V).on(H,j),j.on(W,V).on(H,j);var G=[s.DOMAIN,s.NUM,s.PLUS,s.POUND,s.QUERY,s.UNDERSCORE,s.SYM,s.AMPERSAND,s.TLD];f.on(G,F).on(s.AT,B),v.on(G,F).on(s.AT,B),p.on(G,F),F.on(G,F).on(s.AT,B).on(s.DOT,U),U.on(G,F),B.on(s.TLD,A).on(s.DOMAIN,A).on(s.LOCALHOST,L),t.State=i.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,i=[],o=[];n<t;){for(var s=u,a=null,c=null,l=0,h=null,d=-1;n<t&&!(a=s.next(e[n]));)o.push(e[n++]);for(;n<t&&(c=a||s.next(e[n]));)a=null,(s=c).accepts()?(d=0,h=s):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},44272:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n(73314),r=n(22040),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),s="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("|"),a="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<s.length;g++){var y=(0,i.stateify)(s[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),P=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(":",P);var M=(0,i.stateify)("localhost",d,r.LOCALHOST,r.DOMAIN);l.push.apply(l,M),d.on(a,f),f.on("-",v).on(a,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(a,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,s=null,a=0,u=null,c=-1;r<n&&(s=o.next(t[r]));)(o=s).accepts()?(c=0,u=o):c>=0&&c++,a++,r++;if(!(c<0)){r-=c,a-=c;var l=u.emit();i.push(new l(e.substr(r-a,a)))}}return i},t.start=A},73314:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var i=n(29073),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)}}),s=(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=s,t.stateify=function(e,t,n,i){for(var r=0,s=e.length,a=t,u=[],c=void 0;r<s&&(c=a.next(e[r]));)a=c,r++;if(r>=s)return[];for(;r<s-1;)c=new o(i),u.push(c),a.on(e[r],c),a=c,r++;return c=new o(n),u.push(c),a.on(e[s-1],c),u}},78127:function(e,t){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},37102: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(78127),r=n(29073),o=n(22040);function s(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var a=(0,i.createTokenClass)();a.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)(a,(0,i.createTokenClass)(),{type:"email",isLink:!0}),c=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"text"}),h=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"nl"}),d=(0,r.inherits)(a,(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=[],a=0;i[a]instanceof o.PROTOCOL;)t=!0,r.push(i[a].toString().toLowerCase()),a++;for(;i[a]instanceof o.SLASH;)n=!0,r.push(i[a].toString()),a++;for(;s(i[a]);)r.push(i[a].toString().toLowerCase()),a++;for(;a<i.length;a++)r.push(i[a].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=a,t.MAILTOEMAIL=u,t.EMAIL=c,t.NL=h,t.TEXT=l,t.URL=d},22040: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(78127),r=n(29073),o=(0,i.createTokenClass)();function s(e){var t=e?{v:e}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var a=s(),u=s("@"),c=s(":"),l=s("."),h=s(),d=s(),f=s("\n"),p=s(),v=s("+"),m=s("#"),g=s(),y=s("mailto:"),b=s("?"),_=s("/"),k=s("_"),w=s(),S=s(),C=s(),E=s("{"),O=s("["),x=s("<"),T=s("("),P=s("}"),M=s("]"),I=s(">"),A=s(")"),R=s("&");t.Base=o,t.DOMAIN=a,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=P,t.CLOSEBRACKET=M,t.CLOSEANGLEBRACKET=I,t.CLOSEPAREN=A,t.AMPERSAND=R},29073:function(e,t){"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}},68601:function(e,t){"use strict";t.__esModule=!0;var n="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},i={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function r(e){this.defaultProtocol=(e=e||{}).hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function o(e){return e}t.defaults=i,t.Options=r,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},r.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,r){var o=void 0,s=this[e];if(!s)return s;switch(void 0===s?"undefined":n(s)){case"function":return s(t,r.type);case"object":return"function"==typeof(o=s.hasOwnProperty(r.type)?s[r.type]:i[e])?o(t,r.type):o}return s},getObject:function(e,t,n){var i=this[e];return"function"==typeof i?i(t,n.type):i}}},90272:function(e,t,n){e.exports=n(75275).default},82111:function(e){var t=["stun:","turn:"];e.exports=function(e){var n,i,r=(e||{}).url||e,o={};return"string"==typeof r||r instanceof String?(r=r.trim(),(n=t[t.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=n+r,o.urls=[o.url],o):e):e}},38213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=void 0;var i=n(97558),r=n(39040),o=n(90250),s=r.OpenViduLogger.getInstance(),a=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+"]"),s.info(n)}return e.prototype.sendIceCandidate=function(e){var t=this;s.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&&(s.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)}),s.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=a},62288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var i=n(59901),r=n(39040).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},22212:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Filter=void 0;var i=n(15486),r=n(51860),o=n(39040).OpenViduLogger.getInstance(),s=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(s,a){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),a(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),a(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")]),s()}})})},e.prototype.addEventListener=function(e,t){var n=this;return new Promise(function(i,s){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(a,u){a?(o.error("Error adding filter event listener to event "+e+"for Stream "+n.stream.streamId,a),s(401===a.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(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(s,a){s?(o.error("Error removing filter event listener to event "+e+"for Stream "+t.stream.streamId,s),i(401===s.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(t.handlers.delete(e),o.info("Filter event listener to event "+e+" successfully removed on Stream "+t.stream.streamId),n())})})},e}();t.Filter=s},98905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalRecorder=void 0;var i,r=n(34222),o=n(39040),s=n(63053),a=o.OpenViduLogger.getInstance(),u=function(){function e(e){this.stream=e,this.chunks=[],i=s.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 a.error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder");if(t.state!==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");a.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}):a.log("No mimeType parameter provided. Using default codecs"):a.warn("MediaRecorder#isTypeSupported is not supported. Using default codecs"),t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream(),o),t.mediaRecorder.start(10)}catch(s){i(s)}t.mediaRecorder.ondataavailable=function(e){t.chunks.push(e.data)},t.mediaRecorder.onerror=function(e){a.error("MediaRecorder error: ",e)},t.mediaRecorder.onstart=function(){a.log("MediaRecorder started (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onstop=function(){t.onStopDefault()},t.mediaRecorder.onpause=function(){a.log("MediaRecorder paused (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onresume=function(){a.log("MediaRecorder resumed (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onwarning=function(e){a.log("MediaRecorder warning: "+e)},t.state=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 s=new XMLHttpRequest;if(s.open("POST",e,!0),"object"==typeof t)for(var a=0,u=Object.keys(t);a<u.length;a++){var c=u[a];s.setRequestHeader(c,t[c])}s.onreadystatechange=function(){4===s.readyState&&("2"===s.status.toString().charAt(0)?i(s.responseText):o(s.status))},s.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 s=new XMLHttpRequest;if(s.open("POST",e,!0),"object"==typeof t)for(var a=0,u=Object.keys(t);a<u.length;a++){var c=u[a];s.setRequestHeader(c,t[c])}var l=new FormData;l.append("file",n.blob,n.id+".webm"),s.onreadystatechange=function(){4===s.readyState&&("2"===s.status.toString().charAt(0)?i(s.responseText):o(s.status))},s.send(l)}})},e.prototype.onStopDefault=function(){a.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:"video/webm"}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=r.LocalRecorderState.FINISHED},e}();t.LocalRecorder=u},34051:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenVidu=void 0;var i,r=n(98905),o=n(10920),s=n(35996),a=n(87355),u=n(15486),c=n(51860),l=n(86634),h=n(39040),d=n(63053),f=n(77228),p=n(23543),v=n(85214),m=n(59901),g=n(31111),y=n(5713),b=h.OpenViduLogger.getInstance(),_=function(){function e(){var e=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=v.OpenViduLoggerConfiguration.disabled,this.isPro=!1,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,s=e.stream.videoDimensions.width,a=e.stream.videoDimensions.height,u=setInterval(function(){++o>i&&clearTimeout(u),e.getVideoDimensions(e.stream.getMediaStream()).then(function(n){n.width===s&&n.height===a||(clearTimeout(u),r.sendVideoDimensionsChangedEvent(e,t,s,a,n.width,n.height))})},n)},e.prototype.sendVideoDimensionsChangedEvent=function(e,t,n,i,r,o){var s=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):(s.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(s.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)]),s.session.sendVideoData(e))})},e.prototype.initSession=function(){return this.session=new s.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,s=new o.Publisher(e,i,this);return t&&"function"==typeof t?r=t:n&&(r=n),s.initialize().then(function(){void 0!==r&&r(void 0),s.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==r&&r(e),s.emitEvent("accessDenied",[e])}),this.publishers.push(s),s},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(i,r){var o,s=function(e){e?r(e):i(o)};o=t?n.initPublisher(e,t,s):n.initPublisher(e,s)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){return i.isIPhoneOrIPad()?i.isIOSWithSafari()||i.isIonicIos()||i.isChromeMobileBrowser()||i.isEdgeMobileBrowser()||i.isOperaMobileBrowser()||i.isFirefoxMobileBrowser()?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=[],s=[];i=n.filter(function(e){return"audioinput"===e.kind}),o=t.filter(function(e){return"videoinput"===e.kind}),s=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"})}),s.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 s=i.filter(function(e){return e.label.includes("Wired")})[0];n=s?s.label:"Headset earpiece";break;case 3:var a=i.filter(function(e){return e.label.includes("Bluetooth")})[0];n=a?a.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(s){var a,u;if(s.videoTrack&&s.audioTrack||s.audioTrack&&!1===(null===(a=s.constraints)||void 0===a?void 0:a.video)||s.videoTrack&&!1===(null===(u=s.constraints)||void 0===u?void 0:u.audio))n(t.addAlreadyProvidedTracks(s,new MediaStream));else{s.videoTrack&&delete s.constraints.video,s.audioTrack&&delete s.constraints.audio;var l=!1;if("string"==typeof e.videoSource&&("screen"===e.videoSource||"window"===e.videoSource||i.isElectron()&&e.videoSource.startsWith("screen:"))&&(l=!s.audioTrack&&null!==e.audioSource&&!1!==e.audioSource,navigator.mediaDevices.getDisplayMedia&&!i.isElectron()))return void navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(e){t.addAlreadyProvidedTracks(s,e),l?o(e,s.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:s.constraints.video}:s.constraints).then(function(e){t.addAlreadyProvidedTracks(s,e),l?o(e,s.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,s=e.videoSource;if(null!==o&&!1!==o||(r.constraints.audio=!1),null!==s&&!1!==s||(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&&s instanceof MediaStreamTrack&&(r.videoTrack=s),void 0===o&&(r.constraints.audio=!0),void 0===s&&(r.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==s&&!1!==s){if(e.resolution){var a=e.resolution.toLowerCase().split("x"),u=Number(a[0]),l=Number(a[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),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};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,s=t.audioSource,a=t.videoSource;if("string"==typeof s&&(e.constraints.audio={deviceId:{exact:s}}),"string"==typeof a)if(this.isScreenShare(a))if(this.checkScreenSharingCapabilities())if(i.isElectron()){var u="screen:",l=a.substr(a.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 s=o.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();return void p.getChromeExtensionStatus(s,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 a=new c.OpenViduError(c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");b.error(a),r(a)}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,s){if(t)if("not-installed"===t){var a=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(a),r(a)}else"installed-disabled"===t?(a=new c.OpenViduError(c.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),b.error(a),r(a)):"permission-denied"===t?(a=new c.OpenViduError(c.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),b.error(a),r(a)):(a=new c.OpenViduError(c.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),b.error(a),b.error(t),r(a));else e.constraints.video=s.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,a)},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){if(t)if(e.isMasterNodeCrashed())b.warn("Master Node has crashed!");else{b.error(t);var i=function(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")};-1===e.life?i():e.sendRequest("sessionStatus",{sessionId:e.session.sessionId},function(t,n){e.life===n.life?i():(b.warn("Websocket was able to reconnect to OpenVidu Server, but your Master Node crashed."),e.session.onLostConnection("nodeCrashed"),e.jsonRpcClient.close(4101,"Reconnection fault"))})}else e.jsonRpcClient.resetPing(),e.session.onRecoveredConnection()});else{b.warn("There was no previous connection when running reconnection callback");var t=new a.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[t]),t.callDefaultBehavior()}else alert("Connection error. Please reload page.")},e.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof s.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=_},10920: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 s(e){try{u(i.next(e))}catch(t){o(t)}}function a(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(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Publisher=void 0;var a,u=n(35996),c=n(97558),l=n(83239),h=n(54638),d=n(15486),f=n(976),p=n(51860),v=n(39040),m=n(63053),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,a=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 s(this,function(s){switch(s.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),s.label=1;case 1:return s.trys.push([1,7,,8]),this.stream.isLocalStreamPublished?[4,n()]:[3,4];case 2:return s.sent(),[4,t()];case 3:return[2,s.sent()];case 4:return[4,t()];case 5:return[2,s.sent()];case 6:return[3,8];case 7:throw r=s.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={},s=1500,u=function(t){e.accessDenied=!0,e.accessAllowed=!1,g.error("Publisher initialization failed. "+t.name+": "+t.message),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,s),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=n,o.video=!1,i=Date.now(),e.setPermissionDialogTimer(s),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(i,s),t.addTrack(n.getAudioTracks()[0]),c(t)}).catch(function(n){e.clearPermissionDialogTimer(i,s),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("getMediaError: "+t.toString()),e.clearPermissionDialogTimer(i,s),"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(s),e.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!a.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=a.isIonicIos()||a.isIOSWithSafari(),o=function(){var n,o;if("function"==typeof t.stream.getMediaStream().getVideoTracks()[0].getSettings){var s=t.stream.getMediaStream().getVideoTracks()[0].getSettings();n=s.width||t.videoReference.videoWidth,o=s.height||t.videoReference.videoHeight}else g.warn("MediaStreamTrack does not have getSettings method on "+a.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",(a.isSafariBrowser()||a.isIPhoneOrIPad()&&(a.isChromeMobileBrowser()||a.isEdgeMobileBrowser()||a.isOperaMobileBrowser()||a.isFirefoxMobileBrowser()))&&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},35996: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 s(e){try{u(i.next(e))}catch(t){o(t)}}function a(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(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var a,u=n(38213),c=n(22212),l=n(13591),h=n(62288),d=n(27299),f=n(18820),p=n(95028),v=n(87355),m=n(16464),g=n(54638),y=n(15486),b=n(68206),_=n(75428),k=n(51860),w=n(86634),S=n(39040),C=n(63053),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,a=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 "+a.getName()+" (version "+a.getVersion()+") for "+a.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 s=new l.Subscriber(e,t,r);return s.targetElement&&e.streamManager.createVideoElement(s.targetElement,r.insertMode),s},t.prototype.subscribeAsync=function(e,t,n){var i=this;return new Promise(function(r,o){var s;i.sessionConnected()||o(i.notConnectedError());var a=function(e){e?o(e):r(s)};s=n?i.subscribe(e,t,n,a):i.subscribe(e,t,a)})},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 s=new g.StreamEvent(!0,e,"streamDestroyed",e.stream,"unpublish");e.emitEvent("streamDestroyed",[s]),s.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 s=e.type?e.type:"signal";s&&"signal:"!==s.substring(0,7)&&(s="signal:"+s),r.type=s,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,s;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===(s=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===s?void 0:s.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},t.prototype.once=function(t,n){var i,r,o,s;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===(s=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===s?void 0:s.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},t.prototype.off=function(t,n){var i,r,o,s,a=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)&&(a.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)&&(a.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,e.stream.streamManager)||e.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(s=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===s?void 0:s.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(e){E.warn("Connection "+e.connectionId+" 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.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)]),e.type&&"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)]),e.type&&"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,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,component:null,foundation:null,port:null,priority:null,protocol:null,relatedAddress:null,relatedPort:null,tcpType:null,usernameFragment:null,type:null,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:",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.onForciblyReconnectSubscriber=function(e){var t=this;return new Promise(function(n,i){t.getRemoteConnection(e.connectionId,"onForciblyReconnectSubscriber").then(function(r){if(r.stream&&r.stream.streamId===e.streamId){var o=r.stream;if(o.setupReconnectionEventEmitter(n,i)){if(null!=o.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)o.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=e,i("Ongoing forced subscriber reconnection");else{o.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=e;var s=function(){var e=o.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete o.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,t.onForciblyReconnectSubscriber(e)};o.reconnectionEventEmitter.once("success",function(){s()}),o.reconnectionEventEmitter.once("error",function(){s()})}return}o.completeWebRtcPeerReceive(!0,!0,e.sdpOffer).then(function(){return o.finalResolveForSubscription(!0,n)}).catch(function(t){return o.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream "+e.streamId+": "+t.toString(),i)})}else{var a="No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event";E.error(a),i(a)}}).catch(function(e){E.error(e),i(e)})})},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("leaveRoom error: "+JSON.stringify(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:a.getDescription()?a.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),a.isChromeBrowser()||a.isChromeMobileBrowser()||a.isOperaBrowser()||a.isOperaMobileBrowser()||a.isEdgeBrowser()||a.isEdgeMobileBrowser()||a.isElectron()||a.isSafariBrowser()&&!a.isIonicIos()||a.isAndroidBrowser()||a.isSamsungBrowser()||a.isIonicAndroid()||a.isIOSWithSafari()){var l=function(){return o(c,void 0,void 0,function(){var t,n,i;return s(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 a.isFirefoxBrowser()||a.isFirefoxMobileBrowser()||a.isIonicIos()||a.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 "+a.getName()+" (version "+a.getVersion()+") for "+a.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 s={connections:new Array,streams:new Array};o.value.forEach(function(e){var n=new u.Connection(t,e);t.remoteConnections.set(n.connectionId,n),s.connections.push(n),n.stream&&(t.remoteStreamsCreated.set(n.stream.streamId,!0),s.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),s.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),s.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 s="Remote connection "+e+" unknown when '"+t+"'. Existing remote connections: "+JSON.stringify(n.remoteConnections.keys());r(new k.OpenViduError(k.OpenViduErrorName.GENERIC_ERROR,s))}})},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,s=r.recorder,a=r.webrtcStatsInterval,u=r.sendBrowserLogs;o&&(this.openvidu.secret=o),s&&(this.openvidu.recorder=!0),a&&(this.openvidu.webrtcStatsInterval=+a),u&&(this.openvidu.sendBrowserLogs=u),this.openvidu.isPro=!!a&&!!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),null!=e.life&&(this.openvidu.life=e.life),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},97558: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 s(e){try{u(i.next(e))}catch(t){o(t)}}function a(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(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Stream=void 0;var o,s=n(22212),a=n(13591),u=n(85245),c=n(63230),l=n(90250),h=n(15646),d=n(39402),f=n(15486),p=n(51860),v=n(39040),m=n(63053),g=n(92812),y=n(59901),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,a){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 s.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&&(this.webRtcPeer.dispose(),e=this.webRtcPeer.getId()),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.setupReconnectionEventEmitter=function(e,t){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new y,!1):(console.warn("Trying to reconnect stream "+this.streamId+" ("+(this.isLocal()?"Publisher":"Subscriber")+") but an ongoing reconnection process is active. Waiting for response..."),this.reconnectionEventEmitter.once("success",function(){e()}),this.reconnectionEventEmitter.once("error",function(e){t(e)}),!0)},e.prototype.initWebRtcPeerSend=function(e){var t=this;return new Promise(function(n,i){if(e){if(t.setupReconnectionEventEmitter(n,i))return}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={mediaConstraints:{audio:t.hasAudio,video:t.hasVideo},simulcast:t.session.openvidu.advancedConfiguration.enableSimulcastExperimental||!1,onIceCandidate:t.connection.sendIceCandidate.bind(t.connection),onIceConnectionStateException:function(e,n,i){t.session.emitEvent("exception",[new l.ExceptionEvent(t.session,e,t,n,i)])},iceServers:t.getIceServersConf(),mediaStream:t.mediaStream,mediaServer:t.session.openvidu.mediaServer};e&&t.disposeWebRtcPeer(),t.webRtcPeer=t.displayMyRemote()?new u.WebRtcPeerSendrecv(o):new u.WebRtcPeerSendonly(o),t.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+t.connection.connectionId),t.webRtcPeer.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,s=e?"reconnectStream":"publishVideo";if(e)o={stream:t.streamId,sdpString:i};else{var a="";t.isSendVideo()&&(a="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:a,frameRate:t.frameRate?t.frameRate:-1,videoDimensions:JSON.stringify(t.videoDimensions),filter:t.outboundStreamOpts.publisherProperties.filter,sdpOffer:i}}t.session.openvidu.sendRequest(s,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.finalResolveForSubscription=function(e,t){var n;b.info("'Subscriber' ("+this.streamId+") successfully "+(e?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(e),this.initWebRtcStats(),e&&(null===(n=this.reconnectionEventEmitter)||void 0===n||n.emitEvent("success"),delete this.reconnectionEventEmitter),t()},e.prototype.finalRejectForSubscription=function(e,t,n){var i;b.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(e?"reconnect":"subscribe")+": "+t.toString()),e&&(null===(i=this.reconnectionEventEmitter)||void 0===i||i.emitEvent("error",[t]),delete this.reconnectionEventEmitter),n(t)},e.prototype.initWebRtcPeerReceive=function(e){var t=this;return new Promise(function(n,i){e&&t.setupReconnectionEventEmitter(n,i)||("mediasoup"===t.session.openvidu.mediaServer?t.initWebRtcPeerReceiveFromServer(e).then(function(){return t.finalResolveForSubscription(e,n)}).catch(function(n){return t.finalRejectForSubscription(e,n,i)}):t.initWebRtcPeerReceiveFromClient(e).then(function(){return t.finalResolveForSubscription(e,n)}).catch(function(n){return t.finalRejectForSubscription(e,n,i)}))})},e.prototype.initWebRtcPeerReceiveFromClient=function(e){var t=this;return new Promise(function(n,i){t.completeWebRtcPeerReceive(e,!1).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,!1,o.sdpOffer).then(function(){return n()}).catch(function(e){return i(e)})})})},e.prototype.completeWebRtcPeerReceive=function(e,t,n){var i=this;return new Promise(function(r,o){b.debug("'Session.subscribe(Stream)' called");var s=function(s){b.debug("Sending local SDP "+(n?"answer":"offer")+" to subscribe to "+i.streamId,s);var a=e?"reconnectStream":"receiveVideoFrom",u={};u[e?"stream":"sender"]=i.streamId,n?u[e?"sdpString":"sdpAnswer"]=s:u.sdpOffer=s,e&&(u.forciblyReconnect=t),i.session.openvidu.sendRequest(a,u,function(e,t){e?o(new Error("Error on "+a+" : "+JSON.stringify(e))):r(t)})},a={mediaConstraints:{audio:i.hasAudio,video:i.hasVideo},simulcast:!1,onIceCandidate:i.connection.sendIceCandidate.bind(i.connection),onIceConnectionStateException:function(e,t,n){i.session.emitEvent("exception",[new l.ExceptionEvent(i.session,e,i,t,n)])},iceServers:i.getIceServersConf(),mediaServer:i.session.openvidu.mediaServer};e&&i.disposeWebRtcPeer(),i.webRtcPeer=new u.WebRtcPeerRecvonly(a),i.webRtcPeer.addIceConnectionStateChangeListener(i.streamId),n?i.webRtcPeer.processRemoteOffer(n).then(function(){i.webRtcPeer.createAnswer().then(function(e){i.webRtcPeer.processLocalAnswer(e).then(function(){s(e.sdp)}).catch(function(e){o(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(e)))})}).catch(function(e){o(new Error("(subscribe) SDP create answer error: "+JSON.stringify(e)))})}).catch(function(e){o(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(e)))}):i.webRtcPeer.createOffer().then(function(e){i.webRtcPeer.processLocalOffer(e).then(function(){s(e.sdp)}).catch(function(e){o(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(e)))})}).catch(function(e){o(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 a.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 s=setTimeout(function(){console.warn("["+e+"] Websocket timeout of "+t+"ms"),i(!1)},t);n.session.openvidu.sendRequest("echo",{},function(t,n){clearTimeout(s),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=_},83239: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamManager=void 0;var o,s=n(62288),a=n(39402),u=n(976),c=n(86634),l=n(39040),h=n(63053),d=n(90250),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()||o.isIPhoneOrIPad()&&(o.isChromeMobileBrowser()||o.isEdgeMobileBrowser()||o.isOperaMobileBrowser()||o.isFirefoxMobileBrowser()))&&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 a.StreamManagerEvent(i,"streamPlaying",void 0)])},i}return r(t,e),t.prototype.on=function(t,n){return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new 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 a.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 a.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()||o.isIPhoneOrIPad()&&(o.isChromeMobileBrowser()||o.isEdgeMobileBrowser()||o.isOperaMobileBrowser()||o.isFirefoxMobileBrowser()))&&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}(s.EventDispatcher);t.StreamManager=p},13591: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriber=void 0;var o=n(83239),s=n(39040).OpenViduLogger.getInstance(),a=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,s.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,s.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(o.StreamManager);t.Subscriber=a},34222:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LocalRecorderState=void 0,(n=t.LocalRecorderState||(t.LocalRecorderState={})).READY="READY",n.RECORDING="RECORDING",n.PAUSED="PAUSED",n.FINISHED="FINISHED"},51860:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduError=t.OpenViduErrorName=void 0,(n=t.OpenViduErrorName||(t.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",n.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",n.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",n.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",n.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",n.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",n.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",n.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",n.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",n.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",n.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",n.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",n.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",n.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",n.GENERIC_ERROR="GENERIC_ERROR",t.OpenViduError=function(e,t){this.name=e,this.message=t}},86634:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoInsertMode=void 0,(n=t.VideoInsertMode||(t.VideoInsertMode={})).AFTER="AFTER",n.APPEND="APPEND",n.BEFORE="BEFORE",n.PREPEND="PREPEND",n.REPLACE="REPLACE"},27299: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionEvent=void 0;var o=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.connection=r,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.ConnectionEvent=o},68206: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o){var s=e.call(this,!1,t,"connectionPropertyChanged")||this;return s.connection=n,s.changedProperty=i,s.newValue=r,s.oldValue=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.ConnectionPropertyChangedEvent=o},28866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var n=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=n},90250: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionEvent=t.ExceptionEventName=void 0;var o,s=n(28866);(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 a=function(e){function t(t,n,i,r,o){var s=e.call(this,!1,t,"exception")||this;return s.name=n,s.origin=i,s.message=r,s.data=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(s.Event);t.ExceptionEvent=a},18820: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.FilterEvent=o},75428: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.NetworkQualityLevelChangedEvent=o},15646: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.PublisherSpeakingEvent=o},95028: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecordingEvent=void 0;var o=function(e){function t(t,n,i,r,o){var s=e.call(this,!1,t,n)||this;return s.id=i,r!==i&&(s.name=r),s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.RecordingEvent=o},87355: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.SessionDisconnectedEvent=void 0;var o=n(28866),s=n(39040).OpenViduLogger.getInstance(),a=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(){s.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,s,a,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===(s=e.remoteConnections.get(l))||void 0===s||s.stream.streamManager.removeAllVideos());var h=null===(u=null===(a=e.remoteConnections.get(l))||void 0===a?void 0:a.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=a},16464: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.SignalEvent=o},54638: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamEvent=void 0;var o=n(28866),s=n(10920),a=n(35996),u=n(39040).OpenViduLogger.getInstance(),c=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.stream=r,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof a.Session)u.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof s.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},39402: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.StreamManagerEvent=o},15486: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o,s){var a=e.call(this,!1,t,"streamPropertyChanged")||this;return a.stream=n,a.changedProperty=i,a.newValue=r,a.oldValue=o,a.reason=s,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.StreamPropertyChangedEvent=o},976: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)});Object.defineProperty(t,"__esModule",{value:!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(28866).Event);t.VideoElementEvent=o},7480:function(e){function t(){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}}t.prototype.pop=function(e,t){var n=this.get(e,t);if(null!=n)return this.remove(e,t),n},e.exports=t},99454:function(e,t,n){var i=n(75894);t.JsonRpcClient=i},75894:function(e,t,n){var i=n(31111),r=n(65368),o=n(39040).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var s="RECONNECTING",a="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!==s?(C(),p=s,v&&v()):c.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},o.onreconnected=function(){c.debug("--------- ONRECONNECTED -----------"),p!==a?(p=a,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!==a?(p=a,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(s){}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()}}},19315:function(e,t,n){var i=n(65368);t.WebSocketWithReconnection=i},65368:function(e,t,n){"use strict";var i=n(39040).OpenViduLogger.getInstance();e.exports=function(e){var t,n=!1,r=e.uri,o=!1,s=new WebSocket(r);s.onopen=function(){i.debug("WebSocket connected to "+r),e.onconnected&&e.onconnected()},s.onerror=function(t){i.error("Could not connect to "+r+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var a=function(){3===s.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),s.close(),(s=new WebSocket(r)).onopen=function(){i.debug("Reconnected to "+r+" after "+c+" attempts..."),o=!1,t(),e.onreconnected()&&e.onreconnected(),s.onclose=a},s.onerror=function(t){i.warn("Reconnection error: ",t),c===n?e.ondisconnect&&e.ondisconnect():setTimeout(function(){u(n,c+1)},3e3)}}(n,c)}s.onclose=a,this.close=function(){n=!0,s.close()},this.forceClose=function(){s.close()},this.reconnectWs=function(){i.debug("reconnectWs"),u(2e3,1)},this.send=function(e){s.send(e)},this.addEventListener=function(e,n){(t=function(){s.addEventListener(e,n)})()},this.getReadyState=function(){return s.readyState}}},31111: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(55068).EventEmitter,o=n(5457),s=n(35983),a=n(7480),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,s){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");s=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");s=n,n=t,t=void 0}if(n instanceof Function){if(null!=s)throw new SyntaxError("There can't be parameters after onRequest");s=n,n=void 0}if(n&&n.send instanceof Function&&s&&!(s instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},r.call(this),s&&this.on("request",s),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 a,w=new a,S=new a,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,s){l.call(this,t,n),this.getTransport=function(){return s},this.setTransport=function(e){s=c(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var a=w.get(r,o);s||h.getTransport()||(i?this.duplicated=Boolean(a):Object.defineProperty(this,"duplicated",{value:Boolean(a)}));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 s;return i=c(i),a&&clearTimeout(a.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),s=e.pack(s=u?null==u.error&&t?{error:t}:{method:t?u.error:u.response,params:t||n}:{error:t,result:n},r)):s=a?a.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)}(s,r,o),(i=i||this.getTransport()||h.getTransport())?i.send(s):s}}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 s={method:t,params:n};if(o){var a=function(e,t){h.cancel(s),o(e,t)},u=function(e){return b.timeout=setTimeout(p,("ping"===t?g:m)*Math.pow(2,y++)),C[s]={id:v,dest:i},k.set(b,v,i),(e=e||w||h.getTransport())?e.send(s):s},l=function(e){e=c(e),console.warn(y+" retry for request message:",s);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=s,e.retry=l,a(e)},v=_++,y=0,b={message:s=e.pack(s,v),callback:a,responseMethods:d[t]||{}},w=c(r);return u(r)}return s=e.pack(s),(r=r||this.getTransport())?r.send(s):s},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,s=t.params||{},a=s.from,u=s.dest;if(null==h.peerID||a!=h.peerID){if(null==i&&null==r){var d=new l(o,s);if(h.emit("request",d))return;return d}if(o){if(null==u||u==h.peerID){if(g=k.get(r,a)){var f=g.responseMethods;return o==f.error?_(g,s):o==f.response?_(g,null,s):b()}if(y=S.get(r,a))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,a)))return(y=S.get(r,a))?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,a);if(e)return n.send(e.message)}var t=new O(o,s,null!=i?i:r,a,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,a)}}}o(h,r),h.RpcNotification=l,e.exports=h;var d=n(99454),f=n(19315);(h.clients=d).transports=f,h.packers=s},29510: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}},3999:function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},35983:function(e,t,n){var i=n(29510),r=n(3999);t.JsonRPC=i,t.XmlRPC=r},96568:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=void 0,t.ConsoleLogger=function(e){this.logger=e,this.log=window.console.log,this.info=window.console.info,this.debug=window.console.debug,this.warn=window.console.warn,this.error=window.console.error}},39040:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduLogger=void 0;var i=n(95784),r=n(96568),o=n(85214),s=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.defaultConsoleLogger=new r.ConsoleLogger(window.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return e.configureJSNLog=function(e,t){var n=this;try{if(window.LOG_JSNLOG_RESULTS||this.instance&&e.isPro&&this.instance.isOpenViduBrowserLogsDebugActive(e)&&this.instance.canConfigureJSNLog(e,this.instance)){e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var r=e.finalUserId,s=e.session.sessionId;this.instance.currentAppender=i.JL.createAjaxAppender("appender-"+r+"-"+s),this.instance.currentAppender.setOptions({beforeSend:function(e){var i=e.onreadystatechange;e.onreadystatechange=function(){n.isInvalidResponse(e)&&(Object.defineProperty(e,"readyState",{value:4}),Object.defineProperty(e,"status",{value:200}),n.instance.disableLogger()),i()},e.setRequestHeader("Authorization","Basic "+btoa(r+"%/%"+s+":"+t)),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.setRequestHeader("OV-Final-User-Id",r),e.setRequestHeader("OV-Session-Id",s),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)||HTMLElement&&n instanceof HTMLElement)return;t.add(n)}return n}));return i.length>n.instance.MAX_LENGTH_STRING_JSON&&(i=i.substring(0,n.instance.MAX_LENGTH_STRING_JSON)+"..."),window.LOG_JSNLOG_RESULTS&&console.log(i),i},enabled:!0}),i.JL().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=s,this.instance.info("JSNLog configured.")}}catch(a){console.error("Error configuring JSNLog: "),console.error(a),this.instance.disableLogger()}},e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.isInvalidResponse=function(e){return 401==e.status||403==e.status||404==e.status||0==e.status},e.prototype.canConfigureJSNLog=function(e,t){return e.session.sessionId!=t.loggingSessionId},e.prototype.isOpenViduBrowserLogsDebugActive=function(e){return e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug||e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug_app},e.prototype.getConsoleWithJSNLog=function(){return e=this,{log:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.log.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&i.JL().info(arguments)},info:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.info.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&i.JL().info(arguments)},debug:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.debug.apply(e.defaultConsoleLogger.logger,arguments)},warn:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.warn.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&i.JL().warn(arguments)},error:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.error.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&i.JL().error(arguments)}};var e},e.prototype.replaceWindowConsole=function(){window.console=this.defaultConsoleLogger.logger,window.console.log=this.getConsoleWithJSNLog().log,window.console.info=this.getConsoleWithJSNLog().info,window.console.debug=this.getConsoleWithJSNLog().debug,window.console.warn=this.getConsoleWithJSNLog().warn,window.console.error=this.getConsoleWithJSNLog().error},e.prototype.disableLogger=function(){i.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,window.console=this.defaultConsoleLogger.logger,window.console.log=this.defaultConsoleLogger.log,window.console.info=this.defaultConsoleLogger.info,window.console.debug=this.defaultConsoleLogger.debug,window.console.warn=this.defaultConsoleLogger.warn,window.console.error=this.defaultConsoleLogger.error},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&i.JL().info(arguments)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&i.JL().info(arguments)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&i.JL().warn(arguments)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&i.JL().error(arguments)},e.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},e.prototype.enableProdMode=function(){this.isProdMode=!0},e}();t.OpenViduLogger=s},85214:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduLoggerConfiguration=void 0,(n=t.OpenViduLoggerConfiguration||(t.OpenViduLoggerConfiguration={})).disabled="disabled",n.debug="debug",n.debug_app="debug_app"},77228: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 s(){r?r.isLoaded?r.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(s,100):o(s)}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(s,100))},t.getScreenId=window.getScreenId},23543: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 s(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("get-sourceId","*")}function a(e,t){if(n="",o)return e(null,{mozMediaSource:"window",mediaSource:"window"});var a={mandatory:{chromeMediaSource:r,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=r||n?("desktop"==r&&(a.mandatory.chromeMediaSourceId=n),e(null,a)):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){a.mandatory.chromeMediaSourceId=t,n&&(a.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,a)}):s(function(t){a.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,a)})}t.getScreenConstraints=a,t.getScreenConstraintsWithAudio=function(e){a(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=s},63053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformUtils=void 0;var i=n(53896),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||"Firefox for iOS"===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,n=(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)||"iOS"===(null===(t=i.os)||void 0===t?void 0:t.family))&&n>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},85245: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.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(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(s,a)}u((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcPeerSendrecv=t.WebRtcPeerSendonly=t.WebRtcPeerRecvonly=t.WebRtcPeer=void 0;var u=n(42596),c=n(79148),l=n(90250),h=n(39040),d=n(63053),f=h.OpenViduLogger.getInstance(),p=[{rid:"r0",scaleResolutionDownBy:4},{rid:"r1",scaleResolutionDownBy:2},{rid:"r2",scaleResolutionDownBy:1}],v=function(){function e(e){var t=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,d.PlatformUtils.getInstance(),this.configuration=o(o({},e),{iceServers:e.iceServers&&e.iceServers.length>0?e.iceServers:u(),mediaStream:void 0!==e.mediaStream?e.mediaStream:null,mode:e.mode?e.mode:"sendrecv",id:e.id?e.id:this.generateUniqueId()}),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),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)}})}return e.prototype.getId=function(){return this.configuration.id},e.prototype.dispose=function(){if(f.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){return s(e,void 0,void 0,function(){var e,i,r,o,s,u,c,l,h,d,v,m;return a(this,function(a){switch(a.label){case 0:if(!("addTransceiver"in this.pc))return[3,7];if(f.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,5];if(!this.configuration.mediaStream)return n(new Error(this.configuration.mode+" direction requested, but no stream was configured to be sent")),[2];e=0,i=this.configuration.mediaStream.getTracks(),a.label=1;case 1:return e<i.length?(r=i[e],o={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},this.configuration.simulcast&&"video"===r.kind&&(o.sendEncodings=p),s=this.pc.addTransceiver(r,o),this.configuration.simulcast&&"video"===r.kind?"encodings"in(u=s.sender.getParameters())&&u.encodings.length===o.sendEncodings.length?[3,3]:(u.encodings=o.sendEncodings,[4,s.sender.setParameters(u)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return e++,[3,1];case 4:return[3,6];case 5:for(c=0,l=["audio","video"];c<l.length;c++)this.configuration.mediaConstraints[h=l[c]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(h,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));a.label=6;case 6:return this.pc.createOffer().then(function(e){return t(e)}).catch(function(e){return n(e)}),[3,8];case 7:f.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi(),d=this.configuration.mediaConstraints.audio,v=this.configuration.mediaConstraints.video,m={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&d,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&v},f.debug("RTCPeerConnection.createOffer() options:",JSON.stringify(m)),this.pc.createOffer(m).then(function(e){return t(e)}).catch(function(e){return n(e)}),a.label=8;case 8:return[2]}})})})},e.prototype.deprecatedPeerConnectionTrackApi=function(){for(var e=0,t=this.configuration.mediaStream.getTracks();e<t.length;e++)this.pc.addTrack(t[e],this.configuration.mediaStream)},e.prototype.createAnswer=function(){var e=this;return new Promise(function(t,n){if("getTransceivers"in e.pc){f.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var i=function(t){if(!e.configuration.mediaConstraints[t])return"continue";var i=e.pc.getTransceivers().find(function(e){return e.receiver.track.kind===t});i?i.direction=e.configuration.mode:n(new Error(t+" requested, but no transceiver was created from remote description"))},r=0,o=["audio","video"];r<o.length;r++)i(o[r]);e.pc.createAnswer().then(function(e){return t(e)}).catch(function(e){return n(e)})}else e.configuration.mediaConstraints&&e.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video}).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?(f.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};f.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){f.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};f.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 s(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(f.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.configuration.id+" ("+e+') change to "disconnected". Possible network disconnection';f.warn(n),t.configuration.onIceConnectionStateException(l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,n);break;case"failed":var i="IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') to "failed"';f.error(i),t.configuration.onIceConnectionStateException(l.ExceptionEventName.ICE_CONNECTION_FAILED,i);break;case"closed":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "closed"');break;case"new":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "new"');break;case"checking":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "checking"');break;case"connected":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "connected"');break;case"completed":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "completed"')}})},e.prototype.generateUniqueId=function(){return c.v4()},e}();t.WebRtcPeer=v;var m=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(v);t.WebRtcPeerRecvonly=m;var g=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(v);t.WebRtcPeerSendonly=g;var y=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(v);t.WebRtcPeerSendrecv=y},63230: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 s(e){try{u(i.next(e))}catch(t){o(t)}}function a(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(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcStats=void 0;var o,s=n(39040),a=n(63053),u=s.OpenViduLogger.getInstance(),c=function(){function e(e){this.stream=e,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,o=a.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,s,a,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,s=new Map,a=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":s.set(e.id,e);break;case"remote-candidate":a.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=s.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=a.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("sendStats error: "+JSON.stringify(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,i,o,s,a,c=this;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return e=r.sent(),i=this.getWebRtcStatsResponseOutline(),o=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],s=["availableOutgoingBitrate","currentRoundTripTime"],e.forEach(function(e){var t=null!=e.mediaType?e.mediaType:e.kind,n=function(n,r){null!=e[r]&&null!=i[n]&&(!t&&o.indexOf(r)>-1&&(t="video"),null!=n&&null!=t&&null!=r&&null!=i[n][t]?i[n][t][r]=Number(e[r]):null!=n&&null!=r&&s.includes(r)&&(i[n][r]=Number(e[r])))};switch(e.type){case"outbound-rtp":n("outbound","bytesSent"),n("outbound","packetsSent"),n("outbound","framesEncoded"),n("outbound","nackCount"),n("outbound","firCount"),n("outbound","pliCount"),n("outbound","qpSum");break;case"inbound-rtp":n("inbound","bytesReceived"),n("inbound","packetsReceived"),n("inbound","packetsLost"),n("inbound","jitter"),n("inbound","framesDecoded"),n("inbound","nackCount"),n("inbound","firCount"),n("inbound","pliCount");break;case"track":n("inbound","jitterBufferDelay"),n("inbound","framesReceived"),n("outbound","framesDropped"),n("outbound","framesSent"),n(c.stream.isLocal()?"outbound":"inbound","frameHeight"),n(c.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":n("candidatepair","currentRoundTripTime"),n("candidatepair","availableOutgoingBitrate")}}),(null==i?void 0:i.candidatepair)&&0!==Object.keys(i.candidatepair).length||delete i.candidatepair,[2,t(i)];case 2:return a=r.sent(),u.error("Error getting common stats: ",a),[2,n(a)];case 3:return[2]}})})})]})})},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:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},e}();t.WebRtcStats=c},15904:function(e,t,n){"use strict";t.Dn=void 0;var i=n(95784),r=n(34051);Object.defineProperty(t,"Dn",{enumerable:!0,get:function(){return r.OpenVidu}}),n(35996),n(10920),n(13591),n(83239),n(97558),n(38213),n(98905),n(22212),n(34222),n(51860),n(86634),n(28866),n(27299),n(15646),n(95028),n(87355),n(16464),n(54638),n(39402),n(976),n(15486),n(68206),n(18820),n(75428),n(90250),n(62288),i.JL.setOptions({enabled:!1})},53896:function(e,t,n){var i;e=n.nmd(e),(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,s=r[typeof t]&&t&&r.object&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var a=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<=a)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||{},s=r.userAgent||"";t||(t=s);var a,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",P=n.document||{},M=n.operamini||n.opera,I=u.test(I=i&&M?M["[[Class]]"]:v(M))?I:M=null,A=t,R=[],L=null,N=t==s,D=N&&M&&"function"==typeof M.version&&M.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&&(a=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(F=y(a[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")),(a=/\bGoogle TV\b/.exec(F))&&(F=a[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=(a=e(t.replace(/like iPhone OS/,""))).manufacturer,F=a.product):/^iP/.test(F)?(j||(j="Safari"),U="iOS"+((a=/ OS ([\d_]+)/i.exec(t))?" "+a[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&&(a=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+a[1]):"Firefox"==j&&(a=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),F||(F=a[1])):!j||(a=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!F&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(a+"/")+8))&&(j=null),(a=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:a)+" Browser")):"Electron"==j&&(a=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+a),D||(D=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)"])),(a=("iCab"==V&&parseFloat(D)>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=[a]),"IE"==j&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",U="Windows Phone 8.x",R.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==V&&(a=/\brv:([\d.]+)/.exec(t))&&(j&&R.push("identifying as "+j+(D?" "+D:"")),j="IE",D=a[1]),N){if(/^(?:boolean|number|string|undefined)$/.test(d=null!=(l=n)?typeof l.global:"number")||"object"==d&&!l.global)v(a=n.runtime)==k?(j="Adobe AIR",U=a.flash.system.Capabilities.os):v(a=n.phantom)==C?(j="PhantomJS",D=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof P.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?((a=+a[1]+4)!=(D=[D,P.documentMode])[1]&&(R.push("IE "+D[1]+" mode"),V&&(V[1]=""),D[1]=a),D="IE"==j?String(D[1].toFixed(1)):D[0]):"number"==typeof P.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(R.push("masking as "+j+" "+D),j="IE",D="11.0",V=["Trident"],U="Windows");else if(E&&(A=(a=E.lang.System).getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),O){try{D=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(G){(a=n.system)&&a.global.system==n.system&&(j="Narwhal",U||(U=a[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(R.push("Node "+a.versions.node),j="Electron",D=a.versions.electron):"string"==typeof a.versions.nw&&(R.push("Chromium "+D,"Node "+a.versions.node),j="NW.js",D=a.versions.nw)),j||(j="Node.js",A=a.arch,U=a.platform,D=(D=/[\d.]+/.exec(a.version))?D[0]:null));U=U&&f(U)}if(D&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(N&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(L=/b/i.test(a)?"beta":"alpha",D=D.replace(RegExp(a+"\\+?$"),"")+("beta"==L?T:x)+(/\d+\+?/.exec(a)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))j="Firefox Mobile";else if("Maxthon"==j&&D)D=D.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))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||D)?(U=((a=[a,/BB10/.test(t)])[1]?(F=null,B="BlackBerry"):"Device Software")+" "+a[0],D=null):this!=p&&"Wii"!=F&&(N&&M||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==j&&(U&&!/^Win/.test(U)&&D>5.5||/\bWindows XP\b/.test(U)&&D>8||8==D&&!/\bTrident\b/.test(t)))&&!u.test(a=e.call(p,t.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(j)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,j=I?f(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),N||(D=null)),V=["Presto"],R.push(a));else j+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==j&&"+"==a[1].slice(-1)?(j="WebKit Nightly",L="alpha",D=a[1].slice(0,-1)):D!=a[1]&&D!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(D=null),a[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==V&&(V=["Blink"]),N&&(b||a[1])?(V&&(V[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:a<602?9:a<604?10:a<606?11:a<608?12:"12"),V&&(V[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==j&&(!D||parseInt(D)>45)?D=a:"Chrome"==j&&/\bHeadlessChrome/i.test(t)&&R.unshift("headless")),"Opera"==j&&(a=/\bzbov|zvav$/.exec(U))?(j+=" ",R.unshift("desktop mode"),"zvav"==a?(j+="Mini",D=null):j+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(V&&V[1])?(R.unshift("desktop mode"),j="Chrome Mobile",D=null,/\bOS X\b/.test(U)?(B="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(j)&&!D&&(D=W("Chrome")),D&&0==D.indexOf(a=/[\d.]+$/.exec(U))&&t.indexOf("/"+a+"-")>-1&&(U=y(U.replace(a,""))),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])&&(a=V[V.length-1])&&R.push(a),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&&(a=/ ([\d.+]+)$/.exec(U),c=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!c?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\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(" *"+a),"")),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(D)>=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=L,H.product=F,H.ua=t,H.version=j&&D,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(D),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)},45796: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(81847),o=n(53101),s=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=s},33594:function(e,t,n){"use strict";var i=n(35177),r=n(16847),o=n(68760),s=n(73395),a=n(29599),u=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||a.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.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){a.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=c(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:s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=c(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}();function c(e){if(e||(e=a.config.Promise||Promise),!e)throw new Error("no Promise impl found");return e}t.Observable=u},41117:function(e,t,n){"use strict";var i=n(29599),r=n(90159);t.empty={closed:!0,next:function(e){},error:function(e){if(i.config.useDeprecatedSynchronousErrorHandling)throw e;r.hostReportError(e)},complete:function(){}}},81847: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(33594),o=n(77900),s=n(11147),a=n(53101),u=n(73868),c=n(44775),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 a.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 a.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 a.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 a.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(e.complete(),s.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):s.Subscription.EMPTY},t}(h);t.AnonymousSubject=d},73868: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(11147).Subscription);t.SubjectSubscription=r},77900: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(50381),o=n(41117),s=n(11147),a=n(44775),u=n(29599),c=n(90159),l=function(e){function t(n,i,r){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.empty;break;case 1:if(!n){s.destination=o.empty;break}if("object"==typeof n){n instanceof t?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,i,r)}return s}return i(t,e),t.prototype[a.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}(s.Subscription);t.Subscriber=l;var h=function(e){function t(t,n,i,s){var a,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return r.isFunction(n)?a=n:n&&(a=n.next,i=n.error,s=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=a,u._error=i,u._complete=s,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},11147:function(e,t,n){"use strict";var i=n(76546),r=n(4593),o=n(50381),s=n(19132),a=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,a=n._parentOrParents,c=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof e)a.remove(this);else if(null!==a)for(var d=0;d<a.length;++d)a[d].remove(this);if(o.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(v){t=v instanceof s.UnsubscriptionError?u(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 s.UnsubscriptionError?t=t.concat(u(v.errors)):t.push(v)}}}if(t)throw new s.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}();function u(e){return e.reduce(function(e,t){return e.concat(t instanceof s.UnsubscriptionError?t.errors:t)},[])}t.Subscription=a},29599:function(e,t){"use strict";var n=!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 n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},87683: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(77900),o=n(33594),s=n(71771),a=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=a;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):s.subscribeTo(e)(t)}},36969:function(e,t,n){"use strict";var i=n(33594);function r(e){e.subscriber.error(e.error)}t._=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)})}},41331: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(87683);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 s(e,this.selector,this.caught))},e}(),s=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(s){return void e.prototype.error.call(this,s)}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)},25073:function(e,t){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}t.getSymbolIterator=n,t.iterator=n(),t.$$iterator=t.iterator},68760:function(e,t){"use strict";t.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},44775:function(e,t){"use strict";t.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),t.$$rxSubscriber=t.rxSubscriber},53101:function(e,t){"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}()},19132:function(e,t){"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}()},35177:function(e,t,n){"use strict";var i=n(77900);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}},90159:function(e,t){"use strict";t.hostReportError=function(e){setTimeout(function(){throw e},0)}},74446:function(e,t){"use strict";t.identity=function(e){return e}},76546:function(e,t){"use strict";t.isArray=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},49536:function(e,t){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},50381:function(e,t){"use strict";t.isFunction=function(e){return"function"==typeof e}},4593:function(e,t){"use strict";t.isObject=function(e){return null!==e&&"object"==typeof e}},14273:function(e,t){"use strict";t.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},73395:function(e,t,n){"use strict";var i=n(74446);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},71771:function(e,t,n){"use strict";var i=n(91923),r=n(59970),o=n(41721),s=n(32909),a=n(49536),u=n(14273),c=n(4593),l=n(25073),h=n(68760);t.subscribeTo=function(e){if(e&&"function"==typeof e[h.observable])return s.subscribeToObservable(e);if(a.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.")}},91923:function(e,t){"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()}}},41721:function(e,t,n){"use strict";var i=n(25073);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}}},32909:function(e,t,n){"use strict";var i=n(68760);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)}}},59970:function(e,t,n){"use strict";var i=n(90159);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}}},16847:function(e,t,n){"use strict";var i=n(77900),r=n(44775),o=n(41117);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)}},79148:function(e,t,n){"use strict";var i;n.r(t),n.d(t,{NIL:function(){return M},parse:function(){return m},stringify:function(){return d},v1:function(){return v},v3:function(){return E},v4:function(){return O},v5:function(){return P},validate:function(){return a},version:function(){return I}});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 s=/^(?:[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,a=function(e){return"string"==typeof e&&s.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(!a(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),s=(e=e||{}).node||l,a=void 0!==e.clockseq?e.clockseq:h;if(null==s||null==a){var u=e.random||(e.rng||o)();null==s&&(s=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=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&&(a=a+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=a;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++]=a>>>8|128,r[i++]=255&a;for(var b=0;b<6;++b)r[i+b]=s[b];return t||d(r)},m=function(e){if(!a(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};function g(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 s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return d(s)}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((s=b(b(t,e),b(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function k(e,t,n,i,r,o,s){return _(t&n|~t&i,e,t,r,o,s)}function w(e,t,n,i,r,o,s){return _(t&i|n&~i,e,t,r,o,s)}function S(e,t,n,i,r,o,s){return _(t^n^i,e,t,r,o,s)}function C(e,t,n,i,r,o,s){return _(n^(t|~i),e,t,r,o,s)}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,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}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,s=0;s<e.length;s+=16){var a=n,u=i,c=r,l=o;n=k(n,i,r,o,e[s],7,-680876936),o=k(o,n,i,r,e[s+1],12,-389564586),r=k(r,o,n,i,e[s+2],17,606105819),i=k(i,r,o,n,e[s+3],22,-1044525330),n=k(n,i,r,o,e[s+4],7,-176418897),o=k(o,n,i,r,e[s+5],12,1200080426),r=k(r,o,n,i,e[s+6],17,-1473231341),i=k(i,r,o,n,e[s+7],22,-45705983),n=k(n,i,r,o,e[s+8],7,1770035416),o=k(o,n,i,r,e[s+9],12,-1958414417),r=k(r,o,n,i,e[s+10],17,-42063),i=k(i,r,o,n,e[s+11],22,-1990404162),n=k(n,i,r,o,e[s+12],7,1804603682),o=k(o,n,i,r,e[s+13],12,-40341101),r=k(r,o,n,i,e[s+14],17,-1502002290),n=w(n,i=k(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=w(o,n,i,r,e[s+6],9,-1069501632),r=w(r,o,n,i,e[s+11],14,643717713),i=w(i,r,o,n,e[s],20,-373897302),n=w(n,i,r,o,e[s+5],5,-701558691),o=w(o,n,i,r,e[s+10],9,38016083),r=w(r,o,n,i,e[s+15],14,-660478335),i=w(i,r,o,n,e[s+4],20,-405537848),n=w(n,i,r,o,e[s+9],5,568446438),o=w(o,n,i,r,e[s+14],9,-1019803690),r=w(r,o,n,i,e[s+3],14,-187363961),i=w(i,r,o,n,e[s+8],20,1163531501),n=w(n,i,r,o,e[s+13],5,-1444681467),o=w(o,n,i,r,e[s+2],9,-51403784),r=w(r,o,n,i,e[s+7],14,1735328473),n=S(n,i=w(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=S(o,n,i,r,e[s+8],11,-2022574463),r=S(r,o,n,i,e[s+11],16,1839030562),i=S(i,r,o,n,e[s+14],23,-35309556),n=S(n,i,r,o,e[s+1],4,-1530992060),o=S(o,n,i,r,e[s+4],11,1272893353),r=S(r,o,n,i,e[s+7],16,-155497632),i=S(i,r,o,n,e[s+10],23,-1094730640),n=S(n,i,r,o,e[s+13],4,681279174),o=S(o,n,i,r,e[s],11,-358537222),r=S(r,o,n,i,e[s+3],16,-722521979),i=S(i,r,o,n,e[s+6],23,76029189),n=S(n,i,r,o,e[s+9],4,-640364487),o=S(o,n,i,r,e[s+12],11,-421815835),r=S(r,o,n,i,e[s+15],16,530742520),n=C(n,i=S(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=C(o,n,i,r,e[s+7],10,1126891415),r=C(r,o,n,i,e[s+14],15,-1416354905),i=C(i,r,o,n,e[s+5],21,-57434055),n=C(n,i,r,o,e[s+12],6,1700485571),o=C(o,n,i,r,e[s+3],10,-1894986606),r=C(r,o,n,i,e[s+10],15,-1051523),i=C(i,r,o,n,e[s+1],21,-2054922799),n=C(n,i,r,o,e[s+8],6,1873313359),o=C(o,n,i,r,e[s+15],10,-30611744),r=C(r,o,n,i,e[s+6],15,-1560198380),i=C(i,r,o,n,e[s+13],21,1309151649),n=C(n,i,r,o,e[s+4],6,-145523070),o=C(o,n,i,r,e[s+11],10,-1120210379),r=C(r,o,n,i,e[s+2],15,718787259),i=C(i,r,o,n,e[s+9],21,-343485551),n=b(n,a),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 P=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),s=new Array(o),a=0;a<o;++a){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*a+4*c]<<24|e[64*a+4*c+1]<<16|e[64*a+4*c+2]<<8|e[64*a+4*c+3];s[a]=u}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[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]=s[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]]}),M="00000000-0000-0000-0000-000000000000",I=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},39270:function(e){function t(){}e.exports=t,t.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,s=r?arguments[2]:arguments[1];function a(){i.off(e,a),s.apply(this,arguments)}return this.on(e,o,a),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],s=this.getWildcardCallbacks(e);if(o)for(t=0,n=(i=o.slice()).length;t<n&&i[t];++t)i[t].apply(this,r);if(s)for(n=s.length,t=0,n=(i=s.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}},t.mixin(t)},59901:function(e,t,n){var i;!function(t){"use strict";function r(){}var o=r.prototype,s=t.EventEmitter;function a(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===a(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=a(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,s=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):s.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,s=this.getListenersAsObject(e);for(o in s)if(s.hasOwnProperty(o))for(n=s[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=s,r},void 0===(i=(function(){return r}).call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof window?window:this||{})},48711: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){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&&o(e.prototype,t),n&&o(e,n),e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(HM){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="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)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){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(u){a=!0,r=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(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&&null!=e[Symbol.iterator]||null!=e["@@iterator"])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)}var x=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function T(e){return null!==e&&"object"==typeof e}function P(e){return"function"==typeof e}var M=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),I=function(){var e=function(){function e(t){a(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 s=0;s<n.length;++s)n[s].remove(this);if(P(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(HM){t=HM instanceof M?A(HM.errors):[HM]}}if(x(o))for(var a=-1,u=o.length;++a<u;){var c=o[a];if(T(c))try{c.unsubscribe()}catch(HM){t=t||[],HM instanceof M?t=t.concat(A(HM.errors)):t.push(HM)}}if(t)throw new M(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function A(e){return e.reduce(function(e,t){return e.concat(t instanceof M?t.errors:t)},[])}var R=!1,L={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 D={closed:!0,next:function(e){},error:function(e){if(L.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 o;switch(a(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=D;break;case 1:if(!e){o.destination=D;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(d(o))):(o.syncErrorThrowable=!0,o.destination=new F(d(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new F(d(o),e,i,r)}return o}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,o){var s,u;a(this,n),(s=t.call(this))._parentSubscriber=e;var c=d(s);return P(i)?u=i:i&&(u=i.next,r=i.error,o=i.complete,i!==D&&(P((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=o,s}return s(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;L.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=L.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)};L.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(),L.useDeprecatedSynchronousErrorHandling)throw n;N(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!L.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return L.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){a(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(D)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||L.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),L.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){L.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=L.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 a(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 a(this,n),(i=t.call(this,e)).destination=e,i}return n}(j),Y=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(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 Q(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 Q(e,t)},e}(),Q=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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}(Y);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){a(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 o;return a(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||d(o),o}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 n=e,function(e){var t=n[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 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,N),t}}(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=T(e)?"an invalid object":"'".concat(e,"'"),r="You provided ".concat(i," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(r)};function se(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 ae(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 se(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 a(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 a(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 ae(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;a(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,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return a(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return 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?se(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){a(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 a(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 a(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 a(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 Y}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 Pe=Ee({__forward_ref__:Ee});function Me(e){return e.__forward_ref__=Me,e.toString=function(){return xe(this())},e}function Ie(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(Pe)&&e.__forward_ref__===Me}var Re=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 Le(e){return"string"==typeof e?e:null==e?"":String(e)}function Ne(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Le(e)}function De(e,t){var n=t?" in ".concat(t):"";throw new Re("201","No provider for ".concat(Ne(e)," found").concat(n))}function Ve(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function je(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fe(e){return Be(e,We)||Be(e,Ge)}function Be(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ue(e){return e&&(e.hasOwnProperty(He)||e.hasOwnProperty(qe))?e[He]:null}var ze,We=Ee({"\u0275prov":Ee}),He=Ee({"\u0275inj":Ee}),Ge=Ee({ngInjectableDef:Ee}),qe=Ee({ngInjectorDef:Ee}),Ze=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Ye(){return ze}function Qe(e){var t=ze;return ze=e,t}function Ke(e,t,n){var i=Fe(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ze.Optional?null:void 0!==t?t:void De(xe(e),"Injector")}function Je(e){return{toString:e}.toString()}var Xe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),$e=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),et="undefined"!=typeof globalThis&&globalThis,tt="undefined"!=typeof window&&window,nt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,it="undefined"!=typeof global&&global,rt=et||it||tt||nt,ot={},st=[],at=Ee({"\u0275cmp":Ee}),ut=Ee({"\u0275dir":Ee}),ct=Ee({"\u0275pipe":Ee}),lt=Ee({"\u0275mod":Ee}),ht=Ee({"\u0275loc":Ee}),dt=Ee({"\u0275fac":Ee}),ft=Ee({__NG_ELEMENT_ID__:Ee}),pt=0;function vt(e){return Je(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===Xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||st,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||$e.Emulated,id:"c",styles:e.styles||st,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=pt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(mt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(gt)}:null,n})}function mt(e){return St(e)||function(e){return e[ut]||null}(e)}function gt(e){return function(e){return e[ct]||null}(e)}var yt={};function bt(e){return Je(function(){var t={type:e.type,bootstrap:e.bootstrap||st,declarations:e.declarations||st,imports:e.imports||st,exports:e.exports||st,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(yt[e.id]=e.type),t})}function _t(e,t){if(null==e)return ot;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 kt=vt;function wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function St(e){return e[at]||null}function Ct(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(xe(e)," does not have '\u0275mod' property."));return n}var Et=20,Ot=10;function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Tt(e){return Array.isArray(e)&&!0===e[1]}function Pt(e){return 0!=(8&e.flags)}function Mt(e){return 2==(2&e.flags)}function It(e){return 1==(1&e.flags)}function At(e){return null!==e.template}function Rt(e,t){return e.hasOwnProperty(dt)?e[dt]:null}var Lt=function(){function e(t,n,i){a(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 Dt}function Dt(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===ot)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:ot,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Lt(u&&u.currentValue,t,s===ot),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 Yt(e,t){return e[t]}function Qt(e,t){var n=t[e];return xt(n)?n:n[0]}function Kt(e){return 4==(4&e[2])}function Jt(e){return 128==(128&e[2])}function Xt(e,t){return null==t?null:e[t]}function $t(e){e[18]=0}function en(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var tn={lFrame:En(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nn(){return tn.bindingsEnabled}function rn(){return tn.lFrame.lView}function on(){return tn.lFrame.tView}function sn(e){return tn.lFrame.contextLView=e,e[8]}function an(){for(var e=un();null!==e&&64===e.type;)e=e.parent;return e}function un(){return tn.lFrame.currentTNode}function cn(e,t){var n=tn.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return tn.lFrame.isParent}function hn(){tn.lFrame.isParent=!1}function dn(){return tn.isInCheckNoChangesMode}function fn(e){tn.isInCheckNoChangesMode=e}function pn(){var e=tn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vn(){return tn.lFrame.bindingIndex++}function mn(e){var t=tn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){tn.lFrame.currentDirectiveIndex=e}function yn(e){var t=tn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function bn(){return tn.lFrame.currentQueryIndex}function _n(e){tn.lFrame.currentQueryIndex=e}function kn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wn(e,t,n){if(n&Ze.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Ze.Host||null===(i=kn(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=tn.lFrame=Cn();return o.currentTNode=t,o.lView=e,!0}function Sn(e){var t=Cn(),n=e[1];tn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cn(){var e=tn.lFrame,t=null===e?null:e.child;return null===t?En(e):t}function En(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 On(){var e=tn.lFrame;return tn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var xn=On;function Tn(){var e=On();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(tn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,tn.lFrame.contextLView))[8]}function Mn(){return tn.lFrame.selectedIndex}function In(e){tn.lFrame.selectedIndex=e}function An(){var e=tn.lFrame;return Zt(e.tView,e.selectedIndex)}function Rn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,s=r.ngAfterContentChecked,a=r.ngAfterViewInit,u=r.ngAfterViewChecked,c=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),a&&(e.viewHooks||(e.viewHooks=[])).push(-n,a),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 Ln(e,t,n){Vn(e,t,3,n)}function Nn(e,t,n,i){(3&e[2])===n&&Vn(e,t,n,i)}function Dn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function Vn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,s=0,a=void 0!==i?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(s=t[a],null!=i&&s>=i)break}else t[a]<0&&(e[18]+=65536),(s<r||-1==r)&&(jn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function jn(e,t,n,i){var r=n[i]<0,o=n[i+1],s=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}var Fn=-1,Bn=function e(t,n,i){a(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Un(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 s=n[r++],a=n[r++],u=n[r++];i?e.setAttribute(t,a,u,s):t.setAttributeNS(s,a,u)}else{var c=o,l=n[++r];Wn(c)?i&&e.setProperty(t,c,l):i?e.setAttribute(t,c,l):t.setAttribute(c,l),r++}}return r}function zn(e){return 3===e||4===e||6===e}function Wn(e){return 64===e.charCodeAt(0)}function Hn(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||Gn(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Gn(e,t,n,i,r){var o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){var a=e[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=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!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function qn(e){return e!==Fn}function Zn(e){return 32767&e}function Yn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Qn=!0;function Kn(e){var t=Qn;return Qn=e,t}var Jn=0;function Xn(e,t){var n=ei(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$n(i.data,e),$n(t,null),$n(i.blueprint,null));var r=ti(e,t),o=e.injectorIndex;if(qn(r))for(var s=Zn(r),a=Yn(r,t),u=a[1].data,c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c];return t[o+8]=r,o}function $n(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ei(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ti(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],s=o.type;if(null===(i=2===s?o.declTNode:1===s?r[6]:null))return Fn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Fn}function ni(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Jn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ii(e,t,n){if(n&Ze.Optional)return e;De(t,"NodeInjector")}function ri(e,t,n,i){if(n&Ze.Optional&&void 0===i&&(i=null),0==(n&(Ze.Self|Ze.Host))){var r=e[9],o=Qe(void 0);try{return r?r.get(t,i,n&Ze.Optional):Ke(t,i,n&Ze.Optional)}finally{Qe(o)}}return ii(i,t,n)}function oi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ze.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=hi(n);if("function"==typeof o){if(!wn(t,e,i))return i&Ze.Host?ii(r,n,i):ri(t,n,i,r);try{var s=o(i);if(null!=s||i&Ze.Optional)return s;De(n)}finally{xn()}}else if("number"==typeof o){var a=null,u=ei(e,t),c=Fn,l=i&Ze.Host?t[16][6]:null;for((-1===u||i&Ze.SkipSelf)&&((c=-1===u?ti(e,t):t[u+8])!==Fn&&fi(i,!1)?(a=t[1],u=Zn(c),t=Yn(c,t)):u=-1);-1!==u;){var h=t[1];if(di(o,u,h.data)){var d=ui(u,t,n,a,i,l);if(d!==si)return d}(c=t[u+8])!==Fn&&fi(i,t[1].data[u+8]===l)&&di(o,u,t)?(a=h,u=Zn(c),t=Yn(c,t)):u=-1}}}return ri(t,n,i,r)}var si={};function ai(){return new pi(an(),rn())}function ui(e,t,n,i,r,o){var s=t[1],a=s.data[e+8],u=ci(a,s,n,null==i?Mt(a)&&Qn:i!=s&&0!=(3&a.type),r&Ze.Host&&o===a);return null!==u?li(t,s,u,a):si}function ci(e,t,n,i,r){for(var o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,l=r?a+c:e.directiveEnd,h=i?a:a+c;h<l;h++){var d=s[h];if(h<u&&n===d||h>=u&&d.type===n)return h}if(r){var f=s[u];if(f&&At(f)&&f.type===n)return u}return null}function li(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Bn){var s=r;s.resolving&&function(e,t){throw new Re("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Ne(o[n]));var a=Kn(s.canSeeViewProviders);s.resolving=!0;var u=s.injectImpl?Qe(s.injectImpl):null;wn(e,i,Ze.Default);try{r=e[n]=s.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 s=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}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&&Qe(u),Kn(a),s.resolving=!1,xn()}}return r}function hi(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:ai:t}function di(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function fi(e,t){return!(e&Ze.Self||e&Ze.Host&&t)}var pi=function(){function e(t,n){a(this,e),this._tNode=t,this._lView=n}return s(e,[{key:"get",value:function(e,t){return oi(this._tNode,this._lView,e,void 0,t)}}]),e}();function vi(e){return Je(function(){for(var t=e.prototype.constructor,n=t[dt]||mi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[dt]||mi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function mi(e){return Ae(e)?function(){var t=mi(Ie(e));return t&&t()}:Rt(e)}function gi(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(zn(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}(an(),e)}var yi="__parameters__";function bi(e,t,n){return Je(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 s.annotation=o,s;function s(e,t,n){for(var i=e.hasOwnProperty(yi)?e[yi]:Object.defineProperty(e,yi,{value:[]})[yi];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 _i=function(){function e(t,n){a(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=Ve({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return s(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ki=new _i("AnalyzeForEntryComponents"),wi=Function;function Si(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)),Si(i,t)):t!==e&&t.push(i)}return t}function Ci(e,t){e.forEach(function(e){return Array.isArray(e)?Ci(e,t):t(e)})}function Ei(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Oi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xi(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ti(e,t,n){var i=Mi(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=Mi(e,t);if(n>=0)return e[1|n]}function Mi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),s=e[o<<1];if(t===s)return o<<1;s>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ii={},Ai=/\n/gm,Ri="__source",Li=Ee({provide:String,useValue:Ee}),Ni=void 0;function Di(e){var t=Ni;return Ni=e,t}function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default;if(void 0===Ni)throw new Error("inject() must be called from an injection context");return null===Ni?Ke(e,void 0,t):Ni.get(e,t&Ze.Optional?null:void 0,t)}function ji(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default;return(Ye()||Vi)(Ie(e),t)}var Fi=ji;function Bi(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=Ze.Default,s=0;s<i.length;s++){var a=i[s],u=a.__NG_DI_FLAG__;"number"==typeof u?-1===u?r=a.token:o|=u:r=a}t.push(ji(r,o))}else t.push(ji(i))}return t}function Ui(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function zi(e,t,n,i){var r=e.ngTempTokenPath;throw t[Ri]&&r.unshift(t[Ri]),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 s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):xe(a)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Ai,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Wi,Hi,Gi=Ui(bi("Inject",function(e){return{token:e}}),-1),qi=Ui(bi("Optional"),8),Zi=Ui(bi("SkipSelf"),4);function Yi(e){var t;return(null===(t=function(){if(void 0===Wi&&(Wi=null,rt.trustedTypes))try{Wi=rt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Wi}())||void 0===t?void 0:t.createHTML(e))||e}function Qi(e){var t;return(null===(t=function(){if(void 0===Hi&&(Hi=null,rt.trustedTypes))try{Hi=rt.trustedTypes.createPolicy("angular#unsafe-bypass",{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}var Ki=function(){function e(t){a(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}(),Ji=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Ki),Xi=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Ki),$i=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Ki),er=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Ki),tr=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Ki);function nr(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function ir(e,t){var n=rr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function rr(e){return e instanceof Ki&&e.getTypeName()||null}var or=function(){function e(t){a(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(a(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}(),ar=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ur=/^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 cr(e){return(e=String(e)).match(ar)||e.match(ur)?e:"unsafe:"+e}function lr(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 hr(){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 s=o[r];for(var a in s)s.hasOwnProperty(a)&&(e[a]=!0)}return e}var dr,fr=lr("area,br,col,hr,img,wbr"),pr=lr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vr=lr("rp,rt"),mr=hr(vr,pr),gr=hr(fr,hr(pr,lr("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")),hr(vr,lr("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")),mr),yr=lr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),br=lr("srcset"),_r=hr(yr,br,lr("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"),lr("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")),kr=lr("script,style,template"),wr=function(){function e(){a(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(!gr.hasOwnProperty(n))return this.sanitizedSomething=!0,!kr.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),s=o.name,a=s.toLowerCase();if(_r.hasOwnProperty(a)){var u=o.value;yr[a]&&(u=cr(u)),br[a]&&(t=u,u=(t=String(t)).split(",").map(function(e){return cr(e.trim())}).join(", ")),this.buf.push(" ",s,'="',Er(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();gr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Er(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}(),Sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/([^\#-~ |!])/g;function Er(e){return e.replace(/&/g,"&amp;").replace(Sr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Cr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Or(e,t){var n=null;try{dr=dr||function(e){var t=new sr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Yi(""),"text/html")}catch(e){return!1}}()?new or(t):t}(e);var i=t?String(t):"";n=dr.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=dr.getInertBodyElement(i)}while(i!==o);return Yi((new wr).sanitizeChildren(xr(n)||n))}finally{if(n)for(var s=xr(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function xr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Tr=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=Ir();return t?Qi(t.sanitize(Tr.HTML,e)||""):ir(e,"HTML")?Qi(nr(e)):Or(Ut(),Le(e))}function Mr(e){var t=Ir();return t?t.sanitize(Tr.URL,e)||"":ir(e,"URL")?nr(e):cr(Le(e))}function Ir(){var e=rn();return e&&e[12]}function Ar(e,t){e.__ngContext__=t}function Rr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Lr(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 Dr=function(){function e(){a(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?function(e){return e.ngDebugContext}(e)||this._findContext(Lr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Lr(e);t&&Lr(t);)t=Lr(t);return t}}]),e}(),Vr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(rt)}();function jr(e){return e.ownerDocument.defaultView}function Fr(e){return e.ownerDocument}function Br(e){return e instanceof Function?e():e}var Ur=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function zr(e,t){return(void 0)(e,t)}function Wr(e){var t=e[3];return Tt(t)?t[3]:t}function Hr(e){return qr(e[13])}function Gr(e){return qr(e[4])}function qr(e){for(;null!==e&&!Tt(e);)e=e[4];return e}function Zr(e,t,n,i,r){if(null!=i){var o,s=!1;Tt(i)?o=i:xt(i)&&(s=!0,i=i[0]);var a=Ht(i);0===e&&null!==n?null==r?no(t,n,a):to(t,n,a,r||null,!0):1===e&&null!==n?to(t,n,a,r||null,!0):2===e?function(e,t,n){var i=ro(e,t);i&&function(e,t,n,i){zt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Ht(n)&&Zr(t,e,i,o,r);for(var s=Ot;s<n.length;s++){var a=n[s];fo(a[1],a,e,t,i,o)}}(t,e,o,n,r)}}function Yr(e,t){return zt(e)?e.createText(t):e.createTextNode(t)}function Qr(e,t,n){return zt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Kr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,en(r,-1)),n.splice(i,1)}function Jr(e,t){if(!(e.length<=Ot)){var n,i=Ot+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Kr(o,r),t>0&&(e[i-1][4]=r[4]);var s=Oi(e,Ot+t);fo(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Xr(e,t){if(!(256&t[2])){var n=t[11];zt(n)&&n.destroyNode&&fo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return $r(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&$r(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&$r(t[1],t),n=t&&t[4]}t=n}}(t)}}function $r(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 Bn)){var o=n[i+1];if(Array.isArray(o))for(var s=0;s<o.length;s+=2){var a=r[o[s]],u=o[s+1];try{u.call(a)}finally{}}else try{o.call(r)}finally{}}}}(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 s=n[o+1],a="function"==typeof s?s(t):Ht(t[s]),u=i[r=n[o+2]],c=n[o+3];"boolean"==typeof c?a.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&&Tt(t[3])){n!==t[3]&&Kr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function eo(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===$e.None||r===$e.Emulated)return null}return qt(i,n)}(e,t.parent,n)}function to(e,t,n,i,r){zt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function no(e,t,n){zt(e)?e.appendChild(t,n):t.appendChild(n)}function io(e,t,n,i,r){null!==i?to(e,t,n,i,r):no(e,t,n)}function ro(e,t){return zt(e)?e.parentNode(t):t.parentNode}function oo(e,t,n){return so(e,t,n)}var so=function(e,t,n){return 40&e.type?qt(e,n):null};function ao(e,t,n,i){var r=eo(e,i,t),o=t[11],s=oo(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var a=0;a<n.length;a++)io(o,r,n[a],s,!1);else io(o,r,n,s,!1)}function uo(e,t){if(null!==t){var n=t.type;if(3&n)return qt(t,e);if(4&n)return lo(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return uo(e,i);var r=e[t.index];return Tt(r)?lo(-1,r):Ht(r)}if(32&n)return zr(t,e)()||Ht(e[t.index]);var o=co(e,t);return null!==o?Array.isArray(o)?o[0]:uo(Wr(e[16]),o):uo(e,t.next)}return null}function co(e,t){return null!==t?e[16][6].projection[t.projection]:null}function lo(e,t){var n=Ot+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return uo(i,r)}return t[7]}function ho(e,t,n,i,r,o,s){for(;null!=n;){var a=i[n.index],u=n.type;if(s&&0===t&&(a&&Ar(Ht(a),i),n.flags|=4),64!=(64&n.flags))if(8&u)ho(e,t,n.child,i,r,o,!1),Zr(t,e,r,a,o);else if(32&u){for(var c=zr(n,i),l=void 0;l=c();)Zr(t,e,r,l,o);Zr(t,e,r,a,o)}else 16&u?vo(e,t,i,n,r,o):Zr(t,e,r,a,o);n=s?n.projectionNext:n.next}}function fo(e,t,n,i,r,o){ho(n,i,e.firstChild,t,r,o,!1)}function po(e,t,n){vo(t[11],0,t,n,eo(e,n,t),oo(n.parent||t[6],n,t))}function vo(e,t,n,i,r,o){var s=n[16],a=s[6].projection[i.projection];if(Array.isArray(a))for(var u=0;u<a.length;u++)Zr(t,e,r,a[u],o);else ho(e,t,a,s[3],r,o,!0)}function mo(e,t,n){zt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function go(e,t,n){zt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function yo(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 bo="ng-template";function _o(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==yo((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 ko(e){return 4===e.type&&e.value!==bo}function wo(e,t,n){return t===(4!==e.type||n?e.value:bo)}function So(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(zn(e[t]))return t;return e.length}(r),s=!1,a=0;a<t.length;a++){var u=t[a];if("number"!=typeof u){if(!s)if(4&i){if(i=2|1&i,""!==u&&!wo(e,u,n)||""===u&&1===t.length){if(Co(i))return!1;s=!0}}else{var c=8&i?u:t[++a];if(8&i&&null!==e.attrs){if(!_o(e.attrs,c,n)){if(Co(i))return!1;s=!0}continue}var l=Eo(8&i?"class":u,r,ko(e),n);if(-1===l){if(Co(i))return!1;s=!0;continue}if(""!==c){var h;h=l>o?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==yo(d,c,0)||2&i&&c!==h){if(Co(i))return!1;s=!0}}}}else{if(!s&&!Co(i)&&!Co(u))return!1;if(s&&Co(u))continue;s=!1,i=u|1&i}}return Co(i)||s}function Co(e){return 0==(1&e)}function Eo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var s=t[r];if(s===e)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){for(var a=t[++r];"string"==typeof a;)a=t[++r];continue}if(4===s)break;if(0===s){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 Oo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(So(e,t[i],n))return!0;return!1}function xo(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 To(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 s=e[n];if("string"==typeof s)if(2&i){var a=e[++n];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""===r||Co(s)||(t+=To(o,r),r=""),i=s,o=o||!Co(i);n++}return""!==r&&(t+=To(o,r)),t}var Mo={};function Io(e){Ao(on(),rn(),Mn()+e,dn())}function Ao(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Ln(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Nn(t,o,0,n)}In(n)}function Ro(e,t){return e<<17|t<<2}function Lo(e){return e>>17&32767}function No(e){return 2|e}function Do(e){return(131068&e)>>2}function Vo(e,t){return-131069&e|t<<2}function jo(e){return 1|e}function Fo(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];_n(n[i]),o.contentQueries(2,t[r],r)}}}function Bo(e,t,n,i,r,o,s,a,u,c){var l=t.blueprint.slice();return l[0]=r,l[2]=140|i,$t(l),l[3]=l[15]=e,l[8]=n,l[10]=s||e&&e[10],l[11]=a||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 Uo(e,t,n,i,r){var o,s,a=e.data[t];if(null===a)a=function(e,t,n,i,r){var o=un(),s=ln(),a=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,s?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}(e,t,n,i,r),tn.lFrame.inI18n&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=i,a.attrs=r;var u=(s=(o=tn.lFrame).currentTNode,o.isParent?s:s.parent);a.injectorIndex=null===u?-1:u.injectorIndex}return cn(a,!0),a}function zo(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 Wo(e,t,n){Sn(t);try{var i=e.viewQuery;null!==i&&bs(1,i,n);var r=e.template;null!==r&&qo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fo(e,t),e.staticViewQueries&&bs(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)ps(e,t[n])}(t,o)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,Tn()}}function Ho(e,t,n,i){var r=t[2];if(256!=(256&r)){Sn(t);var o=dn();try{$t(t),tn.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&qo(e,t,n,2,i);var s=3==(3&r);if(!o)if(s){var a=e.preOrderCheckHooks;null!==a&&Ln(t,a,null)}else{var u=e.preOrderHooks;null!==u&&Nn(t,u,0,null),Dn(t,0)}if(function(e){for(var t=Hr(e);null!==t;t=Gr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&en(r[3],1),r[2]|=1024}}(t),function(e){for(var t=Hr(e);null!==t;t=Gr(t))for(var n=Ot;n<t.length;n++){var i=t[n],r=i[1];Jt(i)&&Ho(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Fo(e,t),!o)if(s){var c=e.contentCheckHooks;null!==c&&Ln(t,c)}else{var l=e.contentHooks;null!==l&&Nn(t,l,1),Dn(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var o=0;o<r.length;o++){var s=r[o];if(s<0)In(~s);else{var a=s,u=r[++o],c=r[++o];n=a,i=void 0,(i=tn.lFrame).bindingIndex=i.bindingRootIndex=u,gn(n),c(2,t[a])}}}finally{In(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)ds(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&bs(2,d,i),!o)if(s){var f=e.viewCheckHooks;null!==f&&Ln(t,f)}else{var p=e.viewHooks;null!==p&&Nn(t,p,2),Dn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,en(t[3],-1))}finally{Tn()}}}function Go(e,t,n,i){var r=t[10],o=!dn(),s=Kt(t);try{o&&!s&&r.begin&&r.begin(),s&&Wo(e,t,i),Ho(e,t,n,i)}finally{o&&!s&&r.end&&r.end()}}function qo(e,t,n,i,r){var o=Mn(),s=2&i;try{In(-1),s&&t.length>Et&&Ao(e,t,Et,dn()),n(i,r)}finally{In(o)}}function Zo(e,t,n){if(Pt(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){nn()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Xn(n,t),Ar(i,t);for(var s=n.initialInputs,a=r;a<o;a++){var u=e.data[a],c=At(u);c&&us(t,n,u);var l=li(t,e,a,n);Ar(l,t),null!==s&&cs(0,a-r,l,u,0,s),c&&(Qt(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,s=tn.lFrame.currentDirectiveIndex;try{In(o);for(var a=i;a<r;a++){var u=e.data[a],c=t[a];gn(a),null===u.hostBindings&&0===u.hostVars&&null===u.hostAttrs||is(u,c)}}finally{In(-1),gn(s)}}(e,t,n))}function Qo(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 s=i[o+1],a=-1===s?n(t,e):e[s];e[r++]=a}}function Ko(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Jo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Jo(e,t,n,i,r,o,s,a,u,c){var l=Et+i,h=l+r,d=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Mo);return n}(l,h),f="function"==typeof c?c():c;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,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 s?s():s,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1}}function Xo(e,t,n,i){var r=ks(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&ws(e).push(i,r.length-1))}function $o(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 es(e,t,n,i,r,o,s,a){var u,c,l=qt(t,n),h=t.inputs;!a&&null!=h&&(u=h[i])?(Es(e,n,u,i,r),Mt(t)&&function(e,t){var n=Qt(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!=s?s(r,t.value||"",i):r,zt(o)?o.setProperty(l,i,r):Wn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function ts(e,t,n,i){var r=!1;if(nn()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var s=i[o];Oo(n,s.selectors,!1)&&(r||(r=[]),ni(Xn(n,t),e,s.type),At(s)?(rs(e,n),r.unshift(s)):r.push(s))}return r}(e,t,n),s=null===i?null:{"":-1};if(null!==o){r=!0,ss(n,e.data.length,o.length);for(var a=0;a<o.length;a++){var u=o[a];u.providersResolver&&u.providersResolver(u)}for(var c=!1,l=!1,h=zo(e,t,o.length,null),d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=Hn(n.mergedAttrs,f.hostAttrs),as(e,n,t,h,f),os(h,f,s),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=[],s=null,a=null,u=t.directiveStart;u<n;u++){var c=i[u],l=c.inputs,h=null===r||ko(t)?null:ls(l,r);o.push(h),s=$o(l,u,s),a=$o(c.outputs,u,a)}null!==s&&(s.hasOwnProperty("class")&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n)}s&&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 Re("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,s)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),r}function ns(e,t,n,i,r,o){var s=o.hostBindings;if(s){var a=e.hostBindingOpCodes;null===a&&(a=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})(a)!=u&&a.push(u),a.push(i,r,s)}}function is(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function rs(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function os(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;At(t)&&(n[""]=e)}}function ss(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function as(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Rt(r.type)),s=new Bn(o,At(r),null);e.blueprint[i]=s,n[i]=s,ns(e,t,0,i,zo(e,n,r.hostVars,Mo),r)}function us(e,t,n){var i=qt(t,e),r=Ko(n),o=e[10],s=vs(e,Bo(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=s}function cs(e,t,n,i,r,o){var s=o[t];if(null!==s)for(var a=i.setInput,u=0;u<s.length;){var c=s[u++],l=s[u++],h=s[u++];null!==a?i.setInput(n,h,c,l):n[l]=h}}function ls(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 hs(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ds(e,t){var n=Qt(t,e);if(Jt(n)){var i=n[1];80&n[2]?Ho(i,n,i.template,n[8]):n[5]>0&&fs(n)}}function fs(e){for(var t=Hr(e);null!==t;t=Gr(t))for(var n=Ot;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Ho(r,i,r.template,i[8])}else i[5]>0&&fs(i)}var o=e[1].components;if(null!==o)for(var s=0;s<o.length;s++){var a=Qt(o[s],e);Jt(a)&&a[5]>0&&fs(a)}}function ps(e,t){var n=Qt(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),Wo(i,n,n[8])}function vs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ms(e){for(;e;){e[2]|=64;var t=Wr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function gs(e,t,n){var i=t[10];i.begin&&i.begin();try{Ho(e,t,e.template,n)}catch(r){throw Cs(t,r),r}finally{i.end&&i.end()}}function ys(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Rr(n),r=i[1];Go(r,i,r.template,n)}}(e[8])}function bs(e,t,n){_n(0),t(e,n)}var _s=function(){return Promise.resolve(null)}();function ks(e){return e[7]||(e[7]=[])}function ws(e){return e.cleanup||(e.cleanup=[])}function Ss(e,t,n){return(null===e||At(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 Cs(e,t){var n=e[9],i=n?n.get(Dr,null):null;i&&i.handleError(t)}function Es(e,t,n,i,r){for(var o=0;o<n.length;){var s=n[o++],a=n[o++],u=t[s],c=e.data[s];null!==c.setInput?c.setInput(u,r,i,a):u[a]=r}}function Os(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var s=0;s<t.length;s++){var a=t[s];"number"==typeof a?o=a:1==o?r=Te(r,a):2==o&&(i=Te(i,a+": "+t[++s]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var xs=new _i("INJECTOR",-1),Ts=function(){function e(){a(this,e)}return s(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ii;if(t===Ii){var n=new Error("NullInjectorError: No provider for ".concat(xe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ps=new _i("Set Injector scope."),Ms={},Is={},As=void 0;function Rs(){return void 0===As&&(As=new Ts),As}function Ls(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 Ns(e,n,t||Rs(),i)}var Ns=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;a(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&Ci(n,function(e){return r.processProvider(e,t,n)}),Ci([t],function(e){return r.processInjectorType(e,[],s)}),this.records.set(xs,js(void 0,this));var u=this.records.get(Ps);this.scope=null!=u?u.value:null,this.source=o||("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]:Ii,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ze.Default;this.assertNotDestroyed();var i=Di(this),r=Qe(void 0);try{if(!(n&Ze.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=Us(e)&&Fe(e);o=s&&this.injectableDefInScope(s)?js(Ds(e),Ms):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}var a=n&Ze.Self?Rs():this.parent;return a.get(e,t=n&Ze.Optional&&t===Ii?null:t)}catch(HM){if("NullInjectorError"===HM.name){var u=HM.ngTempTokenPath=HM.ngTempTokenPath||[];if(u.unshift(xe(e)),i)throw HM;return zi(HM,e,"R3InjectorError",this.source)}throw HM}finally{Qe(r),Di(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=Ue(e),o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(r=Ue(o)),null==r)return!1;if(null!=r.imports&&!a){var u;n.push(s);try{Ci(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;Ci(r,function(e){return i.processProvider(e,n,r||st)})},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(s);var h=Rt(s)||function(){return new s};this.records.set(s,js(h,Ms));var d=r.providers;if(null!=d&&!a){var f=e;Ci(d,function(e){return i.processProvider(e,f,d)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Bs(e=Ie(e))?e:Ie(e&&e.provide),r=function(e,t,n){return Fs(e)?js(void 0,e.useValue):js(Vs(e),Ms)}(e);if(Bs(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=js(void 0,Ms,!0)).factory=function(){return Bi(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===Ms&&(t.value=Is,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){if(!e.providedIn)return!1;var t=Ie(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}]),e}();function Ds(e){var t=Fe(e),n=null!==t?t.factory:Rt(e);if(null!==n)return n;if(e instanceof _i)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=xi(t,"?");throw new Error("Can't resolve all parameters for ".concat(xe(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[We]||e[Ge]);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 Vs(e,t,n){var i,r=void 0;if(Bs(e)){var o=Ie(e);return Rt(o)||Ds(o)}if(Fs(e))r=function(){return Ie(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,C(Bi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return ji(Ie(e.useExisting))};else{var s=Ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Rt(s)||Ds(s);r=function(){return E(s,C(Bi(e.deps)))}}return r}function js(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Fs(e){return null!==e&&"object"==typeof e&&Li in e}function Bs(e){return"function"==typeof e}function Us(e){return"function"==typeof e||"object"==typeof e&&e instanceof _i}var zs=function(e,t,n){return function(e){var t=Ls(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)},Ws=function(){var e=function(){function e(){a(this,e)}return s(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?zs(e,t,""):zs(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ii,e.NULL=new Ts,e.\u0275prov=Ve({token:e,providedIn:"any",factory:function(){return ji(xs)}}),e.__NG_ELEMENT_ID__=-1,e}();function Hs(e,t){Rn(Rr(e)[1],an())}function Gs(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(At(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=qs(e.inputs),o.declaredInputs=qs(e.declaredInputs),o.outputs=qs(e.outputs);var s=r.hostBindings;s&&Qs(e,s);var a=r.viewQuery,u=r.contentQueries;if(a&&Zs(e,a),u&&Ys(e,u),Oe(e.inputs,r.inputs),Oe(e.declaredInputs,r.declaredInputs),Oe(e.outputs,r.outputs),At(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===Gs&&(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=Hn(r.hostAttrs,n=Hn(n,r.hostAttrs))}}(i)}function qs(e){return e===ot?{}:e===st?[]:e}function Zs(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ys(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Qs(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ks=null;function Js(){if(!Ks){var e=rt.Symbol;if(e&&e.iterator)Ks=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&&(Ks=i)}}return Ks}var Xs=function(){function e(t){a(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 $s(e){return!!ea(e)&&(Array.isArray(e)||!(e instanceof Map)&&Js()in e)}function ea(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ta(e,t,n){return e[t]=n}function na(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ia(e,t,n,i){var r=rn();return na(r,vn(),t)&&(on(),function(e,t,n,i,r,o){var s=qt(e,t);!function(e,t,n,i,r,o,s){if(null==o)zt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var a=null==s?Le(o):s(o,i||"",r);zt(e)?e.setAttribute(t,r,a,n):n?t.setAttributeNS(n,r,a):t.setAttribute(r,a)}}(t[11],s,o,e.value,n,i,r)}(An(),r,e,t,n,i)),ia}function ra(e,t,n,i){return na(e,vn(),n)?t+Le(n)+i:Mo}function oa(e,t,n,i,r,o,s,a){var u=rn(),c=on(),l=e+Et,h=c.firstCreatePass?function(e,t,n,i,r,o,s,a,u){var c=t.consts,l=Uo(t,e,4,s||null,Xt(c,a));ts(t,n,l,Xt(c,u)),Rn(t,l);var h=l.tViews=Jo(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,s):c.data[l];cn(h,!1);var d=u[11].createComment("");ao(c,u,d,h),Ar(d,u),vs(u,u[l]=hs(d,u,d,h)),It(h)&&Yo(c,u,h),null!=s&&Qo(u,h,a)}function sa(e){return Yt(tn.lFrame.contextLView,Et+e)}function aa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default,n=rn();if(null===n)return ji(e,t);var i=an();return oi(i,n,Ie(e),t)}function ua(e,t,n){var i=rn();return na(i,vn(),t)&&es(on(),An(),i,e,t,i[11],n,!1),ua}function ca(e,t,n,i,r){var o=r?"class":"style";Es(e,n,t.inputs[o],o,i)}function la(e,t,n,i){var r=rn(),o=on(),s=Et+e,a=r[11],u=r[s]=Qr(a,t,tn.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,s){var a=t.consts,u=Uo(t,e,2,r,Xt(a,o));return ts(t,n,u,Xt(a,s)),null!==u.attrs&&Os(u,u.attrs,!1),null!==u.mergedAttrs&&Os(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,o,r,0,t,n,i):o.data[s];cn(c,!0);var l=c.mergedAttrs;null!==l&&Un(a,u,l);var h=c.classes;null!==h&&go(a,u,h);var d=c.styles;null!==d&&mo(a,u,d),64!=(64&c.flags)&&ao(o,r,u,c),0===tn.lFrame.elementDepthCount&&Ar(u,r),tn.lFrame.elementDepthCount++,It(c)&&(Yo(o,r,c),Zo(o,c,r)),null!==i&&Qo(r,c)}function ha(){var e=an();ln()?hn():cn(e=e.parent,!1);var t=e;tn.lFrame.elementDepthCount--;var n=on();n.firstCreatePass&&(Rn(n,e),Pt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ca(n,t,rn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ca(n,t,rn(),t.stylesWithoutHost,!1)}function da(e,t,n,i){la(e,t,n,i),ha()}function fa(e,t,n){var i=rn(),r=on(),o=e+Et,s=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,s=Xt(o,i),a=Uo(t,e,8,"ng-container",s);return null!==s&&Os(a,s,!0),ts(t,n,a,Xt(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,r,i,t,n):r.data[o];cn(s,!0);var a=i[o]=i[11].createComment("");ao(r,i,a,s),Ar(a,i),It(s)&&(Yo(r,i,s),Zo(r,s,i)),null!=n&&Qo(i,s)}function pa(){var e=an(),t=on();ln()?hn():cn(e=e.parent,!1),t.firstCreatePass&&(Rn(t,e),Pt(e)&&t.queries.elementEnd(e))}function va(){return rn()}function ma(e){return!!e&&"function"==typeof e.then}function ga(e){return!!e&&"function"==typeof e.subscribe}var ya=ga;function ba(e,t,n,i){var r=rn(),o=on(),s=an();return ka(o,r,r[11],s,e,t,!!n,i),ba}function _a(e,t){var n=an(),i=rn(),r=on();return ka(r,i,Ss(yn(r.data),n,i),n,e,t,!1),_a}function ka(e,t,n,i,r,o,s,a){var u=It(i),c=e.firstCreatePass&&ws(e),l=ks(t),h=!0;if(3&i.type||a){var d=qt(i,t),f=a?a(d):d,p=l.length,v=a?function(e){return a(Ht(e[i.index]))}:i.index;if(zt(n)){var m=null;if(!a&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var s=r[o];if(s===n&&r[o+1]===i){var a=t[7],u=r[o+2];return a.length>u?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=Sa(i,t,0,o,!1);var g=n.listen(f,r,o);l.push(o,g),c&&c.push(r,v,p,p+1)}}else o=Sa(i,t,0,o,!0),f.addEventListener(r,o,s),l.push(o),c&&c.push(r,v,p,s)}else o=Sa(i,t,0,o,!1);var y,b=i.outputs;if(h&&null!==b&&(y=b[r])){var _=y.length;if(_)for(var k=0;k<_;k+=2){var w=t[y[k]][y[k+1]].subscribe(o),S=l.length;l.push(o,w),c&&c.push(r,i.index,S,-(S+1))}}}function wa(e,t,n,i){try{return!1!==n(i)}catch(r){return Cs(e,r),!1}}function Sa(e,t,n,i,r){return function n(o){if(o===Function)return i;var s=2&e.flags?Qt(e.index,t):t;0==(32&t[2])&&ms(s);for(var a=wa(t,0,i,o),u=n.__ngNextListenerFn__;u;)a=wa(t,0,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Pn(e)}function Ea(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?Oo(e,o,!0):xo(i,o))return r}else n=r}return n}function Oa(e){var t=rn()[16][6];if(!t.projection)for(var n=t.projection=xi(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ea(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function xa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=rn(),r=on(),o=Uo(r,Et+e,16,null,n||null);null===o.projection&&(o.projection=t),hn(),64!=(64&o.flags)&&po(r,i,o)}function Ta(e,t,n){return Pa(e,"",t,"",n),Ta}function Pa(e,t,n,i,r){var o=rn(),s=ra(o,t,n,i);return s!==Mo&&es(on(),An(),o,e,s,o[11],r,!1),Pa}function Ma(e,t,n,i,r){for(var o=e[n+1],s=null===t,a=i?Lo(o):Do(o),u=!1;0!==a&&(!1===u||s);){var c=e[a+1];Ia(e[a],t)&&(u=!0,e[a+1]=i?jo(c):No(c)),a=i?Lo(c):Do(c)}u&&(e[n+1]=i?No(o):jo(o))}function Ia(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Mi(e,t)>=0}var Aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ra(e){return e.substring(Aa.key,Aa.keyEnd)}function La(e,t){var n=Aa.textEnd;return n===t?-1:(t=Aa.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Aa.key=t,n),Na(e,t,n))}function Na(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Da(e,t,n){return Fa(e,t,n,!1),Da}function Va(e,t){return Fa(e,t,null,!0),Va}function ja(e,t){for(var n=function(e){return function(e){Aa.key=0,Aa.keyEnd=0,Aa.value=0,Aa.valueEnd=0,Aa.textEnd=e.length}(e),La(e,Na(e,0,Aa.textEnd))}(t);n>=0;n=La(t,n))Ti(e,Ra(t),!0)}function Fa(e,t,n,i){var r=rn(),o=on(),s=mn(2);o.firstUpdatePass&&Ua(o,e,s,i),t!==Mo&&na(r,s,t)&&Ha(o,o.data[Mn()],r,r[11],e,r[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=xe(nr(e)))),e}(t,n),i,s)}function Ba(e,t){return t>=e.expandoStartIndex}function Ua(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],s=Ba(e,n);Za(o,i)&&null===t&&!s&&(t=!1),t=function(e,t,n,i){var r=yn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Wa(n=za(null,e,t,n,i),t.attrs,i),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(n=za(r,e,t,n,i),null===o){var a=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Do(i))return e[Lo(i)]}(e,t,i);void 0!==a&&Array.isArray(a)&&function(e,t,n,i){e[Lo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,a=Wa(a=za(null,e,t,a[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=Wa(i,e[o].hostAttrs,n);return Wa(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 s=o?t.classBindings:t.styleBindings,a=Lo(s),u=Do(s);e[i]=n;var c,l=!1;if(Array.isArray(n)?(null===(c=n[1])||Mi(n,c)>0)&&(l=!0):c=n,r)if(0!==u){var h=Lo(e[a+1]);e[i+1]=Ro(h,a),0!==h&&(e[h+1]=Vo(e[h+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=Ro(a,0),0!==a&&(e[a+1]=Vo(e[a+1],i)),a=i;else e[i+1]=Ro(u,0),0===a?a=i:e[u+1]=Vo(e[u+1],i),u=i;l&&(e[i+1]=No(e[i+1])),Ma(e,c,i,!0),Ma(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Mi(o,t)>=0&&(n[i+1]=jo(n[i+1]))}(t,c,e,i,o),s=Ro(a,u),o?t.classBindings=s:t.styleBindings=s}(r,o,t,n,s,i)}}function za(e,t,n,i,r){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=Wa(i,(o=t[a]).hostAttrs,r),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Wa(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var s=t[o];"number"==typeof s?r=s:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ti(e,s,!!n||t[++o]))}return void 0===e?null:e}function Ha(e,t,n,i,r,o,s,a){if(3&t.type){var u=e.data,c=u[a+1];qa(1==(1&c)?Ga(u,t,n,r,Do(c),s):void 0)||(qa(o)||2==(2&c)&&(o=Ga(u,null,n,r,a,s)),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 s=-1===i.indexOf("-")?void 0:Ur.DashCase;if(null==r)o?e.removeStyle(n,i,s):n.style.removeProperty(i);else{var a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),s|=Ur.Important),o?e.setStyle(n,i,r,s):n.style.setProperty(i,r,a?"important":"")}}}(i,s,Gt(Mn(),n),r,o))}}function Ga(e,t,n,i,r,o){for(var s=null===t,a=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===Mo&&(d=h?st:void 0);var f=h?Pi(d,i):l===i?d:void 0;if(c&&!qa(f)&&(f=Pi(u,i)),qa(f)&&(a=f,s))return a;var p=e[r+1];r=s?Lo(p):Do(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=Pi(v,i))}return a}function qa(e){return void 0!==e}function Za(e,t){return 0!=(e.flags&(t?16:32))}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=rn(),i=on(),r=e+Et,o=i.firstCreatePass?Uo(i,r,1,t,null):i.data[r],s=n[r]=Yr(n[11],t);ao(i,n,s,o),cn(o,!1)}function Qa(e){return Ka("",e,""),Qa}function Ka(e,t,n){var i=rn(),r=ra(i,e,t,n);return r!==Mo&&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,Mn(),r),Ka}function Ja(e,t,n){var i=rn();return na(i,vn(),t)&&es(on(),An(),i,e,t,i[11],n,!0),Ja}function Xa(e,t,n){var i=rn();if(na(i,vn(),t)){var r=on(),o=An();es(r,o,i,e,t,Ss(yn(r.data),o,i),n,!0)}return Xa}var $a=void 0,eu=["en",[["a","p"],["AM","PM"],$a],[["AM","PM"],$a,$a],[["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"]],$a,[["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"]],$a,[["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}",$a,"{1} 'at' {0}",$a],[".",",",";","%","+","-","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}],tu={};function nu(e){return e in tu||(tu[e]=rt.ng&&rt.ng.common&&rt.ng.common.locales&&rt.ng.common.locales[e]),tu[e]}var iu=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}({}),ru="en-US";function ou(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 su(e,t,n){var i=on();if(i.firstCreatePass){var r=At(e);au(n,i.data,i.blueprint,r,!0),au(t,i.data,i.blueprint,r,!1)}}function au(e,t,n,i,r){if(e=Ie(e),Array.isArray(e))for(var o=0;o<e.length;o++)au(e[o],t,n,i,r);else{var s=on(),a=rn(),u=Bs(e)?e:Ie(e.provide),c=Vs(e),l=an(),h=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(Bs(e)||!e.multi){var p=new Bn(c,r,aa),v=lu(u,t,r?h:h+f,d);-1===v?(ni(Xn(l,a),s,u),uu(s,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),a.push(p)):(n[v]=p,a[v]=p)}else{var m=lu(u,t,h+f,d),g=lu(u,t,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(m>=0&&n[m])){ni(Xn(l,a),s,u);var b=function(e,t,n,i,r){var o=new Bn(e,n,aa);return o.multi=[],o.index=t,o.componentProviders=0,cu(o,r,i&&!n),o}(r?du:hu,n.length,r,i,c);!r&&y&&(n[g].providerFactory=b),uu(s,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),a.push(b)}else uu(s,e,m>-1?m:g,cu(n[r?g:m],c,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function uu(e,t,n,i){var r=Bs(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var a=s.indexOf(n);-1===a?s.push(n,[i,o]):s[a+1].push(i,o)}else s.push(n,o)}}}function cu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function lu(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function hu(e,t,n,i){return fu(this.multi,[])}function du(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var s=this.providerFactory.componentProviders,a=li(n,n[1],this.providerFactory.index,i);fu(o,r=a.slice(0,s));for(var u=s;u<a.length;u++)r.push(a[u])}else fu(o,r=[]);return r}function fu(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function pu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return su(n,i?i(e):e,t)}}}var vu=function e(){a(this,e)},mu=function e(){a(this,e)},gu=function(){function e(){a(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}(),yu=function(){var e=function e(){a(this,e)};return e.NULL=new gu,e}();function bu(){}function _u(e,t){return new wu(qt(e,t))}var ku=function(){return _u(an(),rn())},wu=function(){var e=function e(t){a(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=ku,e}();function Su(e){return e instanceof wu?e.nativeElement:e}var Cu=function e(){a(this,e)},Eu=function(){var e=function e(){a(this,e)};return e.__NG_ELEMENT_ID__=function(){return Ou()},e}(),Ou=function(){var e=rn(),t=Qt(an().index,e);return function(e){return e[11]}(xt(t)?t:e)},xu=function(){var e=function e(){a(this,e)};return e.\u0275prov=Ve({token:e,providedIn:"root",factory:function(){return null}}),e}(),Tu=function e(t){a(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Pu=new Tu("12.1.3"),Mu=function(){function e(){a(this,e)}return s(e,[{key:"supports",value:function(e){return $s(e)}},{key:"create",value:function(e){return new Au(e)}}]),e}(),Iu=function(e,t){return t},Au=function(){function e(t){a(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||Iu}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<Du(n,i,r)?t:n,s=Du(o,i,r),a=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var u=s-i,c=a-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}}s!==a&&e(o,s,a)}}},{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=[]),!$s(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,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=this._trackByFn(a,i=e[a]),null!==o&&Object.is(o.trackById,r)?(s&&(o=this._verifyReinsertion(o,i,r,a)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,a),s=!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[Js()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(s&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),s=!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._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):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)):e=this._addAfter(new Ru(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 Nu),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 Nu),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}(),Ru=function e(t,n){a(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},Lu=function(){function e(){a(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}(),Nu=function(){function e(){a(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 Lu,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 Du(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 Vu=function(){function e(){a(this,e)}return s(e,[{key:"supports",value:function(e){return e instanceof Map||ea(e)}},{key:"create",value:function(){return new ju}}]),e}(),ju=function(){function e(){a(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||ea(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 Fu(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}(),Fu=function e(t){a(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 Bu(){return new Uu([new Mu])}var Uu=function(){var e=function(){function e(t){a(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||Bu())},deps:[[e,new Zi,new qi]]}}}]),e}();return e.\u0275prov=Ve({token:e,providedIn:"root",factory:Bu}),e}();function zu(){return new Wu([new Vu])}var Wu=function(){var e=function(){function e(t){a(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||zu())},deps:[[e,new Zi,new qi]]}}}]),e}();return e.\u0275prov=Ve({token:e,providedIn:"root",factory:zu}),e}();function Hu(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)),Tt(o))for(var s=Ot;s<o.length;s++){var a=o[s],u=a[1].firstChild;null!==u&&Hu(a[1],a,u,i)}var c=n.type;if(8&c)Hu(e,t,n.child,i);else if(32&c)for(var l=zr(n,t),h=void 0;h=l();)i.push(h);else if(16&c){var d=co(t,n);if(Array.isArray(d))i.push.apply(i,C(d));else{var f=Wr(t[16]);Hu(f[1],f,d,i,!0)}}n=r?n.projectionNext:n.next}return i}var Gu=function(){function e(t,n){a(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 Hu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{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(Tt(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Jr(e,n),Oi(t,n))}this._attachedToViewContainer=!1}Xr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Xo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ms(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){gs(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){fn(!0);try{gs(e,t,n)}finally{fn(!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,fo(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}(),qu=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this,e))._view=e,i}return s(n,[{key:"detectChanges",value:function(){ys(this._view)}},{key:"checkNoChanges",value:function(){!function(e){fn(!0);try{ys(e)}finally{fn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Gu),Zu=function(e){return function(e,t,n){if(Mt(e)&&!n){var i=Qt(e.index,t);return new Gu(i,i)}return 47&e.type?new Gu(t[16],t):null}(an(),rn(),16==(16&e))},Yu=function(){var e=function e(){a(this,e)};return e.__NG_ELEMENT_ID__=Zu,e}(),Qu=[new Vu],Ku=new Uu([new Mu]),Ju=new Wu(Qu),Xu=function(){return tc(an(),rn())},$u=function(){var e=function e(){a(this,e)};return e.__NG_ELEMENT_ID__=Xu,e}(),ec=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return s(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Bo(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)),Wo(t,n,e),new Gu(n)}}]),n}($u);function tc(e,t){return 4&e.type?new ec(t,e,_u(e,t)):null}var nc=function e(){a(this,e)},ic=function e(){a(this,e)},rc=function(){return cc(an(),rn())},oc=function(){var e=function e(){a(this,e)};return e.__NG_ELEMENT_ID__=rc,e}(),sc=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return s(n,[{key:"element",get:function(){return _u(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new pi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ti(this._hostTNode,this._hostLView);if(qn(e)){var t=Yn(e,this._hostLView),n=Zn(e);return new pi(t[1].data[n+8],t)}return new pi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ac(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-Ot}},{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 s=o.get(nc,null);s&&(r=s)}var a=e.create(o,i,void 0,r);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(Tt(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],s=new sc(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=Ot+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-Ot?(t[4]=n[r],Ei(n,Ot+i,t)):(n.push(t),t[4]=null),t[3]=n;var s=t[17];null!==s&&n!==s&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);var a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,u,a);var c=lo(a,u),l=n[11],h=ro(l,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,fo(e,i,n,1,r,o)}(i,u[6],l,n,h,c),e.attachToViewContainerRef(),Ei(uc(u),a,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=ac(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Jr(this._lContainer,t);n&&(Oi(uc(this._lContainer),t),Xr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Jr(this._lContainer,t);return n&&null!=Oi(uc(this._lContainer),t)?new Gu(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}(oc);function ac(e){return e[8]}function uc(e){return e[8]||(e[8]=[])}function cc(e,t){var n,i=t[e.index];if(Tt(i))n=i;else{var r;if(8&e.type)r=Ht(i);else{var o=t[11];r=o.createComment("");var s=qt(e,t);to(o,ro(o,s),r,function(e,t){return zt(e)?e.nextSibling(t):t.nextSibling}(o,s),!1)}t[e.index]=n=hs(i,t,r,e),vs(t,n)}return new sc(n,e,t)}var lc={},hc=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this)).ngModule=e,i}return s(n,[{key:"resolveComponentFactory",value:function(e){var t=St(e);return new pc(t,this.ngModule)}}]),n}(yu);function dc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var fc=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vr}}),pc=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 dc(this.componentDef.inputs)}},{key:"outputs",get:function(){return dc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,s=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,lc,r);return o!==lc||i===lc?o:t.get(n,i,r)}}}(e,i.injector):e,a=s.get(Cu,Wt),u=s.get(xu,null),c=a.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===$e.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Qr(a.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:Vr,clean:_s,playerHandler:null,flags:0},p=Jo(0,null,null,1,0,null,null,null,null,null),v=Bo(null,p,f,d,null,null,a,c,u,s);Sn(v);try{var m=function(e,t,n,i,r,o){var s=n[1];n[20]=e;var a=Uo(s,20,2,"#host",null),u=a.mergedAttrs=t.hostAttrs;null!==u&&(Os(a,u,!0),null!==e&&(Un(r,e,u),null!==a.classes&&go(r,e,a.classes),null!==a.styles&&mo(r,e,a.styles)));var c=i.createRenderer(e,t),l=Bo(n,Ko(t),null,t.onPush?64:16,n[20],a,i,c,null,null);return s.firstCreatePass&&(ni(Xn(a,n),s,t.type),rs(s,a),ss(a,n.length,1)),vs(n,l),n[20]=l}(h,this.componentDef,v,a,c);if(h)if(n)Un(c,h,["ng-version",Pu.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(!Co(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=g.attrs,b=g.classes;y&&Un(c,h,y),b&&b.length>0&&go(c,h,b.join(" "))}if(o=Zt(p,Et),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],s=function(e,t,n){var i=an();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),as(e,i,t,zo(e,t,1,null),n));var r=li(t,e,i.directiveStart,i);Ar(r,t);var o=qt(i,t);return o&&Ar(o,t),r}(o,n,t);if(i.components.push(s),e[8]=s,r&&r.forEach(function(e){return e(s,t)}),t.contentQueries){var a=an();t.contentQueries(1,s,a.directiveStart)}var u=an();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(In(u.index),ns(n[1],u,0,u.directiveStart,u.directiveEnd,t),is(t,s)),s}(m,this.componentDef,v,f,[Hs]),Wo(p,v,null)}finally{Tn()}return new vc(this.componentType,r,_u(o,v),v,o)}}]),n}(mu),vc=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this)).location=r,u._rootLView=o,u._tNode=s,u.instance=i,u.hostView=u.changeDetectorRef=new qu(o),u.componentType=e,u}return s(n,[{key:"injector",get:function(){return new pi(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(vu),mc=new Map,gc=function(e){c(n,e);var t=p(n);function n(e,i){var r;a(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=d(r),r.destroyCbs=[],r.componentFactoryResolver=new hc(d(r));var o=Ct(e),s=e[ht]||null;return s&&ou(s),r._bootstrapComponents=Br(o.bootstrap),r._r3Injector=Ls(e,i,[{provide:nc,useValue:d(r)},{provide:yu,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]:Ws.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ze.Default;return e===Ws||e===nc||e===xs?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}(nc),yc=function(e){c(n,e);var t=p(n);function n(e){var i,r,o;return a(this,n),(i=t.call(this)).moduleType=e,null!==Ct(e)&&(r=e,o=new Set,function e(t){var n=Ct(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(xe(t)," vs ").concat(xe(t.name)))}(i,mc.get(i),t),mc.set(i,t));var r,s=g(Br(n.imports));try{for(s.s();!(r=s.n()).done;){var a=r.value;o.has(a)||(o.add(a),e(a))}}catch(u){s.e(u)}finally{s.f()}}(r)),i}return s(n,[{key:"create",value:function(e){return new gc(this.moduleType,e)}}]),n}(ic);function bc(e,t,n,i){return kc(rn(),pn(),e,t,n,i)}function _c(e,t){var n=e[t];return n===Mo?void 0:n}function kc(e,t,n,i,r,o){var s=t+n;return na(e,s,r)?ta(e,s+1,o?i.call(o,r):i(r)):_c(e,s+1)}function wc(e,t){var n,i=on(),r=e+Et;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 Re("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=Rt(n.type)),s=Qe(aa);try{var a=Kn(!1),u=o();return Kn(a),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,rn(),r,u),u}finally{Qe(s)}}function Sc(e,t,n){var i=e+Et,r=rn(),o=Yt(r,i);return function(e,t){return Xs.isWrapped(t)&&(t=Xs.unwrap(t),e[tn.lFrame.bindingIndex]=Mo),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?kc(r,pn(),t,o.transform,n,o):o.transform(n))}function Cc(e){return function(t){setTimeout(e,void 0,t)}}var Ec=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return a(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 s,a,u,c=e,l=t||function(){return null},h=o;if(e&&"object"==typeof e){var d=e;c=null===(s=d.next)||void 0===s?void 0:s.bind(d),l=null===(a=d.error)||void 0===a?void 0:a.bind(d),h=null===(u=d.complete)||void 0===u?void 0:u.bind(d)}this.__isAsync&&(l=Cc(l),c&&(c=Cc(c)),h&&(h=Cc(h)));var f=r(i(n.prototype),"subscribe",this).call(this,{next:c,error:l,complete:h});return e instanceof I&&e.add(f),f}}]),n}(Y);function Oc(){return this._results[Js()]()}var xc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a(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=Js(),i=e.prototype;i[n]||(i[n]=Oc)}return s(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Ec)}},{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=Si(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}();Symbol;var Tc=function(){function e(t){a(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}(),Pc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(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 s=n.getByIndex(o);r.push(this.queries[s.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!==Wc(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Mc=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;a(this,e),this.predicate=t,this.flags=n,this.read=i},Ic=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(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}(),Ac=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;a(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,Rc(t,r)),this.matchTNodeWithReadOption(e,t,ci(t,e,r,!1,!1))}else n===$u?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ci(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===wu||i===oc||i===$u&&4&t.type)this.addMatch(t.index,-2);else{var r=ci(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 Rc(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 Lc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?_u(e,t):4&e.type?tc(e,t):null}(t,e):-2===n?function(e,t,n){return n===wu?_u(t,e):n===$u?tc(t,e):n===oc?cc(t,e):void 0}(e,t,i):li(e,e[1],n,t)}function Nc(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,s=n.matches,a=[],u=0;u<s.length;u+=2){var c=s[u];a.push(c<0?null:Lc(t,o[c],s[u+1],n.metadata.read))}r.matches=a}return r.matches}function Dc(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var s=Nc(e,t,r,n),a=0;a<o.length;a+=2){var u=o[a];if(u>0)i.push(s[a/2]);else{for(var c=o[a+1],l=t[-u],h=Ot;h<l.length;h++){var d=l[h];d[17]===d[3]&&Dc(d[1],d,c,i)}if(null!==l[9])for(var f=l[9],p=0;p<f.length;p++){var v=f[p];Dc(v[1],v,c,i)}}}return i}function Vc(e){var t=rn(),n=on(),i=bn();_n(i+1);var r=Wc(n,i);if(e.dirty&&Kt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Dc(n,t,i,[]):Nc(n,t,r,i);e.reset(o,Su),e.notifyOnChanges()}return!0}return!1}function jc(e,t,n){var i=on();i.firstCreatePass&&(zc(i,new Mc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Uc(i,rn(),t)}function Fc(e,t,n,i){var r=on();if(r.firstCreatePass){var o=an();zc(r,new Mc(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)}Uc(r,rn(),n)}function Bc(){return e=rn(),t=bn(),e[19].queries[t].queryList;var e,t}function Uc(e,t,n){var i=new xc(4==(4&n));Xo(e,t,i,i.destroy),null===t[19]&&(t[19]=new Pc),t[19].queries.push(new Tc(i))}function zc(e,t,n){null===e.queries&&(e.queries=new Ic),e.queries.track(new Ac(t,n))}function Wc(e,t){return e.queries.getByIndex(t)}var Hc=new _i("Application Initializer"),Gc=function(){var e=function(){function e(t){var n=this;a(this,e),this.appInits=t,this.resolve=bu,this.reject=bu,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=function(n){var i=e.appInits[n]();if(ma(i))t.push(i);else if(ya(i)){var r=new Promise(function(e,t){i.subscribe({complete:e,error:t})});t.push(r)}},r=0;r<this.appInits.length;r++)i(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)(ji(Hc,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),qc=new _i("AppId"),Zc={provide:qc,useFactory:function(){return"".concat(Yc()).concat(Yc()).concat(Yc())},deps:[]};function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Qc=new _i("Platform Initializer"),Kc=new _i("Platform ID"),Jc=new _i("appBootstrapListener"),Xc=function(){var e=function(){function e(){a(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=Ve({token:e,factory:e.\u0275fac}),e}(),$c=new _i("LocaleId"),el=new _i("DefaultCurrencyCode"),tl=function e(t,n){a(this,e),this.ngModuleFactory=t,this.componentFactories=n},nl=function(e){return new yc(e)},il=nl,rl=function(e){return Promise.resolve(nl(e))},ol=function(e){var t=nl(e),n=Br(Ct(e).declarations).reduce(function(e,t){var n=St(t);return n&&e.push(new pc(n)),e},[]);return new tl(t,n)},sl=ol,al=function(e){return Promise.resolve(ol(e))},ul=function(){var e=function(){function e(){a(this,e),this.compileModuleSync=il,this.compileModuleAsync=rl,this.compileModuleAndAllComponentsSync=sl,this.compileModuleAndAllComponentsAsync=al}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=Ve({token:e,factory:e.\u0275fac}),e}(),cl=function(){return Promise.resolve(0)}();function ll(e){"undefined"==typeof Zone?cl.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var hl=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,o=void 0!==r&&r,s=t.shouldCoalesceRunChangeDetection,u=void 0!==s&&s;if(a(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ec(!1),this.onMicrotaskEmpty=new Ec(!1),this.onStable=new Ec(!1),this.onError=new Ec(!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&&o,h.shouldCoalesceRunChangeDetection=u,h.lastRequestAnimationFrameId=-1,h.nativeRequestAnimationFrame=function(){var e=rt.requestAnimationFrame,t=rt.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){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(rt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,pl(e),e.isCheckStableRunning=!0,fl(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),pl(e))}(c)},(c=h)._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,o){try{return vl(c),e.invokeTask(n,i,r,o)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||c.shouldCoalesceRunChangeDetection)&&l(),ml(c)}},onInvoke:function(e,t,n,i,r,o,s){try{return vl(c),e.invoke(n,i,r,o,s)}finally{c.shouldCoalesceRunChangeDetection&&l(),ml(c)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(c._hasPendingMicrotasks=i.microTask,pl(c),fl(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,dl,bu,bu);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}(),dl={};function fl(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 pl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ml(e){e._nesting--,fl(e)}var gl,yl=function(){function e(){a(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ec,this.onMicrotaskEmpty=new Ec,this.onStable=new Ec,this.onError=new Ec}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}(),bl=function(){var e=function(){function e(t){var n=this;a(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(){hl.assertNotInAngularZone(),ll(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())ll(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/plugins/task-tracking" 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)(ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),_l=function(){var e=function(){function e(){a(this,e),this._applications=new Map,kl.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 kl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),kl=new(function(){function e(){a(this,e)}return s(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),wl=!0,Sl=!1;function Cl(){return Sl=!0,wl}var El=function(e,t,n){var i=new yc(n);return Promise.resolve(i)},Ol=new _i("AllowMultipleToken"),xl=function e(t,n){a(this,e),this.name=t,this.token=n};function Tl(e){if(gl&&!gl.destroyed&&!gl.injector.get(Ol,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gl=e.get(Al);var t=e.get(Qc,null);return t&&t.forEach(function(e){return e()}),gl}function Pl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new _i(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Il();if(!o||o.injector.get(Ol,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var s=n.concat(t).concat({provide:r,useValue:!0},{provide:Ps,useValue:"platform"});Tl(Ws.create({providers:s,name:i}))}return Ml(r)}}function Ml(e){var t=Il();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 Il(){return gl&&!gl.destroyed?gl:null}var Al=function(){var e=function(){function e(t){a(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 yl:("zone.js"===n?void 0:n)||new hl({enableLongStackTrace:Cl(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),s=[{provide:hl,useValue:o}];return o.run(function(){var t=Ws.create({providers:s,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Dr,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(){Nl(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((s=n.injector.get(Gc)).runInitializers(),s.donePromise.then(function(){return ou(n.injector.get($c,ru)||ru),r._moduleDoBootstrap(n),n}));return ma(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(HM){throw t.runOutsideAngular(function(){return e.handleError(HM)}),HM}var s}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Rl({},n);return El(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Ll);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)(ji(Ws))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Rl(e,t){return Array.isArray(t)?t.reduce(Rl,e):Object.assign(Object.assign({},e),t)}var Ll=function(){var e=function(){function e(t,n,i,r,o){var s=this;a(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new W(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),c=new W(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){hl.assertNotInAngularZone(),ll(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){hl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=me(u,c.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 mu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(nc),o=n.create(Ws.NULL,[],t||n.selector,r),s=o.location.nativeElement,a=o.injector.get(bl,null),u=a&&o.injector.get(_l);return a&&u&&u.registerApplication(s,a),o.onDestroy(function(){i.detachView(o.hostView),Nl(i.components,o),u&&u.unregisterApplication(s)}),this._loadComponent(o),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(HM){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(HM)})}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;Nl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Jc,[]).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)(ji(hl),ji(Ws),ji(Dr),ji(yu),ji(Gc))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Nl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Dl=function e(){a(this,e)},Vl=function e(){a(this,e)},jl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Fl=function(){var e=function(){function e(t,n){a(this,e),this._compiler=t,this._config=n||jl}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(98255)(r).then(function(e){return e[o]}).then(function(e){return Bl(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(98255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Bl(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(ul),ji(Vl,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Bl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ul=Pl(null,"core",[{provide:Kc,useValue:"unknown"},{provide:Al,deps:[Ws]},{provide:_l,deps:[]},{provide:Xc,deps:[]}]),zl=[{provide:Ll,useClass:Ll,deps:[hl,Ws,Dr,yu,Gc]},{provide:fc,deps:[hl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Gc,useClass:Gc,deps:[[new qi,Hc]]},{provide:ul,useClass:ul,deps:[]},Zc,{provide:Uu,useFactory:function(){return Ku},deps:[]},{provide:Wu,useFactory:function(){return Ju},deps:[]},{provide:$c,useFactory:function(e){return ou(e=e||"undefined"!=typeof $localize&&$localize.locale||ru),e},deps:[[new Gi($c),new qi,new Zi]]},{provide:el,useValue:"USD"}],Wl=function(){var e=function e(t){a(this,e)};return e.\u0275fac=function(t){return new(t||e)(ji(Ll))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:zl}),e}(),Hl=null;function Gl(){return Hl}var ql=function e(){a(this,e)},Zl=new _i("DocumentToken"),Yl=function(){var e=function(){function e(){a(this,e)}return s(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:Ql,token:e,providedIn:"platform"}),e}();function Ql(){return ji(Jl)}var Kl=new _i("Location Initialized"),Jl=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this))._doc=e,i._init(),i}return s(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return Gl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=Gl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=Gl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{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){Xl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Xl()?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:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(Yl);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:$l,token:e,providedIn:"platform"}),e}();function Xl(){return!!window.history.pushState}function $l(){return new Jl(ji(Zl))}function eh(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 th(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 nh(e){return e&&"?"!==e[0]?"?"+e:e}var ih=function(){var e=function(){function e(){a(this,e)}return s(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:rh,token:e,providedIn:"root"}),e}();function rh(e){var t=ji(Zl).location;return new sh(ji(Yl),t&&t.origin||"")}var oh=new _i("appBaseHref"),sh=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;if(a(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],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:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return eh(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+nh(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+nh(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(ih);return e.\u0275fac=function(t){return new(t||e)(ji(Yl),ji(oh,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),ah=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return s(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(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=eh(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(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+nh(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()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(ih);return e.\u0275fac=function(t){return new(t||e)(ji(Yl),ji(oh,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),uh=function(){var e=function(){function e(t,n){var i=this;a(this,e),this._subject=new Ec,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=th(lh(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+nh(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,lh(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+nh(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+nh(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{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)(ji(ih),ji(Yl))},e.normalizeQueryParams=nh,e.joinWithSlash=eh,e.stripTrailingSlash=th,e.\u0275prov=Ve({factory:ch,token:e,providedIn:"root"}),e}();function ch(){return new uh(ji(ih),ji(Yl))}function lh(e){return e.replace(/\/index.html$/,"")}var hh=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}({}),dh=function e(){a(this,e)},fh=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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=nu(t);if(n)return n;var i=t.split("-")[0];if(n=nu(i))return n;if("en"===i)return eu;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[iu.PluralCase]}(t||this.locale)(e)){case hh.Zero:return"zero";case hh.One:return"one";case hh.Two:return"two";case hh.Few:return"few";case hh.Many:return"many";default:return"other"}}}]),n}(dh);return e.\u0275fac=function(t){return new(t||e)(ji($c))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function ph(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("="),s=_(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),a=s[1];if(s[0].trim()===t)return decodeURIComponent(a)}}catch(u){i.e(u)}finally{i.f()}return null}var vh=function(){var e=function(){function e(t,n,i,r){a(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&&($s(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)(aa(Uu),aa(Wu),aa(wu),aa(Eu))},e.\u0275dir=kt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),mh=function(){function e(t,n,i,r){a(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}(),gh=function(){var e=function(){function e(t,n,i){a(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 mh(null,t._ngForOf,-1,-1),null===r?void 0:r),s=new yh(e,o);n.push(s)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var a=t._viewContainer.get(i);t._viewContainer.move(a,r);var u=new yh(e,a);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 s=this._viewContainer.get(r);s.context.index=r,s.context.count=o,s.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)(aa(oc),aa($u),aa(Uu))},e.\u0275dir=kt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),yh=function e(t,n){a(this,e),this.record=t,this.view=n},bh=function(){var e=function(){function e(t,n){a(this,e),this._viewContainer=t,this._context=new _h,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){kh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){kh("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)(aa(oc),aa($u))},e.\u0275dir=kt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),_h=function e(){a(this,e),this.$implicit=null,this.ngIf=null};function kh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(xe(t),"'."))}var wh=function(){function e(t,n){a(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}(),Sh=function(){var e=function(){function e(){a(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=kt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Ch=function(){var e=function(){function e(t,n,i){a(this,e),this.ngSwitch=i,i._addCase(),this._view=new wh(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)(aa(oc),aa($u),aa(Sh,9))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Eh=function(){var e=function e(t,n,i){a(this,e),i._addDefault(new wh(t,n))};return e.\u0275fac=function(t){return new(t||e)(aa(oc),aa($u),aa(Sh,9))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),Oh=function(){var e=function(){function e(t,n,i){a(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)(aa(wu),aa(Wu),aa(Eu))},e.\u0275dir=kt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),xh=function(){function e(){a(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}(),Th=new(function(){function e(){a(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}()),Ph=new xh,Mh=function(){var e=function(){function e(t){a(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(ma(t))return Th;if(ga(t))return Ph;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)(aa(Yu,16))},e.\u0275pipe=wt({name:"async",type:e,pure:!1}),e}(),Ih=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[{provide:dh,useClass:fh}]}),e}();function Ah(e){return"browser"===e}function Rh(e){return"server"===e}var Lh=function(){var e=function e(){a(this,e)};return e.\u0275prov=Ve({token:e,providedIn:"root",factory:function(){return new Nh(ji(Zl),window)}}),e}(),Nh=function(){function e(t,n){a(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){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var o=r.shadowRoot;if(o){var s=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(s)return s}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Dh(this.window.history)||Dh(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 Dh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Vh,jh=function e(){a(this,e)},Fh=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{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){e.parentNode&&e.parentNode.removeChild(e)}},{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:"getBaseHref",value:function(e){var t=(Bh=Bh||document.querySelector("base"))?Bh.getAttribute("href"):null;return null==t?null:function(e){(Vh=Vh||document.createElement("a")).setAttribute("href",e);var t=Vh.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){Bh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return ph(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Hl||(Hl=e)}}]),n}(function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(ql)),Bh=null,Uh=new _i("TRANSITION_ID"),zh=[{provide:Hc,useFactory:function(e,t,n){return function(){n.get(Gc).donePromise.then(function(){var n=Gl();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:[Uh,Zl,Ws],multi:!0}],Wh=function(){function e(){a(this,e)}return s(e,[{key:"addToWindow",value:function(e){rt.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},rt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},rt.getAllAngularRootElements=function(){return e.getAllRootElements()},rt.frameworkStabilizers||(rt.frameworkStabilizers=[]),rt.frameworkStabilizers.push(function(e){var t=rt.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?Gl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,kl=t}}]),e}(),Hh=function(){var e=function(){function e(){a(this,e)}return s(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Gh=new _i("EventManagerPlugins"),qh=function(){var e=function(){function e(t,n){var i=this;a(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)(ji(Gh),ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Zh=function(){function e(t){a(this,e),this._doc=t}return s(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Gl().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}(),Yh=function(){var e=function(){function e(){a(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=Ve({token:e,factory:e.\u0275fac}),e}(),Qh=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return s(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(Kh),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(Kh)})}}]),n}(Yh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Kh(e){Gl().remove(e)}var Jh={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/"},Xh=/%COMP%/g,$h="%COMP%",ed="_nghost-".concat($h),td="_ngcontent-".concat($h);function nd(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?nd(e,r,n):(r=r.replace(Xh,e),n.push(r))}return n}function id(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var rd=function(){var e=function(){function e(t,n,i){a(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new od(t)}return s(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case $e.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new sd(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case $e.ShadowDom:return new ad(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=nd(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)(ji(qh),ji(Qh),ji(qc))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),od=function(){function e(t){a(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(Jh[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=Jh[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=Jh[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&(Ur.DashCase|Ur.Important)?e.style.setProperty(t,n,i&Ur.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Ur.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,id(n)):this.eventManager.addEventListener(e,t,id(n))}}]),e}(),sd=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;a(this,n),(s=t.call(this,e)).component=r;var u=nd(o+"-"+r.id,r.styles,[]);return i.addStyles(u),s.contentAttr=td.replace(Xh,o+"-"+r.id),s.hostAttr=ed.replace(Xh,o+"-"+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}(od),ad=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;a(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=nd(o.id,o.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}(od),ud=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return a(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}(Zh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),cd=["alt","control","meta","shift"],ld={"\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"},hd={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"},dd={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return a(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 Gl().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(cd.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 s={};return s.domEventName=i,s.fullKey=o,s}},{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&&hd.hasOwnProperty(t)&&(t=hd[t]))}return ld[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),cd.forEach(function(i){i!=n&&(0,dd[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}(Zh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),pd=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return ji(md)},token:e,providedIn:"root"}),e}();function vd(e){return new md(e.get(Zl))}var md=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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 Tr.NONE:return t;case Tr.HTML:return ir(t,"HTML")?nr(t):Or(this._doc,String(t)).toString();case Tr.STYLE:return ir(t,"Style")?nr(t):t;case Tr.SCRIPT:if(ir(t,"Script"))return nr(t);throw new Error("unsafe value used in a script context");case Tr.URL:return rr(t),ir(t,"URL")?nr(t):cr(String(t));case Tr.RESOURCE_URL:if(ir(t,"ResourceURL"))return nr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Xi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new $i(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new er(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new tr(e)}}]),n}(pd);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return vd(ji(xs))},token:e,providedIn:"root"}),e}(),gd=Pl(Ul,"browser",[{provide:Kc,useValue:"browser"},{provide:Qc,useValue:function(){Fh.makeCurrent(),Wh.init()},multi:!0},{provide:Zl,useFactory:function(){return function(e){Bt=e}(document),document},deps:[]}]),yd=[[],{provide:Ps,useValue:"root"},{provide:Dr,useFactory:function(){return new Dr},deps:[]},{provide:Gh,useClass:ud,multi:!0,deps:[Zl,hl,Kc]},{provide:Gh,useClass:fd,multi:!0,deps:[Zl]},[],{provide:rd,useClass:rd,deps:[qh,Qh,qc]},{provide:Cu,useExisting:rd},{provide:Yh,useExisting:Qh},{provide:Qh,useClass:Qh,deps:[Zl]},{provide:bl,useClass:bl,deps:[hl]},{provide:qh,useClass:qh,deps:[Gh,hl]},{provide:jh,useClass:Hh,deps:[]},[]],bd=function(){var e=function(){function e(t){if(a(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:qc,useValue:t.appId},{provide:Uh,useExisting:qc},zh]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:yd,imports:[Ih,Wl]}),e}();function _d(){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 kd(i,null);if(T(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return kd(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return kd(t=1===t.length&&x(t[0])?t[0]:t,null).pipe(J(function(e){return o.apply(void 0,C(e))}))}return kd(t,null)}function kd(e,t){return new W(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,s=0,a=function(a){var u=ae(e[a]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,s++),r[a]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&c||(s===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},u=0;u<i;u++)a(u);else n.complete()})}"undefined"!=typeof window&&window;var wd=function(){var e=function(){function e(t,n){a(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return s(e,[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(aa(Eu),aa(wu))},e.\u0275dir=kt({type:e}),e}(),Sd=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(wd);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,features:[Gs]}),e}(),Cd=new _i("NgValueAccessor"),Ed={provide:Cd,useExisting:Me(function(){return xd}),multi:!0},Od=new _i("CompositionEventMode"),xd=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var o,s;return a(this,n),(o=t.call(this,e,i))._compositionMode=r,o._composing=!1,null==o._compositionMode&&(o._compositionMode=(s=Gl()?Gl().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),o}return s(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":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)}}]),n}(wd);return e.\u0275fac=function(t){return new(t||e)(aa(Eu),aa(wu),aa(Od,8))},e.\u0275dir=kt({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&&ba("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:[pu([Ed]),Gs]}),e}();function Td(e){return null==e||0===e.length}function Pd(e){return null!=e&&"number"==typeof e.length}var Md=new _i("NgValidators"),Id=new _i("NgAsyncValidators"),Ad=/^(?=.{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])?)*$/,Rd=function(){function e(){a(this,e)}return s(e,null,[{key:"min",value:function(e){return t=e,function(e){if(Td(e.value)||Td(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null};var t}},{key:"max",value:function(e){return t=e,function(e){if(Td(e.value)||Td(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null};var t}},{key:"required",value:function(e){return function(e){return Td(e.value)?{required:!0}:null}(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Td(e.value)||Ad.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return t=e,function(e){return Td(e.value)||!Pd(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"maxLength",value:function(e){return t=e,function(e){return Pd(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"pattern",value:function(e){return(t=e)?("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(Td(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):Ld;var t,n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Bd(e)}},{key:"composeAsync",value:function(e){return zd(e)}}]),e}();function Ld(e){return null}function Nd(e){return null!=e}function Dd(e){var t=ma(e)?ae(e):e;return ya(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){if(!e)return null;var t=e.filter(Nd);return 0==t.length?null:function(e){return Vd(jd(e,t))}}function Ud(e){return null!=e?Bd(Fd(e)):null}function zd(e){if(!e)return null;var t=e.filter(Nd);return 0==t.length?null:function(e){return _d(jd(e,t).map(Dd)).pipe(J(Vd))}}function Wd(e){return null!=e?zd(Fd(e)):null}function Hd(e,t){return null===e?[t]:Array.isArray(e)?[].concat(C(e),[t]):[e,t]}function Gd(e){return e._rawValidators}function qd(e){return e._rawAsyncValidators}var Zd=function(){var e=function(){function e(){a(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=Ud(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Wd(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=kt({type:e}),e}(),Yd=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Zd);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,features:[Gs]}),e}(),Qd=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Zd),Kd=function(){function e(t){a(this,e),this._cd=t}return s(e,[{key:"is",value:function(e){var t,n,i;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[e])}}]),e}(),Jd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return a(this,n),t.call(this,e)}return n}(Kd);return e.\u0275fac=function(t){return new(t||e)(aa(Qd,2))},e.\u0275dir=kt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Va("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Gs]}),e}(),Xd=function(){var e=function(e){c(n,e);var t=p(n);function n(e){return a(this,n),t.call(this,e)}return n}(Kd);return e.\u0275fac=function(t){return new(t||e)(aa(Yd,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&Va("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[Gs]}),e}();function $d(e,t){nf(e,t),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&&of(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&&of(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 ef(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),rf(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function tf(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function nf(e,t){var n=Gd(e);null!==t.validator?e.setValidators(Hd(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=qd(e);null!==t.asyncValidator?e.setAsyncValidators(Hd(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};tf(t._rawValidators,r),tf(t._rawAsyncValidators,r)}function rf(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=Gd(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=qd(e);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(e){return e!==t.asyncValidator});s.length!==o.length&&(n=!0,e.setAsyncValidators(s))}}}var a=function(){};return tf(t._rawValidators,a),tf(t._rawAsyncValidators,a),n}function of(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function sf(e,t){nf(e,t)}function af(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function uf(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 cf(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===xd?n=e:Object.getPrototypeOf(e.constructor)===Sd?i=e:r=e}),r||i||n||null}function lf(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hf="VALID",df="INVALID",ff="PENDING",pf="DISABLED";function vf(e){return(bf(e)?e.validators:e)||null}function mf(e){return Array.isArray(e)?Ud(e):e||null}function gf(e,t){return(bf(t)?t.asyncValidators:e)||null}function yf(e){return Array.isArray(e)?Wd(e):e||null}function bf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var _f=function(){function e(t,n){a(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=mf(this._rawValidators),this._composedAsyncValidatorFn=yf(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===hf}},{key:"invalid",get:function(){return this.status===df}},{key:"pending",get:function(){return this.status==ff}},{key:"disabled",get:function(){return this.status===pf}},{key:"enabled",get:function(){return this.status!==pf}},{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=mf(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=yf(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=ff,!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=pf,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=hf,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!==hf&&this.status!==ff||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()?pf:hf}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=ff,this._hasOwnPendingAsyncValidator=!0;var n=Dd(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 wf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Sf&&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 Ec,this.statusChanges=new Ec}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pf:this.errors?df:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ff)?ff:this._anyControlsHaveStatus(df)?df:hf}},{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){bf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),kf=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,o=arguments.length>2?arguments[2]:void 0;return a(this,n),(e=t.call(this,vf(r),gf(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),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){lf(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){lf(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}(_f),wf=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,vf(i),gf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}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){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),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 kf?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}(_f),Sf=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,vf(i),gf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return s(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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({emitEvent:n.emitEvent}),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 kf?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{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}(_f),Cf={provide:Yd,useExisting:Me(function(){return Of})},Ef=function(){return Promise.resolve(null)}(),Of=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ec,r.form=new wf({},Ud(e),Wd(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;Ef.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),$d(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;Ef.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),lf(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Ef.then(function(){var n=t._findContainer(e.path),i=new wf({});sf(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Ef.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;Ef.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,uf(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}(Yd);return e.\u0275fac=function(t){return new(t||e)(aa(Md,10),aa(Id,10))},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ba("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([Cf]),Gs]}),e}(),xf={provide:Qd,useExisting:Me(function(){return Pf})},Tf=function(){return Promise.resolve(null)}(),Pf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this)).control=new kf,s._registered=!1,s.update=new Ec,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=cf(d(s),o),s}return s(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),af(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(){$d(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;Tf.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;Tf.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)(aa(Yd,9),aa(Md,10),aa(Id,10),aa(Cd,10))},e.\u0275dir=kt({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:[pu([xf]),Gs,Nt]}),e}(),Mf=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),If=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),Af=new _i("NgModelWithFormControlWarning"),Rf={provide:Qd,useExisting:Me(function(){return Lf})},Lf=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this))._ngModelWarningConfig=o,s.update=new Ec,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(i),s.valueAccessor=cf(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&&ef(t,this),$d(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}af(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&ef(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)(aa(Md,10),aa(Id,10),aa(Cd,10),aa(Af,8))},e.\u0275dir=kt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pu([Rf]),Gs,Nt]}),e._ngModelWarningSentOnce=!1,e}(),Nf={provide:Yd,useExisting:Me(function(){return Df})},Df=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 Ec,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&&(rf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return $d(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){ef(e.control||null,e),lf(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,uf(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=t.control,i=e.form.get(t.path);n!==i&&(ef(n||null,t),i instanceof kf&&($d(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);sf(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 rf(e,t)}(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(){nf(this.form,this),this._oldForm&&rf(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yd);return e.\u0275fac=function(t){return new(t||e)(aa(Md,10),aa(Id,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ba("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([Nf]),Gs,Nt]}),e}(),Vf=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[If]]}),e}(),jf=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[Vf]}),e}(),Ff=function(){var e=function(){function e(){a(this,e)}return s(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Af,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[Vf]}),e}();function Bf(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Uf=function(){var e=function(){function e(){a(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&&(Bf(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 wf(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new kf(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Sf(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 kf||e instanceof wf||e instanceof Sf?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=Ve({factory:function(){return new e},token:e,providedIn:Ff}),e}(),zf=function e(){a(this,e)},Wf=function e(){a(this,e)},Hf="*";function Gf(e,t){return{type:7,name:e,definitions:t,options:{}}}function qf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Yf(e){return{type:6,styles:e,offset:null}}function Qf(e,t,n){return{type:0,name:e,styles:t,options:n}}function Kf(e){return{type:5,steps:e}}function Jf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Xf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function ep(e){Promise.resolve(null).then(e)}var tp=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;a(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;ep(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(){this._started=!1}},{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}(),np=function(){function e(t){var n=this;a(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,s=this.players.length;0==s?ep(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(){++o==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}(),ip="!";function rp(){return"undefined"!=typeof window&&void 0!==window.document}function op(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function sp(e){switch(e.length){case 0:return new tp;case 1:return e[0];default:return new np(e)}}function ap(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]:{},s=[],a=[],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,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),a){case ip:a=r[n];break;case Hf:a=o[n];break;default:a=t.normalizeStyleValue(n,i,a,s)}l[i]=a}),i||a.push(l),c=l,u=n}),s.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(s.join(l)))}return a}function up(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&cp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&cp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&cp(n,"destroy",e))})}}function cp(e,t,n){var i=n.totalTime,r=lp(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 lp(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,s=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function hp(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 dp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var fp=function(e,t){return!1},pp=function(e,t){return!1},vp=function(e,t,n){return[]},mp=op();(mp||"undefined"!=typeof Element)&&(fp=rp()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},pp=function(){if(mp||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])}:pp}(),vp=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 s=e.querySelector(t);s&&i.push(s)}return i});var gp=null,yp=!1;function bp(e){gp||(gp=("undefined"!=typeof document?document.body:null)||{},yp=!!gp.style&&"WebkitAppearance"in gp.style);var t=!0;return gp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in gp.style)&&yp&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in gp.style),t}var _p=pp,kp=fp,wp=vp;function Sp(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 Cp=function(){var e=function(){function e(){a(this,e)}return s(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new tp(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Ep=function(){var e=function e(){a(this,e)};return e.NOOP=new Cp,e}(),Op="ng-enter",xp="ng-leave",Tp="ng-trigger",Pp=".ng-trigger",Mp="ng-animating",Ip=".ng-animating";function Ap(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Rp(parseFloat(t[1]),t[2])}function Rp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Lp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Rp(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(r=Rp(parseFloat(a),s[4]));var u=s[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 Np(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 Dp(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 Np(e,n);return n}function Vp(e,t,n){return n?t+":"+n+";":""}function jp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Vp(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Vp(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Fp(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=Zp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),op()&&jp(e))}function Bp(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Zp(t);e.style[n]=""}),op()&&jp(e))}function Up(e){return Array.isArray(e)?1==e.length?e[0]:Zf(e):e}var zp=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Wp(e){var t=[];if("string"==typeof e){for(var n;n=zp.exec(e);)t.push(n[1]);zp.lastIndex=0}return t}function Hp(e,t,n){var i=e.toString(),r=i.replace(zp,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 Gp(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var qp=/-+([a-z0-9])/g;function Zp(e){return e.replace(qp,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function Yp(e,t){return 0===e||0===t}function Qp(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 s=function(){var n=t[a];o.forEach(function(t){n[t]=Jp(e,t)})},a=1;a<t.length;a++)s()}return t}function Kp(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 Jp(e,t){return window.getComputedStyle(e)[t]}var Xp="*",$p=new Set(["true","1"]),ev=new Set(["false","0"]);function tv(e,t){var n=$p.has(e)||ev.has(e),i=$p.has(t)||ev.has(t);return function(r,o){var s=e==Xp||e==r,a=t==Xp||t==o;return!s&&n&&"boolean"==typeof r&&(s=r?$p.has(e):ev.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?$p.has(t):ev.has(t)),s&&a}}var nv=":self",iv=new RegExp("s*".concat(nv,"s*,?"),"g");function rv(e,t,n){return new ov(e).build(t,n)}var ov=function(){function e(t){a(this,e),this._driver=t}return s(e,[{key:"build",value:function(e,t){var n=new sv(t);return this._resetContextStyleTimingState(n),Kp(this,Up(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=[],s=[];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 a=e,u=a.name;u.toString().split(/\s*,\s*/).forEach(function(e){a.name=e,o.push(n.visitState(a,t))}),a.name=u}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,s.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:s,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(av(e)){var t=e;Object.keys(t).forEach(function(e){Wp(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var s=Gp(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(s.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=Kp(this,Up(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],s=r[2],a=r[3];t.push(tv(o,a)),"<"!=s[0]||o==Xp&&a==Xp||t.push(tv(a,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:uv(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Kp(n,e,t)}),options:uv(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=Kp(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:uv(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 cv(Lp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=cv(0,0,"");return r.dynamic=!0,r.strValue=i,r}return cv((n=n||Lp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Yf({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};i.easing&&(a.easing=i.easing),o=Yf(a)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,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==Hf?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(av(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 s=t.collectedStyles[t.currentQuerySelector],a=s[i],u=!0;a&&(o!=r&&o>=a.startTime&&r<=a.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(a.startTime,'ms" and "').concat(a.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=a.startTime),u&&(s[i]={startTime:o,endTime:r}),t.options&&(c=t.errors,l=t.options.params||{},(h=Wp(e[i])).length&&h.forEach(function(e){l.hasOwnProperty(e)||c.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'));var c,l,h})})}},{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=[],s=!1,a=!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(av(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(av(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),a=a||l<0||l>1,s=s||l<u,u=l,o.push(l),i});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&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 s=h>0?r==d?1:h*r:o[r],a=s*v;t.currentTime=f+p.delay+a,p.duration=a,n._validateStyleAst(e,t),e.offset=s,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Kp(this,Up(e.animation),t),options:uv(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:uv(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:uv(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==nv});return t&&(e=e.replace(iv,"")),[e=e.replace(/@\*/g,Pp).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Ip),t]}(e.selector),2),o=r[0],s=r[1];t.currentQuerySelector=n.length?n+" "+o:o,hp(t.collectedStyles,t.currentQuerySelector,{});var a=Kp(this,Up(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:uv(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"}:Lp(e.timings,t.errors,!0);return{type:12,animation:Kp(this,Up(e.animation),t),timings:n,options:null}}}]),e}(),sv=function e(t){a(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 av(e){return!Array.isArray(e)&&"object"==typeof e}function uv(e){var t;return e?(e=Np(e)).params&&(e.params=(t=e.params)?Np(t):null):e={},e}function cv(e,t,n){return{duration:e,delay:t,easing:n}}function lv(e,t,n,i,r,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=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:s,subTimeline:a}}var hv=function(){function e(){a(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}(),dv=new RegExp(":enter","g"),fv=new RegExp(":leave","g");function pv(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},a=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 vv).buildKeyframes(e,t,n,i,r,o,s,a,u,c)}var vv=function(){function e(){a(this,e)}return s(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,s,a,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new hv;var l=new gv(e,t,u,i,r,c,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Kp(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(s).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([s],null,l.errors,a)}return h.length?h.map(function(e){return e.buildKeyframes()}):[lv(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?Ap(n.duration):null,o=null!=n.delay?Ap(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),Kp(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=mv);var s=Ap(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return Kp(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?Ap(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),Kp(n,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.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 Lp(t.params?Hp(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?Ap(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mv);var s=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(i,r){t.currentQueryIndex=r;var a=t.createSubContext(e.options,i);o&&a.delayNextStep(o),i===t.element&&(u=a.currentTimeline),Kp(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),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),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;Kp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),mv={},gv=function(){function e(t,n,i,r,o,s,u,c){a(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new yv(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=Ap(i.duration)),null!=i.delay&&(r.delay=Ap(i.delay));var o=i.params;if(o){var s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=Hp(o[e],s,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=mv,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 bv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(dv,"."+this._enterClassName)).replace(fv,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,C(a))}return r||0!=s.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}]),e}(),yv=function(){function e(t,n,i,r){a(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]||Hf,t._currentKeyframe[e]=Hf}),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||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=Hf}):Dp(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=Hp(s[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:Hf),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,s){var a=Dp(o,!0);Object.keys(a).forEach(function(e){var i=a[e];i==ip?t.add(e):i==Hf&&n.add(e)}),i||(a.offset=s/e.duration),r.push(a)});var o=t.size?Gp(t.values()):[],s=n.size?Gp(n.values()):[];if(i){var a=r[0],u=Np(a);a.offset=0,u.offset=1,r=[a,u]}return lv(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),bv=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return a(this,n),(c=t.call(this,e,i,u.delay)).keyframes=r,c.preStyleProps=o,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=[],s=i+n,a=n/s,u=Dp(e[0],!1);u.offset=0,o.push(u);var c=Dp(e[0],!1);c.offset=_v(a),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=Dp(e[h],!1);d.offset=_v((n+d.offset*i)/s),o.push(d)}i=s,n=0,r="",e=o}return lv(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(yv);function _v(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 kv=function e(){a(this,e)},wv=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"normalizePropertyName",value:function(e,t){return Zp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Sv[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(kv),Sv=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 Cv(e,t,n,i,r,o,s,a,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var Ev={},Ov=function(){function e(t,n,i){a(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,s,a,u,c){var l=[],h=this.ast.options&&this.ast.options.params||Ev,d=this.buildStyles(n,s&&s.params||Ev,l),f=a&&a.params||Ev,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?[]:pv(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 Cv(t,this._triggerName,n,i,y,d,p,[],[],m,g,k,l);_.forEach(function(e){var n=e.element,i=hp(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=hp(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=Gp(v.values());return Cv(t,this._triggerName,n,i,y,d,p,_,w,m,g,k)}}]),e}(),xv=function(){function e(t,n,i){a(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return s(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=Np(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var s=o[e];s.length>1&&(s=Hp(s,r,t));var a=n.normalizer.normalizePropertyName(e,t);s=n.normalizer.normalizeStyleValue(e,a,s,t),i[a]=s})}}),i}}]),e}(),Tv=function(){function e(t,n,i){var r=this;a(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new xv(e.style,e.options&&e.options.params||{},i)}),Pv(this.states,"true","1"),Pv(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Ov(t,e,r.states))}),this.fallbackTransition=new Ov(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 Pv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Mv=new hv,Iv=function(){function e(t,n,i){a(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=rv(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=ap(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=[],s=this._animations[e],a=new Map;if(s?(n=pv(this._driver,t,s,Op,xp,{},{},r,Mv,o)).forEach(function(e){var t=hp(a,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")));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,Hf)})});var u=n.map(function(e){var t=a.get(e.element);return i._buildPlayer(e,{},t)}),c=sp(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=lp(t,"","","");return up(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}(),Av="ng-animate-queued",Rv="ng-animate-disabled",Lv=".ng-animate-disabled",Nv="ng-star-inserted",Dv=[],Vv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";a(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Gv(r),i){var o=Np(t);delete o.value,this.options=o}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}(),Bv="void",Uv=new Fv(Bv),zv=function(){function e(t,n,i){a(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,Kv(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 s=hp(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};s.push(a);var u=hp(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Kv(e,Tp),Kv(e,"ng-trigger-"+t),u[t]=Uv),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.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),s=new Hv(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Kv(e,Tp),Kv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],c=new Fv(n,this.id),l=n&&n.hasOwnProperty("value");!l&&u&&c.absorbOptions(u.options),a[t]=c,u||(u=Uv);var h=c.value===Bv;if(h||u.value!==c.value){var d=hp(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:s,isFallbackTransition:p}),p||(Kv(e,Av),s.onStart(function(){Jv(e,Av)})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),d.push(s),s}if(!em(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(){Bp(e,m),Fp(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,Pp,!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 s=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,Bv,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&sp(s).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var s=t._triggers[o].fallbackTransition,a=i[o]||Uv,u=new Fv(Bv),c=new Hv(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:s,fromState:a,toState:u,player:c,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 s=e;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var a=e.__ng_removed;a&&a!==Vv||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Kv(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,s=t._elementListeners.get(o);s&&s.forEach(function(t){if(t.name==i.triggerName){var n=lp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,up(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}(),Wv=function(){function e(t,n,i){a(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 zv(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?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 s=this._fetchNamespace(o);s&&t.add(s)}}return t}},{key:"trigger",value:function(e,t,n,i){if(qv(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(qv(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 s=this._fetchNamespace(e);s&&s.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),Kv(e,Rv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Jv(e,Rv))}},{key:"removeNode",value:function(e,t,n,i){if(qv(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 qv(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,Pp,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Ip,!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 sp(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=Vv,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Lv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Lv,!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];Kv(r,Nv)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var s=0;s<o.length;s++)o[s]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++){var u=this.collectedLeaveElements[a];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?sp(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 hv,r=[],o=new Map,s=[],a=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=Qv(d,this.collectedEnterElements),p=new Map,v=0;f.forEach(function(e,t){var n=Op+v++;p.set(t,n),e.forEach(function(e){return Kv(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=Qv(d,Array.from(g));S.forEach(function(e,t){var n=xp+v++;w.set(t,n),e.forEach(function(e){return Kv(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return Jv(e,n)})}),S.forEach(function(e,t){var n=w.get(t);e.forEach(function(e){return Jv(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 Bp(o,m.fromStyles)}),t.onDestroy(function(){return Fp(o,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Bp(o,m.fromStyles)}),t.onDestroy(function(){return Fp(o,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,m.timelines),s.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return hp(a,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 P=new Map,M=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(M.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){hp(P,t,[]).push(e),e.destroy()})});var I=m.filter(function(e){return tm(e,u,c)}),A=new Map;Yv(A,this.driver,y,c,Hf).forEach(function(e){tm(e,u,c)&&I.push(e)});var R=new Map;f.forEach(function(e,t){Yv(R,n.driver,new Set(e),u,ip)}),I.forEach(function(e){var t=A.get(e),n=R.get(e);A.set(e,Object.assign(Object.assign({},t),n))});var L=[],N=[],D={};s.forEach(function(e){var t=e.element,s=e.player,a=e.instruction;if(i.has(t)){if(l.has(t))return s.onDestroy(function(){return Fp(t,a.toStyles)}),s.disabled=!0,s.overrideTotalTime(a.totalTime),void r.push(s);var u=D;if(M.size>1){for(var c=t,h=[];c=c.parentNode;){var d=M.get(c);if(d){u=d;break}h.push(c)}h.forEach(function(e){return M.set(e,u)})}var f=n._buildAnimation(s.namespaceId,a,P,o,R,A);if(s.setRealPlayer(f),u===D)L.push(s);else{var p=n.playersByElement.get(u);p&&p.length&&(s.parentPlayer=sp(p)),r.push(s)}}else Bp(t,a.fromStyles),s.onDestroy(function(){return Fp(t,a.toStyles)}),N.push(s),l.has(t)&&r.push(s)}),N.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=sp(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(Jv(j,xp),!F||!F.hasAnimation){var B=[];if(a.size){var U=a.get(j);U&&U.length&&B.push.apply(B,C(U));for(var z=this.driver.query(j,Ip,!0),W=0;W<z.length;W++){var H=a.get(z[W]);H&&H.length&&B.push.apply(B,C(H))}}var G=B.filter(function(e){return!e.destroyed});G.length?Xv(this,j,G):this.processLeaveNode(j)}}return m.length=0,L.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()}),L}},{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 s=this.playersByQueriedElement.get(e);s&&(o=s)}else{var a=this.playersByElement.get(e);if(a){var u=!r||r==Bv;a.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,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName,u=g(t.timelines);try{var c=function(){var e=i.value.element,u=e!==o,c=hp(n,e,[]);r._getPreviousPlayers(e,u,s,a,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()}Bp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var s=this,a=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 tp(t.duration,t.delay);var p,v,m=d!==u,g=(p=(n.get(d)||Dv).map(function(e){return e.getRealPlayer()}),v=[],$v(p,v),v).filter(function(e){return!!e.element&&e.element===d}),y=r.get(d),b=o.get(d),_=ap(s.driver,s._normalizer,d,t.keyframes,y,b),k=s._buildPlayer(t,_,g);if(t.subTimeline&&i&&h.add(d),m){var w=new Hv(e,a,d);w.setRealPlayer(k),c.push(w)}return k});c.forEach(function(e){hp(s.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}(s.playersByQueriedElement,e.element,e)})}),l.forEach(function(e){return Kv(e,Mp)});var f=sp(d);return f.onDestroy(function(){l.forEach(function(e){return Jv(e,Mp)}),Fp(u,t.toStyles)}),h.forEach(function(e){hp(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 tp(e.duration,e.delay)}}]),e}(),Hv=function(){function e(t,n,i){a(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new tp,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 up(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){hp(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 Gv(e){return null!=e?e:null}function qv(e){return e&&1===e.nodeType}function Zv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Yv(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(Zv(e))});var s=[];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=jv,s.push(i))}),e.set(i,o)});var a=0;return n.forEach(function(e){return Zv(e,o[a++])}),s}function Qv(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 s=e.parentNode;return t=n.has(s)?s:i.has(s)?1:o(s),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function Kv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Jv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Xv(e,t,n){sp(n).onDone(function(){return e.processLeaveNode(t)})}function $v(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof np?$v(i.players,t):t.push(i)}}function em(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 tm(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 nm=function(){function e(t,n,i){var r=this;a(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Wv(t,n,i),this._timelineEngine=new Iv(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,s=this._triggerCache[o];if(!s){var a=[],u=rv(this._driver,r,a);if(a.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(a.join("\n - ")));s=function(e,t,n){return new Tv(e,t,n)}(i,u,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,i,s)}},{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=_(dp(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=_(dp(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 im(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=om(t[0]),t.length>1&&(i=om(t[t.length-1]))):t&&(n=om(t)),n||i?new rm(e,n,i):null}var rm=function(){var e=function(){function e(t,n,i){a(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&&Fp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Fp(this._element,this._initialStyles),this._endStyles&&(Fp(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&&(Bp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bp(this._element,this._endStyles),this._endStyles=null),Fp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function om(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];sm(r)&&((t=t||{})[r]=e[r])}return t}function sm(e){return"display"===e||"position"===e}var am="animation",um="animationend",cm=function(){function e(t,n,i,r,o,s,u){var c=this;a(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,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=vm(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),pm(e,"",t),fm(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){lm(this._element,this._name,"paused")}},{key:"resume",value:function(){lm(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=hm(this._element,this._name);this._position=e*this._duration,pm(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(),fm(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=dm(n=vm(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),pm(e,"",n.join(","))))}}]),e}();function lm(e,t,n){pm(e,"PlayState",n,hm(e,t))}function hm(e,t){var n=vm(e,"");return n.indexOf(",")>0?dm(n.split(","),t):dm([n],t)}function dm(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function fm(e,t,n){n?e.removeEventListener(um,t):e.addEventListener(um,t)}function pm(e,t,n,i){var r=am+t;if(null!=i){var o=e.style[r];if(o.length){var s=o.split(",");s[i]=n,n=s.join(",")}}e.style[r]=n}function vm(e,t){return e.style[am+t]||""}var mm=function(){function e(t,n,i,r,o,s,u,c){a(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=u,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+o,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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new cm(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]:Jp(e.element,i))})}this.currentSnapshot=t}}]),e}(),gm=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Sp(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}(tp),ym="gen_css_kf_",bm=function(){function e(){a(this,e),this._count=0}return s(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(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 Sp(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]:[],s=o.filter(function(e){return e instanceof mm}),a={};Yp(n,i)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a[e]=t[e]})});var u=km(t=Qp(e,t,a));if(0==n)return new gm(e,u);var c="".concat(ym).concat(this._count++),l=this.buildKeyframeElement(e,c,t),h=_m(e);h.appendChild(l);var d=im(e,t),f=new mm(e,t,c,n,i,r,u,d);return f.onDestroy(function(){return wm(l)}),f}}]),e}();function _m(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function km(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 wm(e){e.parentNode.removeChild(e)}var Sm=function(){function e(t,n,i,r){a(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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Jp(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}(),Cm=function(){function e(){a(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Em().toString()),this._cssKeyframesDriver=new bm}return s(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(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]:[],s=arguments.length>6?arguments[6]:void 0,a=!s&&!this._isNativeImpl;if(a)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 Sm});Yp(n,i)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var d=im(e,t=Qp(e,t=t.map(function(e){return Dp(e,!1)}),l));return new Sm(e,t,c,d)}}]),e}();function Em(){return rp()&&Element.prototype.animate||{}}var Om=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:$e.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)?Zf(e):e;return Pm(this._renderer,null,t,"register",[n]),new xm(t,this._renderer)}}]),n}(zf);return e.\u0275fac=function(t){return new(t||e)(ji(Cu),ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),xm=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return s(n,[{key:"create",value:function(e,t){return new Tm(this._id,e,t||{},this._renderer)}}]),n}(Wf),Tm=function(){function e(t,n,i,r){a(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 Pm(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"),this._started=!1}},{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 Pm(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Mm="@",Im="@.disabled",Am=function(){var e=function(){function e(t,n,i){a(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 Rm("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,s,e,i.name,i)}),new Lm(this,s,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)(ji(Cu),ji(nm),ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Rm=function(){function e(t,n,i){a(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)==Mm&&t==Im?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}(),Lm=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,i,r,o)).factory=e,s.namespaceId=i,s}return s(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==Mm?"."==t.charAt(1)&&t==Im?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)==Mm){var s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),u="";if(a.charAt(0)!=Mm){var c=_((r=(i=a).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);a=c[0],u=c[1]}return this.engine.listen(this.namespaceId,s,a,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Rm),Nm=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){return a(this,n),t.call(this,e.body,i,r)}return s(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(nm);return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Ep),ji(kv))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Dm=new _i("AnimationModuleType"),Vm=[{provide:zf,useClass:Om},{provide:kv,useFactory:function(){return new wv}},{provide:nm,useClass:Nm},{provide:Cu,useFactory:function(e,t,n){return new Am(e,t,n)},deps:[rd,nm,hl]}],jm=[{provide:Ep,useFactory:function(){return"function"==typeof Em()?new Cm:new bm}},{provide:Dm,useValue:"BrowserAnimations"}].concat(Vm),Fm=[{provide:Ep,useClass:Cp},{provide:Dm,useValue:"NoopAnimations"}].concat(Vm),Bm=function(){var e=function(){function e(){a(this,e)}return s(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Fm:jm}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:jm,imports:[bd]}),e}(),Um=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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}(Y);function zm(){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(),se(t,i)):ve(t)}var Wm=27;function Hm(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 Gm(){}function qm(e,t,n){return function(i){return i.lift(new Zm(e,t,n))}}var Zm=function(){function e(t,n,i){a(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ym(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Ym=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e))._tapNext=Gm,s._tapError=Gm,s._tapComplete=Gm,s._tapError=r||Gm,s._tapComplete=o||Gm,P(i)?(s._context=d(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||Gm,s._tapError=i.error||Gm,s._tapComplete=i.complete||Gm),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),Qm=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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(HM){n=!0,i=!!HM&&HM||new Error(HM)}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 a(this,n),t.call(this)}return s(n,[{key:"schedule",value:function(e){return this}}]),n}(I)),Km=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;a(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}(),Jm=function(e){c(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Km.now;return a(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}(Km),Xm=new Jm(Qm);function $m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm;return function(n){return n.lift(new eg(e,t))}}var eg=function(){function e(t,n){a(this,e),this.dueTime=t,this.scheduler=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new tg(e,this.dueTime,this.scheduler))}}]),e}(),tg=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return s(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ng,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 ng(e){e.debouncedNext()}function ig(e,t){return function(n){return n.lift(new rg(e,t))}}var rg=function(){function e(t,n){a(this,e),this.predicate=t,this.thisArg=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new og(e,this.predicate,this.thisArg))}}]),e}(),og=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}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),sg=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}(),ag=new W(function(e){return e.complete()});function ug(e){return e?function(e){return new W(function(t){return e.schedule(function(){return t.complete()})})}(e):ag}function cg(e){return function(t){return 0===e?ug():t.lift(new lg(e))}}var lg=function(){function e(t){if(a(this,e),this.total=t,this.total<0)throw new sg}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new hg(e,this.total))}}]),e}(),hg=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 dg(e){return function(t){return t.lift(new fg(e))}}var fg=function(){function e(t){a(this,e),this.total=t}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 a(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);function vg(e,t){return function(n){return n.lift(new mg(e,t))}}var mg=function(){function e(t,n){a(this,e),this.compare=t,this.keySelector=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new gg(e,this.compare,this.keySelector))}}]),e}(),gg=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}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 yg(e){return function(t){return t.lift(new _g(e))}}var bg,_g=function(){function e(t){a(this,e),this.notifier=t}return s(e,[{key:"call",value:function(e,t){var n=new kg(e),i=le(this.notifier,new ue(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),kg=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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 wg(e){return null!=e&&"false"!=="".concat(e)}function Sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Cg(e)?Number(e):t}function Cg(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Eg(e){return Array.isArray(e)?e:[e]}function Og(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function xg(e){return e instanceof wu?e.nativeElement:e}try{bg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch($R){bg=!1}var Tg,Pg,Mg,Ig,Ag,Rg=function(){var e=function e(t){a(this,e),this._platformId=t,this.isBrowser=this._platformId?Ah(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&&!bg)&&"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)(ji(Kc))},e.\u0275prov=Ve({factory:function(){return new e(ji(Kc))},token:e,providedIn:"root"}),e}(),Lg=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),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 Dg(){if(Tg)return Tg;if("object"!=typeof document||!document)return Tg=new Set(Ng);var e=document.createElement("input");return Tg=new Set(Ng.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function Vg(e){return function(){if(null==Pg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Pg=!0}}))}finally{Pg=Pg||!1}return Pg}()?e:!!e.capture}function jg(){if(null==Ig){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ig=!1;if("scrollBehavior"in document.documentElement.style)Ig=!0;else{var e=Element.prototype.scrollTo;Ig=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Ig}function Fg(){if("object"!=typeof document||!document)return 0;if(null==Mg){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),Mg=0,0===e.scrollLeft&&(e.scrollLeft=1,Mg=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Mg}function Bg(e){if(function(){if(null==Ag){var e="undefined"!=typeof document?document.head:null;Ag=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Ag}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ug(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function zg(e){return e.composedPath?e.composedPath()[0]:e.target}var Wg=function(){var e=function(){function e(){a(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=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Hg=function(){var e=function(){function e(t){a(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=xg(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 Y,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)(ji(Wg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Wg))},token:e,providedIn:"root"}),e}(),Gg=function(){var e=function(){function e(t,n,i){a(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Ec,this._disabled=!1,this._currentSubscription=null}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Sg(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($m(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(aa(Hg),aa(wu),aa(hl))},e.\u0275dir=kt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),qg=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Wg]}),e}();function Zg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Yg="cdk-describedby-message-container",Qg="cdk-describedby-message",Kg="cdk-describedby-host",Jg=0,Xg=new Map,$g=null,ey=function(){var e=function(){function e(t){a(this,e),this._document=t}return s(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=ty(t,n);"string"!=typeof t?(ny(t),Xg.set(i,{messageElement:t,referenceCount:0})):Xg.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=ty(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=Xg.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}$g&&0===$g.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(Kg,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(Kg);$g&&this._deleteMessagesContainer(),Xg.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");ny(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),$g.appendChild(n),Xg.set(ty(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=Xg.get(e),n=t&&t.messageElement;$g&&n&&$g.removeChild(n),Xg.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!$g){var e=this._document.getElementById(Yg);e&&e.parentNode&&e.parentNode.removeChild(e),($g=this._document.createElement("div")).id=Yg,$g.style.visibility="hidden",$g.classList.add("cdk-visually-hidden"),this._document.body.appendChild($g)}}},{key:"_deleteMessagesContainer",value:function(){$g&&$g.parentNode&&($g.parentNode.removeChild($g),$g=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Zg(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(Qg)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=Xg.get(t);i=o.messageElement.id,(r=Zg(n=e,"aria-describedby")).some(function(e){return e.trim()==i.trim()})||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(Kg,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,s=Xg.get(t);s.referenceCount--,r=s.messageElement.id,(o=Zg(n=e,i="aria-describedby").filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(Kg)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=Zg(e,"aria-describedby"),i=Xg.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)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}();function ty(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function ny(e){e.id||(e.id="".concat(Qg,"-").concat(Jg++))}var iy=function(){function e(t){var n=this;a(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=I.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,t instanceof xc&&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(qm(function(t){return e._pressedLetters.push(t)}),$m(t),ig(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||Hm(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 xc?this._items.toArray():this._items}}]),e}(),ry=function(e){c(n,e);var t=p(n);function n(){return a(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}(iy),oy=function(e){c(n,e);var t=p(n);function n(){var e;return a(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}(iy),sy=function(){var e=function(){function e(t){a(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($R){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===uy(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=uy(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")||ay(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg))},token:e,providedIn:"root"}),e}();function ay(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 uy(e){if(!ay(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var cy=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];a(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,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(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{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(e){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.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",t),!this._checker.isFocusable(t)){var n=this._getFirstTabbableElement(t);return null==n||n.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}},{key:"focusFirstTabbableElement",value:function(e){var t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}},{key:"focusLastTabbableElement",value:function(e){var t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}},{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(cg(1)).subscribe(e)}}]),e}(),ly=function(){var e=function(){function e(t,n,i){a(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 cy(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(sy),ji(hl),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(sy),ji(hl),ji(Zl))},token:e,providedIn:"root"}),e}();function hy(e){return 0===e.offsetX&&0===e.offsetY}function dy(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&&Element;var fy=new _i("cdk-input-modality-detector-options"),py={ignoreKeys:[18,17,224,91,16]},vy=Vg({passive:!0,capture:!0}),my=function(){var e=function(){function e(t,n,i,r){var o=this;a(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new Um(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=zg(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(hy(e)?"keyboard":"mouse"),o._mostRecentTarget=zg(e))},this._onTouchstart=function(e){dy(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=zg(e))},this._options=Object.assign(Object.assign({},py),r),this.modalityDetected=this._modality.pipe(dg(1)),this.modalityChanged=this.modalityDetected.pipe(vg()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,vy),i.addEventListener("mousedown",o._onMousedown,vy),i.addEventListener("touchstart",o._onTouchstart,vy)})}return s(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,vy),document.removeEventListener("mousedown",this._onMousedown,vy),document.removeEventListener("touchstart",this._onTouchstart,vy))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(hl),ji(Zl),ji(fy,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl),ji(Zl),ji(fy,8))},token:e,providedIn:"root"}),e}(),gy=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),yy=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),by=function(){var e=function(){function e(t,n,i,r){a(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,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return 1===s.length&&"number"==typeof s[0]?n=s[0]:(t=s[0],n=s[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)(ji(gy,8),ji(hl),ji(Zl),ji(yy,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(gy,8),ji(hl),ji(Zl),ji(yy,8))},token:e,providedIn:"root"}),e}(),_y=new _i("cdk-focus-monitor-default-options"),ky=Vg({passive:!0,capture:!0}),wy=function(){var e=function(){function e(t,n,i,r,o){var s=this;a(this,e),this._ngZone=t,this._platform=n,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){s._windowFocused=!0,s._windowFocusTimeoutId=setTimeout(function(){return s._windowFocused=!1})},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=function(e){for(var t=zg(e),n="focus"===e.type?s._onFocus:s._onBlur,i=t;i;i=i.parentElement)n.call(s,e,i)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}return s(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xg(e);if(!this._platform.isBrowser||1!==n.nodeType)return zm(null);var i=Bg(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Y,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=xg(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=this,r=xg(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_(e,2);return i._originChanged(n[0],t,n[1])}):(this._setOrigin(t),"function"==typeof r.focus&&r.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._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{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:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=zg(e);n&&(n.checkChildren||t===i)&&this._originChanged(t,this._getFocusOrigin(i),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,ky),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ky)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yg(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{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,ky),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ky),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Rg),ji(my),ji(Zl,8),ji(_y,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Rg),ji(my),ji(Zl,8),ji(_y,8))},token:e,providedIn:"root"}),e}(),Sy="cdk-high-contrast-black-on-white",Cy="cdk-high-contrast-white-on-black",Ey="cdk-high-contrast-active",Oy=function(){var e=function(){function e(t,n){a(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._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(Ey),e.remove(Sy),e.remove(Cy),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(Ey),e.add(Sy)):2===t&&(e.add(Ey),e.add(Cy))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(Zl))},token:e,providedIn:"root"}),e}(),xy=function(){var e=function e(t){a(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ji(Oy))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Lg,qg]]}),e}(),Ty=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return Fi(Zl)}}),Py=function(){var e=function(){function e(t){if(a(this,e),this.value="ltr",this.change=new Ec,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)(ji(Ty,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Ty,8))},token:e,providedIn:"root"}),e}(),My=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),Iy=new Tu("12.1.3");function Ay(){return pe(1)}function Ry(){return Ay()(zm.apply(void 0,arguments))}function Ly(){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 Ry(t,e,i)}):function(e){return Ry(t,e)}}function Ny(e,t){if(1&e&&da(0,"mat-pseudo-checkbox",4),2&e){var n=Ca();ua("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Dy(e,t){if(1&e&&(la(0,"span",5),Ya(1),ha()),2&e){var n=Ca();Io(1),Ka("(",n.group.label,")")}}var Vy=["*"],jy=new Tu("12.1.3"),Fy=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),By=function(){var e=function(){function e(t,n,i){a(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 Cl()&&!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)&&jy.full!==Iy.full&&console.warn("The Angular Material version ("+jy.full+") does not match the Angular CDK version ("+Iy.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Oy),ji(Fy,8),ji(Zl))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[My],My]}),e}();function Uy(e){return function(e){c(n,e);var t=p(n);function n(){var e;a(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return s(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(e)}}]),n}(e)}function zy(e,t){return function(e){c(i,e);var n=p(i);function i(){var e;a(this,i);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n.call.apply(n,[this].concat(o))).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 Wy(e){return function(e){c(n,e);var t=p(n);function n(){var e;a(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return s(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=wg(e)}}]),n}(e)}function Hy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){c(i,e);var n=p(i);function i(){var e;a(this,i);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n.call.apply(n,[this].concat(o)))._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?Sg(e):this.defaultTabIndex}}]),i}(e)}function Gy(e){return function(e){c(n,e);var t=p(n);function n(){var e;a(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).stateChanges=new Y,e.errorState=!1,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 qy=function(){var e=function(){function e(){a(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=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Zy=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),Yy=function(){function e(t,n,i){a(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}(),Qy={enterDuration:225,exitDuration:150},Ky=Vg({passive:!0}),Jy=["mousedown","touchstart"],Xy=["mouseup","mouseleave","touchend","touchcancel"],$y=function(){function e(t,n,i,r){a(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=xg(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({},Qy),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var s=i.radius||tb(e,t,r),a=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(a-s,"px"),l.style.top="".concat(u-s,"px"),l.style.height="".concat(2*s,"px"),l.style.width="".concat(2*s,"px"),null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),eb(l),l.style.transform="scale(1)";var h=new Yy(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({},Qy),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:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=xg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Jy))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xy),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=hy(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&&!dy(e)){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,Ky)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Jy.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ky)}),this._pointerUpEventsRegistered&&Xy.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ky)}))}}]),e}();function eb(e){window.getComputedStyle(e).getPropertyValue("opacity")}function tb(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 nb=new _i("mat-ripple-global-options"),ib=function(){var e=function(){function e(t,n,i,r,o){a(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new $y(this,n,t,i)}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),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:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(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)(aa(wu),aa(hl),aa(Rg),aa(nb,8),aa(Dm,8))},e.\u0275dir=kt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Va("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}(),rb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By,Lg],By]}),e}(),ob=function(){var e=function e(t){a(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(aa(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Va("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}(),sb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By]]}),e}(),ab=new _i("MAT_OPTION_PARENT_COMPONENT"),ub=Uy(function(){return function e(){a(this,e)}}()),cb=0,lb=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i,r;return a(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(cb++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(ub);return e.\u0275fac=function(t){return new(t||e)(aa(ab,8))},e.\u0275dir=kt({type:e,inputs:{label:"label"},features:[Gs]}),e}(),hb=new _i("MatOptgroup"),db=0,fb=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a(this,e),this.source=t,this.isUserInput=n},pb=function(){var e=function(){function e(t,n,i,r){a(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(db++),this.onSelectionChange=new Ec,this._stateChanges=new Y}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=wg(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||Hm(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 fb(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Yu),aa(void 0),aa(lb))},e.\u0275dir=kt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),vb=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){return a(this,n),t.call(this,e,i,r,o)}return n}(pb);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Yu),aa(ab,8),aa(hb,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ba("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Ja("id",t.id),ia("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Va("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Gs],ngContentSelectors:Vy,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&&(Oa(),oa(0,Ny,1,2,"mat-pseudo-checkbox",0),la(1,"span",1),xa(2),ha(),oa(3,Dy,2,1,"span",2),da(4,"div",3)),2&e&&(ua("ngIf",t.multiple),Io(3),ua("ngIf",t.group&&t.group._inert),Io(1),ua("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[bh,ib,ob],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 mb(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,s=0;s<e+1;s++)i[s].group&&i[s].group===r[o]&&o++;return o}return 0}var gb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[rb,Ih,By,sb]]}),e}(),yb=0,bb=Uy(function(){return function e(){a(this,e)}}()),_b=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this))._ngZone=e,u._elementRef=i,u._ariaDescriber=r,u._renderer=o,u._animationMode=s,u._hasContent=!1,u._color="primary",u._overlap=!0,u.position="above after",u.size="medium",u._id=yb++,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=wg(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=wg(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}(bb);return e.\u0275fac=function(t){return new(t||e)(aa(hl),aa(wu),aa(ey),aa(Eu),aa(Dm,8))},e.\u0275dir=kt({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Va("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:[Gs,Nt]}),e}(),kb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[xy,By],By]}),e}(),wb=["mat-button",""],Sb=["*"],Cb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Eb=zy(Uy(Wy(function(){return function e(t){a(this,e),this._elementRef=t}}()))),Ob=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;a(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var s,u=g(Cb);try{for(u.s();!(s=u.n()).done;){var c=s.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}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}(Eb);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(wy),aa(Dm,8))},e.\u0275cmp=vt({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&&jc(ib,5),2&e&&Vc(n=Bc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(ia("disabled",t.disabled||null),Va("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Gs],attrs:wb,ngContentSelectors:Sb,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&&(Oa(),la(0,"span",0),xa(1),ha(),da(2,"span",1),da(3,"span",2)),2&e&&(Io(2),Va("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ua("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[ib],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}(),xb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[rb,By],By]}),e}(),Tb=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}();function Pb(e,t,n,i){return P(n)&&(i=n,n=void 0),i?Pb(e,t,n).pipe(J(function(e){return x(e)?i.apply(void 0,C(e)):i(e)})):new W(function(i){Mb(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function Mb(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var s=e;e.addEventListener(t,n,r),o=function(){return s.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var a=e;e.on(t,n),o=function(){return a.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++)Mb(e[c],t,n,i,r)}i.add(o)}var Ib=1,Ab=function(){return Promise.resolve()}(),Rb={};function Lb(e){return e in Rb&&(delete Rb[e],!0)}var Nb=function(e){var t=Ib++;return Rb[t]=!0,Ab.then(function(){return Lb(t)&&e()}),t},Db=function(e){Lb(e)},Vb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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=Nb(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,e,t,o);0===e.actions.length&&(Db(t),e.scheduled=void 0)}}]),n}(Qm),jb=new(function(e){c(n,e);var t=p(n);function n(){return a(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}(Jm))(Vb);function Fb(e){return function(t){return t.lift(new Bb(e))}}var Bb=function(){function e(t){a(this,e),this.durationSelector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ub(e,this.durationSelector))}}]),e}(),Ub=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 zb(e){return!x(e)&&e-parseFloat(e)+1>=0}function Wb(){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 zb(t)?i=Number(t)<1?1:Number(t):K(t)&&(n=t),K(n)||(n=Xm),new W(function(t){var r=zb(e)?e:+e-n.now();return n.schedule(Hb,r,{index:0,period:i,subscriber:t})})}function Hb(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 Gb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm;return Fb(function(){return Wb(e,t)})}function qb(e,t){return"function"==typeof t?function(n){return n.pipe(qb(function(n,i){return ae(e(n,i)).pipe(J(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Zb(e))}}var Zb=function(){function e(t){a(this,e),this.project=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Yb(e,this.project))}}]),e}(),Yb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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),Qb=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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}(Qm),Kb=new(function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(Jm))(Qb);function Jb(e,t){return new W(t?function(n){return t.schedule(Xb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Xb(e){e.subscriber.error(e.error)}var $b=function(){var e=function(){function e(t,n,i){a(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 zm(this.value);case"E":return Jb(this.error);case"C":return ug()}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}(),e_=function(e){c(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return a(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return s(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new t_(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage($b.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage($b.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage($b.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(j),t_=function e(t,n){a(this,e),this.notification=t,this.destination=n},n_=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,o=arguments.length>2?arguments[2]:void 0;return a(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return 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 i_(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 e_(e,r)),n)for(var s=0;s<o&&!e.closed;s++)e.next(i[s]);else for(var a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Kb).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}(Y),i_=function e(t,n){a(this,e),this.time=t,this.value=n},r_=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];a(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,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}(),o_=function(){var e=function(){function e(t,n,i){a(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Y,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(Gb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):zm()}},{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(ig(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=xg(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Pb(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)(ji(hl),ji(Rg),ji(Zl,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Rg),ji(Zl,8))},token:e,providedIn:"root"}),e}(),s_=function(){var e=function(){function e(t,n,i,r){var o=this;a(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Y,this._elementScrolled=new W(function(e){return o.ngZone.runOutsideAngular(function(){return Pb(o.elementRef.nativeElement,"scroll").pipe(yg(o._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!=Fg()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Fg()?e.left=e.right:1==Fg()&&(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;jg()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{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==Fg()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==Fg()?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)(aa(wu),aa(o_),aa(hl),aa(Py,8))},e.\u0275dir=kt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),a_=function(){var e=function(){function e(t,n,i){var r=this;a(this,e),this._platform=t,this._change=new Y,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._viewportSize=null})})}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(Gb(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)(ji(Rg),ji(hl),ji(Zl,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl),ji(Zl,8))},token:e,providedIn:"root"}),e}(),u_=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),c_=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[My,Lg,u_],My,u_]}),e}(),l_=function(){function e(){a(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}(),h_=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this)).component=e,s.viewContainerRef=i,s.injector=r,s.componentFactoryResolver=o,s}return n}(l_),d_=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}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}(l_),f_=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this)).element=e instanceof wu?e.nativeElement:e,i}return n}(l_),p_=function(){function e(){a(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 h_?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof d_?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof f_?(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}(),v_=function(e){c(n,e);var t=p(n);function n(e,o,s,u,c){var l,h;return a(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=o,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),h._attachedPortal=e,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)),this._attachedPortal=e,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)}),this._attachedPortal=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}(p_),m_=function(){var e=function(e){c(n,e);var t=p(n);function n(e,o,s){var u,c;return a(this,n),(c=t.call(this))._componentFactoryResolver=e,c._viewContainerRef=o,c._isInitialized=!1,c.attached=new Ec,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),c._attachedPortal=e,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),s=t.createComponent(o,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return s.destroy()}),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}},{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}(p_);return e.\u0275fac=function(t){return new(t||e)(aa(yu),aa(oc),aa(Zl))},e.\u0275dir=kt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Gs]}),e}(),g_=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),y_=function(){function e(t,n){a(this,e),this.predicate=t,this.inclusive=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new b_(e,this.predicate,this.inclusive))}}]),e}(),b_=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}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),__=jg(),k_=function(){function e(t,n){a(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=Og(-this._previousScrollPosition.left),e.style.top=Og(-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}(),w_=function(){function e(t,n,i,r){var o=this;a(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return 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}(),S_=function(){function e(){a(this,e)}return s(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function C_(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 E_(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 O_=function(){function e(t,n,i,r){a(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;C_(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}(),x_=function(){var e=function e(t,n,i,r){var o=this;a(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new S_},this.close=function(e){return new w_(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new k_(o._viewportRuler,o._document)},this.reposition=function(e){return new O_(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(ji(o_),ji(a_),ji(hl),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(o_),ji(a_),ji(hl),ji(Zl))},token:e,providedIn:"root"}),e}(),T_=function e(t){if(a(this,e),this.scrollStrategy=new S_,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])}},P_=function e(t,n,i,r,o){a(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},M_=function e(t,n){a(this,e),this.connectionPair=t,this.scrollableViewProperties=n},I_=function(){var e=function(){function e(t){a(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)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}(),A_=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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}(I_);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}(),R_=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=zg(e),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){if(r(i(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I_);return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl),ji(Rg))},token:e,providedIn:"root"}),e}(),L_="undefined"!=typeof window?window:{},N_=void 0!==L_.__karma__&&!!L_.__karma__||void 0!==L_.jasmine&&!!L_.jasmine||void 0!==L_.jest&&!!L_.jest||void 0!==L_.Mocha&&!!L_.Mocha,D_=function(){var e=function(){function e(t,n){a(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||N_)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),N_?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)(ji(Zl),ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl),ji(Rg))},token:e,providedIn:"root"}),e}(),V_=function(){function e(t,n,i,r,o,s,u,c,l){var h=this;a(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=u,this._location=c,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new Y,this._attachments=new Y,this._detachments=new Y,this._locationChanges=I.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,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(cg(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=Og(this._config.width),e.height=Og(this._config.height),e.minWidth=Og(this._config.minWidth),e.minHeight=Og(this._config.minHeight),e.maxWidth=Og(this._config.maxWidth),e.maxHeight=Og(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"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;Eg(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(yg(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}(),j_="cdk-overlay-connected-position-bounding-box",F_=/([A-Za-z%]+)$/,B_=function(){function e(t,n,i,r,o){a(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Y,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(j_),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=[],s=g(this._preferredPositions);try{for(s.s();!(t=s.n()).done;){var a=t.value,u=this._getOriginPoint(n,a),c=this._getOverlayPoint(u,i,a),l=this._getOverlayFit(c,i,r,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,u);this._canFitWithFlexibleDimensions(l,c,r)?o.push({position:a,origin:u,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(u,a)}):(!e||e.overlayFit.visibleArea<l.visibleArea)&&(e={overlayFit:l,overlayPoint:c,originPoint:u,position:a,overlayRect:i})}}catch(y){s.e(y)}finally{s.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&&U_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j_),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=W_(t),o=e.x,s=e.y,a=this._getOffset(i,"x"),u=this._getOffset(i,"y");a&&(o+=a),u&&(s+=u);var c=0-s,l=s+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=z_(this._overlayRef.getConfig().minHeight),s=z_(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=s&&s<=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=W_(t),s=this._viewportRect,a=Math.max(e.x+o.width-s.width,0),u=Math.max(e.y+o.height-s.height,0),c=Math.max(s.top-n.top-e.y,0),l=Math.max(s.left-n.left-e.x,0);return this._previousPushAmount={x:i=o.width<=s.width?l||-a:e.x<this._viewportMargin?s.left-n.left-e.x:0,y:r=o.height<=s.height?c||-u:e.y<this._viewportMargin?s.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 M_(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,s,a,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)a=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)s=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;s=e.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.x-f/2)}return{top:i,left:s,bottom:r,right:a,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=Og(n.height),i.top=Og(n.top),i.bottom=Og(n.bottom),i.width=Og(n.width),i.left=Og(n.left),i.right=Og(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=Og(r)),o&&(i.maxWidth=Og(o))}this._lastBoundingBoxSize=n,U_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){U_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){U_(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 s=this._viewportRuler.getViewportScrollPosition();U_(n,this._getExactOverlayY(t,e,s)),U_(n,this._getExactOverlayX(t,e,s))}else n.position="static";var a="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(a+="translateX(".concat(u,"px) ")),c&&(a+="translateY(".concat(c,"px)")),n.transform=a.trim(),o.maxHeight&&(i?n.maxHeight=Og(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Og(o.maxWidth):r&&(n.maxWidth="")),U_(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=Og(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=Og(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:E_(e,n),isOriginOutsideView:C_(e,n),isOverlayClipped:E_(t,n),isOverlayOutsideView:C_(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&&Eg(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 wu)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 U_(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function z_(e){if("number"!=typeof e&&null!=e){var t=_(e.split(F_),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}function W_(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var H_=function(){function e(t,n,i,r,o,s,u){a(this,e),this._preferredPositions=[],this._positionStrategy=new B_(i,r,o,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 P_(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}(),G_="cdk-global-overlay-wrapper",q_=function(){function e(){a(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(G_),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,s=n.maxHeight,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?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(G_),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Z_=function(){var e=function(){function e(t,n,i,r){a(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return s(e,[{key:"global",value:function(){return new q_}},{key:"connectedTo",value:function(e,t,n){return new H_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new B_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(a_),ji(Zl),ji(Rg),ji(D_))},e.\u0275prov=Ve({factory:function(){return new e(ji(a_),ji(Zl),ji(Rg),ji(D_))},token:e,providedIn:"root"}),e}(),Y_=0,Q_=function(){var e=function(){function e(t,n,i,r,o,s,u,c,l,h,d){a(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,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 T_(e);return r.direction=r.direction||this._directionality.value,new V_(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Y_++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Ll)),new v_(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(x_),ji(D_),ji(yu),ji(Z_),ji(A_),ji(Ws),ji(hl),ji(Zl),ji(Py),ji(uh),ji(R_))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),K_=[{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"}],J_=new _i("cdk-connected-overlay-scroll-strategy"),X_=function(){var e=function e(t){a(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(aa(wu))},e.\u0275dir=kt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$_=function(){var e=function(){function e(t,n,i,r,o){a(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=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 Ec,this.positionChange=new Ec,this.attach=new Ec,this.detach=new Ec,this.overlayKeydown=new Ec,this.overlayOutsideClick=new Ec,this._templatePortal=new d_(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=wg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=wg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=wg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=wg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=wg(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=K_);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!==Wm||e.disableClose||Hm(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 T_({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 y_(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)(aa(Q_),aa($u),aa(oc),aa(J_),aa(Py,8))},e.\u0275dir=kt({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}(),ek={provide:J_,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},tk=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Q_,ek],imports:[[My,g_,c_],c_]}),e}();function nk(e){return new W(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ae(n):ug()).subscribe(t)})}function ik(e,t){}var rk=function e(){a(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},ok={dialogContainer:Gf("dialogContainer",[Qf("void, exit",Yf({opacity:0,transform:"scale(0.7)"})),Qf("enter",Yf({transform:"none"})),Jf("* => enter",qf("150ms cubic-bezier(0, 0, 0.2, 1)",Yf({transform:"none",opacity:1}))),Jf("* => void, * => exit",qf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Yf({opacity:0})))])},sk=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u){var c;return a(this,n),(c=t.call(this))._elementRef=e,c._focusTrapFactory=i,c._changeDetectorRef=r,c._config=s,c._focusMonitor=u,c._animationStateChanged=new Ec,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=o,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=Ug(),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=Ug())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=Ug();return e===t||e.contains(t)}}]),n}(p_);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(ly),aa(Yu),aa(Zl,8),aa(rk),aa(wy))},e.\u0275dir=kt({type:e,viewQuery:function(e,t){var n;1&e&&jc(m_,7),2&e&&Vc(n=Bc())&&(t._portalOutlet=n.first)},features:[Gs]}),e}(),ak=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(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}(sk);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&_a("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Ja("id",t._id),ia("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Xa("@dialogContainer",t._state))},features:[Gs],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&oa(0,ik,0,0,"ng-template",0)},directives:[m_],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:[ok.dialogContainer]}}),e}(),uk=0,ck=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(uk++);a(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Y,this._afterClosed=new Y,this._beforeClosed=new Y,this._state=0,n._id=r,n._animationStateChanged.pipe(ig(function(e){return"opened"===e.state}),cg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(ig(function(e){return"closed"===e.state}),cg(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(ig(function(e){return e.keyCode===Wm&&!i.disableClose&&!Hm(e)})).subscribe(function(e){e.preventDefault(),lk(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():lk(i,"mouse")})}return s(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ig(function(e){return"closing"===e.state}),cg(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 lk(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var hk=new _i("MatDialogData"),dk=new _i("mat-dialog-default-options"),fk=new _i("mat-dialog-scroll-strategy"),pk={provide:fk,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},vk=function(){var e=function(){function e(t,n,i,r,o,s,u,c,l){var h=this;a(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=u,this._dialogContainerType=c,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=nk(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Ly(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 rk)).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 T_({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=Ws.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:rk,useValue:t}]}),i=new h_(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 $u)t.attachTemplatePortal(new d_(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),s=t.attachComponentPortal(new h_(e,i.viewContainerRef,o));r.componentInstance=s.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(Py,null,Ze.Optional)||r.push({provide:Py,useValue:{value:e.direction,change:zm()}}),Ws.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)(aa(Q_),aa(Ws),aa(void 0),aa(void 0),aa(D_),aa(void 0),aa(wi),aa(wi),aa(_i))},e.\u0275dir=kt({type:e}),e}(),mk=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c){return a(this,n),t.call(this,e,i,o,u,c,s,ck,ak,hk)}return n}(vk);return e.\u0275fac=function(t){return new(t||e)(ji(Q_),ji(Ws),ji(uh,8),ji(dk,8),ji(fk),ji(e,12),ji(D_))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),gk=0,yk=function(){var e=function(){function e(t,n,i){a(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(gk++)}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)(aa(ck,8),aa(wu),aa(mk))},e.\u0275dir=kt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Ja("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),bk=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[mk,pk],imports:[[tk,g_,By],By]}),e}();function _k(e){return e instanceof Date&&!isNaN(+e)}function kk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm,n=_k(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new wk(i,t))}}var wk=function(){function e(t,n){a(this,e),this.delay=t,this.scheduler=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Sk(e,this.delay,this.scheduler))}}]),e}(),Sk=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}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 Ck(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification($b.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification($b.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),Ck=function e(t,n){a(this,e),this.time=t,this.notification=n},Ek=["mat-menu-item",""],Ok=["*"];function xk(e,t){if(1&e){var n=va();la(0,"div",0),ba("keydown",function(e){return sn(n),Ca()._handleKeydown(e)})("click",function(){return sn(n),Ca().closed.emit("click")})("@transformMenu.start",function(e){return sn(n),Ca()._onAnimationStart(e)})("@transformMenu.done",function(e){return sn(n),Ca()._onAnimationDone(e)}),la(1,"div",1),xa(2),ha(),ha()}if(2&e){var i=Ca();ua("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),ia("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var Tk={transformMenu:Gf("transformMenu",[Qf("void",Yf({opacity:0,transform:"scale(0.8)"})),Jf("void => enter",qf("120ms cubic-bezier(0, 0, 0.2, 1)",Yf({opacity:1,transform:"scale(1)"}))),Jf("* => void",qf("100ms 25ms linear",Yf({opacity:0})))]),fadeInItems:Gf("fadeInItems",[Qf("showing",Yf({opacity:1})),Jf("void => *",[Yf({opacity:0}),qf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Pk=new _i("MatMenuContent"),Mk=new _i("MAT_MENU_PANEL"),Ik=Wy(Uy(function(){return function e(){a(this,e)}}())),Ak=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s.role="menuitem",s._hovered=new Y,s._focused=new Y,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.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}(Ik);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Zl),aa(wy),aa(Mk,8))},e.\u0275cmp=vt({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&ba("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(ia("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Va("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:[Gs],attrs:Ek,ngContentSelectors:Ok,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(Oa(),xa(0),da(1,"div",0)),2&e&&(Io(1),ua("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[ib],encapsulation:2,changeDetection:0}),e}(),Rk=new _i("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Lk=0,Nk=function(){var e=function(){function e(t,n,i){a(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xc,this._tabSubscription=I.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ec,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Lk++)}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=wg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=wg(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 oy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Ly(this._directDescendantItems),qb(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(Ly(this._directDescendantItems),qb(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 Wm:Hm(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(cg(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=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{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(Ly(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)(aa(wu),aa(hl),aa(Rk))},e.\u0275dir=kt({type:e,contentQueries:function(e,t,n){var i;1&e&&(Fc(n,Pk,5),Fc(n,Ak,5),Fc(n,Ak,4)),2&e&&(Vc(i=Bc())&&(t.lazyContent=i.first),Vc(i=Bc())&&(t._allItems=i),Vc(i=Bc())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&jc($u,5),2&e&&Vc(n=Bc())&&(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}(),Dk=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(Nk);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(hl),aa(Rk))},e.\u0275cmp=vt({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&ia("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[pu([{provide:Mk,useExisting:e}]),Gs],ngContentSelectors:Ok,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&&(Oa(),oa(0,xk,3,6,"ng-template"))},directives:[vh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Tk.transformMenu,Tk.fadeInItems]},changeDetection:0}),e}(),Vk=new _i("mat-menu-scroll-strategy"),jk={provide:Vk,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Fk=Vg({passive:!0}),Bk=function(){var e=function(){function e(t,n,i,r,o,s,u,c){var l=this;a(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(e){dy(e)||(l._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ec,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ec,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Nk?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fk),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(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fk),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 Nk&&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:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Nk?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ig(function(e){return"void"===e.toState}),cg(1),yg(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new T_({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],s=r[1],a=o,u=s,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||(a="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),e.withPositions([{originX:n,originY:a,overlayX:c,overlayY:o,offsetY:h},{originX:i,originY:a,overlayX:l,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:c,overlayY:s,offsetY:-h},{originX:i,originY:u,overlayX:l,overlayY:s,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:zm(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ig(function(t){return t!==e._menuItemInstance}),ig(function(){return e._menuOpen})):zm(),n)}},{key:"_handleMousedown",value:function(e){hy(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ig(function(t){return t===e._menuItemInstance&&!t.disabled}),kk(0,jb)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Nk&&e.menu._isAnimating?e.menu._animationDone.pipe(cg(1),kk(0,jb),yg(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 d_(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(aa(Q_),aa(wu),aa(oc),aa(Vk),aa(Mk,8),aa(Ak,10),aa(Py,8),aa(wy))},e.\u0275dir=kt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ba("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&ia("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}(),Uk=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[jk],imports:[By]}),e}(),zk=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[jk],imports:[[Ih,By,rb,tk,Uk],u_,By,Uk]}),e}(),Wk=["underline"],Hk=["connectionContainer"],Gk=["inputContainer"],qk=["label"];function Zk(e,t){1&e&&(fa(0),la(1,"div",14),da(2,"div",15),da(3,"div",16),da(4,"div",17),ha(),la(5,"div",18),da(6,"div",15),da(7,"div",16),da(8,"div",17),ha(),pa())}function Yk(e,t){1&e&&(la(0,"div",19),xa(1,1),ha())}function Qk(e,t){if(1&e&&(fa(0),xa(1,2),la(2,"span"),Ya(3),ha(),pa()),2&e){var n=Ca(2);Io(3),Qa(n._control.placeholder)}}function Kk(e,t){1&e&&xa(0,3,["*ngSwitchCase","true"])}function Jk(e,t){1&e&&(la(0,"span",23),Ya(1," *"),ha())}function Xk(e,t){if(1&e){var n=va();la(0,"label",20,21),ba("cdkObserveContent",function(){return sn(n),Ca().updateOutlineGap()}),oa(2,Qk,4,1,"ng-container",12),oa(3,Kk,1,0,"ng-content",12),oa(4,Jk,2,0,"span",22),ha()}if(2&e){var i=Ca();Va("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),ua("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),ia("for",i._control.id)("aria-owns",i._control.id),Io(2),ua("ngSwitchCase",!1),Io(1),ua("ngSwitchCase",!0),Io(1),ua("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function $k(e,t){1&e&&(la(0,"div",24),xa(1,4),ha())}function ew(e,t){if(1&e&&(la(0,"div",25,26),da(2,"span",27),ha()),2&e){var n=Ca();Io(2),Va("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function tw(e,t){1&e&&(la(0,"div"),xa(1,5),ha()),2&e&&ua("@transitionMessages",Ca()._subscriptAnimationState)}function nw(e,t){if(1&e&&(la(0,"div",31),Ya(1),ha()),2&e){var n=Ca(2);ua("id",n._hintLabelId),Io(1),Qa(n.hintLabel)}}function iw(e,t){if(1&e&&(la(0,"div",28),oa(1,nw,2,2,"div",29),xa(2,6),da(3,"div",30),xa(4,7),ha()),2&e){var n=Ca();ua("@transitionMessages",n._subscriptAnimationState),Io(1),ua("ngIf",n.hintLabel)}}var rw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ow=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],sw=0,aw=new _i("MatError"),uw=function(){var e=function e(t,n){a(this,e),this.id="mat-error-".concat(sw++),t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(gi("aria-live"),aa(wu))},e.\u0275dir=kt({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&ia("id",t.id)},inputs:{id:"id"},features:[pu([{provide:aw,useExisting:e}])]}),e}(),cw={transitionMessages:Gf("transitionMessages",[Qf("enter",Yf({opacity:1,transform:"translateY(0%)"})),Jf("void => enter",[Yf({opacity:0,transform:"translateY(-5px)"}),qf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lw=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e}),e}(),hw=new _i("MatHint"),dw=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-label"]]}),e}(),fw=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-placeholder"]]}),e}(),pw=new _i("MatPrefix"),vw=new _i("MatSuffix"),mw=0,gw=zy(function(){return function e(t){a(this,e),this._elementRef=t}}(),"primary"),yw=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),bw=new _i("MatFormField"),_w=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c,l){var h;return a(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=s,h._platform=u,h._ngZone=c,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Y,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(mw++),h._labelId="mat-form-field-label-".concat(mw++),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=wg(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(Ly(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(yg(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(yg(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(Ly(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ly(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yg(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,Pb(this._label.nativeElement,"transitionend").pipe(cg(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 s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var a=this._getStartEnd(s),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-a)-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}(gw);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Yu),aa(wu),aa(Py,8),aa(yw,8),aa(Rg),aa(hl),aa(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Fc(n,lw,5),Fc(n,lw,7),Fc(n,dw,5),Fc(n,dw,7),Fc(n,fw,5),Fc(n,aw,5),Fc(n,hw,5),Fc(n,pw,5),Fc(n,vw,5)),2&e&&(Vc(i=Bc())&&(t._controlNonStatic=i.first),Vc(i=Bc())&&(t._controlStatic=i.first),Vc(i=Bc())&&(t._labelChildNonStatic=i.first),Vc(i=Bc())&&(t._labelChildStatic=i.first),Vc(i=Bc())&&(t._placeholderChild=i.first),Vc(i=Bc())&&(t._errorChildren=i),Vc(i=Bc())&&(t._hintChildren=i),Vc(i=Bc())&&(t._prefixChildren=i),Vc(i=Bc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(jc(Wk,5),jc(Hk,7),jc(Gk,5),jc(qk,5)),2&e&&(Vc(n=Bc())&&(t.underlineRef=n.first),Vc(n=Bc())&&(t._connectionContainerRef=n.first),Vc(n=Bc())&&(t._inputContainerRef=n.first),Vc(n=Bc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&Va("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)("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:[pu([{provide:bw,useExisting:e}]),Gs],ngContentSelectors:ow,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&&(Oa(rw),la(0,"div",0),la(1,"div",1,2),ba("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),oa(3,Zk,9,0,"ng-container",3),oa(4,Yk,2,0,"div",4),la(5,"div",5,6),xa(7),la(8,"span",7),oa(9,Xk,5,16,"label",8),ha(),ha(),oa(10,$k,2,0,"div",9),ha(),oa(11,ew,3,4,"div",10),la(12,"div",11),oa(13,tw,2,1,"div",12),oa(14,iw,5,2,"div",13),ha(),ha()),2&e&&(Io(3),ua("ngIf","outline"==t.appearance),Io(1),ua("ngIf",t._prefixChildren.length),Io(5),ua("ngIf",t._hasFloatingLabel()),Io(1),ua("ngIf",t._suffixChildren.length),Io(1),ua("ngIf","outline"!=t.appearance),Io(1),ua("ngSwitch",t._getDisplayedMessages()),Io(1),ua("ngSwitchCase","error"),Io(1),ua("ngSwitchCase","hint"))},directives:[bh,Sh,Ch,Gg],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}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.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}.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;box-sizing:content-box}.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}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}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}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.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:solid 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:[cw.transitionMessages]},changeDetection:0}),e}(),kw=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Ih,By,qg],By]}),e}(),ww=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Zy,By],Zy,By]}),e}();function Sw(e){return function(t){var n=new Cw(e),i=t.lift(n);return n.caught=i}}var Cw=function(){function e(t){a(this,e),this.selector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ew(e,this.selector,this.caught))}}]),e}(),Ew=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return s(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void r(i(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var o=new ue(this);this.add(o);var s=le(t,o);s!==o&&this.add(s)}}}]),n}(ce);function Ow(e){return function(t){return t.lift(new xw(e))}}var xw=function(){function e(t){a(this,e),this.callback=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Tw(e,this.callback))}}]),e}(),Tw=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this,e)).add(new I(i)),r}return n}(j);function Pw(e,t){return he(e,t,1)}var Mw=function e(){a(this,e)},Iw=function e(){a(this,e)},Aw=function(){function e(t){var n=this;a(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}(),Rw=function(){function e(){a(this,e)}return s(e,[{key:"encodeKey",value:function(e){return Nw(e)}},{key:"encodeValue",value:function(e){return Nw(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Lw(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").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],s=r[1],a=n.get(o)||[];a.push(s),n.set(o,a)}),n}function Nw(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,"/")}function Dw(e){return"".concat(e)}var Vw=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Rw,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Lw(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:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(Dw(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(Dw(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}(),jw=function(){function e(){a(this,e),this.map=new Map}return s(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Fw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Bw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Uw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var zw=function(){function e(t,n,i,r){var o;if(a(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Aw),this.context||(this.context=new jw),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 Vw,this.urlWithParams=n}return s(e,[{key:"serializeBody",value:function(){return null===this.body?null:Fw(this.body)||Bw(this.body)||Uw(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Vw?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||Uw(this.body)?null:Bw(this.body)?this.body.type||null:Fw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Vw?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,s,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:a})}}]),e}(),Ww=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}({}),Hw=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";a(this,e),this.headers=t.headers||new Aw,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},Gw=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,n),(e=t.call(this,i)).type=Ww.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}(Hw),qw=function(e){c(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,n),(e=t.call(this,i)).type=Ww.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}(Hw),Zw=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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}(Hw);function Yw(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Qw=function(){var e=function(){function e(t){a(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 zw)n=e;else{var o=void 0;o=r.headers instanceof Aw?r.headers:new Aw(r.headers);var s=void 0;r.params&&(s=r.params instanceof Vw?r.params:new Vw({fromObject:r.params})),n=new zw(e,t,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:s,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var a=zm(n).pipe(Pw(function(e){return i.handler.handle(e)}));if(e instanceof zw||"events"===r.observe)return a;var u=a.pipe(ig(function(e){return e instanceof qw}));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 Vw).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,Yw(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Yw(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Yw(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Mw))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Kw=function(){function e(t,n){a(this,e),this.next=t,this.interceptor=n}return s(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Jw=new _i("HTTP_INTERCEPTORS"),Xw=function(){var e=function(){function e(){a(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=Ve({token:e,factory:e.\u0275fac}),e}(),$w=/^\)\]\}',?\n/,eS=function(){var e=function(){function e(t){a(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 s=e.serializeBody(),a=null,u=function(){if(null!==a)return a;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Aw(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 a=new Gw({headers:r,status:t,statusText:n,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,s=t.statusText,a=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($w,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new qw({body:c,headers:r,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new Zw({error:c,headers:r,status:o,statusText:s,url:a||void 0}))},l=function(e){var t=u(),r=new Zw({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:Ww.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:Ww.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",d),null!==s&&i.upload&&i.upload.addEventListener("progress",f)),i.send(s),n.next({type:Ww.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",c),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",d),null!==s&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(jh))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),tS=new _i("XSRF_COOKIE_NAME"),nS=new _i("XSRF_HEADER_NAME"),iS=function e(){a(this,e)},rS=function(){var e=function(){function e(t,n,i){a(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=ph(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Kc),ji(tS))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),oS=function(){var e=function(){function e(t,n){a(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)(ji(iS),ji(nS))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),sS=function(){var e=function(){function e(t,n){a(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(Jw,[]);this.chain=t.reduceRight(function(e,t){return new Kw(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Iw),ji(Ws))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),aS=function(){var e=function(){function e(){a(this,e)}return s(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:oS,useClass:Xw}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:tS,useValue:t.cookieName}:[],t.headerName?{provide:nS,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[oS,{provide:Jw,useExisting:oS,multi:!0},{provide:iS,useClass:rS},{provide:tS,useValue:"XSRF-TOKEN"},{provide:nS,useValue:"X-XSRF-TOKEN"}]}),e}(),uS=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Qw,{provide:Mw,useClass:sS},eS,{provide:Iw,useExisting:eS}],imports:[[aS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),cS=["*"];function lS(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function hS(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 dS(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var fS=function e(t,n,i){a(this,e),this.url=t,this.svgText=n,this.options=i},pS=function(){var e=function(){function e(t,n,i,r){a(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 fS(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(Tr.HTML,n);if(!r)throw dS(n);return this._addSvgIconConfig(e,t,new fS("",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 fS(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Tr.HTML,t);if(!i)throw dS(t);return this._addSvgIconSetConfig(e,new fS("",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(Tr.RESOURCE_URL,e);if(!n)throw hS(e);var i=this._cachedIconsByUrl.get(n);return i?zm(vS(i)):this._loadSvgIconFromConfig(new fS(e,null)).pipe(qm(function(e){return t._cachedIconsByUrl.set(n,e)}),J(function(e){return vS(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=mS(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):Jb(lS(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?zm(vS(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(J(function(e){return vS(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?zm(i):_d(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Sw(function(t){var i=n._sanitizer.sanitize(Tr.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),zm(null)}))})).pipe(J(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw lS(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(qm(function(t){return e.svgText=t}),J(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?zm(null):this._fetchIcon(e).pipe(qm(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 s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].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 s=this._sanitizer.sanitize(Tr.RESOURCE_URL,i);if(!s)throw hS(i);var a=this._inProgressUrlFetches.get(s);if(a)return a;var u=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(Ow(function(){return n._inProgressUrlFetches.delete(s)}),Ce());return this._inProgressUrlFetches.set(s,u),u}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(mS(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 fS(i.url,null,i.options):new fS(i,null)}var r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Qw,8),ji(pd),ji(Zl,8),ji(Dr))},e.\u0275prov=Ve({factory:function(){return new e(ji(Qw,8),ji(pd),ji(Zl,8),ji(Dr))},token:e,providedIn:"root"}),e}();function vS(e){return e.cloneNode(!0)}function mS(e,t){return e+":"+t}var gS=zy(function(){return function e(t){a(this,e),this._elementRef=t}}()),yS=new _i("mat-icon-location",{providedIn:"root",factory:function(){var e=Fi(Zl),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),bS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_S=bS.map(function(e){return"[".concat(e,"]")}).join(", "),kS=/^url\(['"]?#(.*?)['"]?\)$/,wS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this,e))._iconRegistry=i,u._location=o,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=wg(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(_S),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){bS.forEach(function(i){var r=t[e],o=r.getAttribute(i),s=o?o.match(kS):null;if(s){var a=n.get(r);a||n.set(r,a=[]),a.push({name:i,value:s[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(cg(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}(gS);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(pS),gi("aria-hidden"),aa(yS),aa(Dr))},e.\u0275cmp=vt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(ia("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Va("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:[Gs],ngContentSelectors:cS,decls:1,vars:0,template:function(e,t){1&e&&(Oa(),xa(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}(),SS=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),CS=Vg({passive:!0}),ES=function(){var e=function(){function e(t,n){a(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 ag;var n=xg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Y,o="cdk-text-field-autofilled",s=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",s,CS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",s,CS)}}),r}},{key:"stopMonitoring",value:function(e){var t=xg(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)(ji(Rg),ji(hl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl))},token:e,providedIn:"root"}),e}(),OS=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Lg]]}),e}(),xS=new _i("MAT_INPUT_VALUE_ACCESSOR"),TS=["button","checkbox","file","hidden","image","radio","range","reset","submit"],PS=0,MS=Gy(function(){return function e(t,n,i,r){a(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),IS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c,l,h,d){var f;a(this,n),(f=t.call(this,u,o,s,r))._elementRef=e,f._platform=i,f._autofillMonitor=l,f._formField=d,f._uid="mat-input-".concat(PS++),f.focused=!1,f.stateChanges=new Y,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 Dg().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||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===v,f._isTextarea="textarea"===v,f._isInFormField=!!d,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=wg(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=wg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Dg().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=wg(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.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){TS.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"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}(MS);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Rg),aa(Qd,10),aa(Of,8),aa(Df,8),aa(qy),aa(xS,10),aa(ES),aa(hl),aa(bw,8))},e.\u0275dir=kt({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&&ba("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Ja("disabled",t.disabled)("required",t.required),ia("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Va("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:[pu([{provide:lw,useExisting:e}]),Gs,Nt]}),e}(),AS=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[qy],imports:[[OS,kw,By],OS,kw]}),e}(),RS=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By,Ih],By]}),e}(),LS=["trigger"],NS=["panel"];function DS(e,t){if(1&e&&(la(0,"span",8),Ya(1),ha()),2&e){var n=Ca();Io(1),Qa(n.placeholder)}}function VS(e,t){if(1&e&&(la(0,"span",12),Ya(1),ha()),2&e){var n=Ca(2);Io(1),Qa(n.triggerValue)}}function jS(e,t){1&e&&xa(0,0,["*ngSwitchCase","true"])}function FS(e,t){1&e&&(la(0,"span",9),oa(1,VS,2,1,"span",10),oa(2,jS,1,0,"ng-content",11),ha()),2&e&&(ua("ngSwitch",!!Ca().customTrigger),Io(2),ua("ngSwitchCase",!0))}function BS(e,t){if(1&e){var n=va();la(0,"div",13),la(1,"div",14,15),ba("@transformPanel.done",function(e){return sn(n),Ca()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return sn(n),Ca()._handleKeydown(e)}),xa(3,1),ha(),ha()}if(2&e){var i=Ca();ua("@transformPanelWrap",void 0),Io(1),r="mat-select-panel ",o=i._getPanelTheme(),s="",function(e,t,n,i){var r=on(),o=mn(2);r.firstUpdatePass&&Ua(r,null,o,i);var s=rn();if(n!==Mo&&na(s,o,n)){var a=r.data[Mn()];if(Za(a,i)&&!Ba(r,o)){var u=a.classesWithoutHost;null!==u&&(n=Te(u,n||"")),ca(r,a,s,n,i)}else!function(e,t,n,i,r,o,s,a){r===Mo&&(r=st);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&&Ha(e,t,n,i,p,v,!0,a),l=u<r.length?r[u]:null,h=c<o.length?o[c]:null}}(r,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return st;var i=[],r=nr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,o)}}(Ti,ja,ra(rn(),r,o,s),!0),Da("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),ua("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),ia("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}var r,o,s}var US=[[["mat-select-trigger"]],"*"],zS=["mat-select-trigger","*"],WS={transformPanelWrap:Gf("transformPanelWrap",[Jf("* => void",$f("@transformPanel",[Xf()],{optional:!0}))]),transformPanel:Gf("transformPanel",[Qf("void",Yf({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Qf("showing",Yf({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Qf("showing-multiple",Yf({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Jf("void => *",qf("120ms cubic-bezier(0, 0, 0.2, 1)")),Jf("* => void",qf("100ms 25ms linear",Yf({opacity:0})))])},HS=0,GS=256,qS=new _i("mat-select-scroll-strategy"),ZS=new _i("MAT_SELECT_CONFIG"),YS={provide:qS,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},QS=function e(t,n){a(this,e),this.source=t,this.value=n},KS=Wy(Hy(Uy(Gy(function(){return function e(t,n,i,r,o){a(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),JS=new _i("MatSelectTrigger"),XS=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c,l,h,f,p,v,m,g){var y,b,_,k;return a(this,n),(y=t.call(this,s,o,c,l,f))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=u,y._parentFormField=h,y._liveAnnouncer=m,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(HS++),y._triggerAriaLabelledBy=null,y._destroy=new Y,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(HS++),y._panelDoneAnimatingStream=new Y,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=nk(function(){var e=y.options;return e?e.changes.pipe(Ly(e),qb(function(){return me.apply(void 0,C(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(cg(1),qb(function(){return y.optionSelectionChanges}))}),y.openedChange=new Ec,y._openedStream=y.openedChange.pipe(ig(function(e){return e}),J(function(){})),y._closedStream=y.openedChange.pipe(ig(function(e){return!e}),J(function(){})),y.selectionChange=new Ec,y.valueChange=new Ec,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=wg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=wg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=wg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Sg(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 r_(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(vg(),yg(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(yg(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(Ly(null),yg(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&&!Hm(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.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||Hm(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 s=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&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(cg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new ry(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(yg(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(yg(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(yg(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(yg(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(KS);return e.\u0275fac=function(t){return new(t||e)(aa(a_),aa(Yu),aa(hl),aa(qy),aa(wu),aa(Py,8),aa(Of,8),aa(Df,8),aa(bw,8),aa(Qd,10),gi("tabindex"),aa(qS),aa(by),aa(ZS,8))},e.\u0275dir=kt({type:e,viewQuery:function(e,t){var n;1&e&&(jc(LS,5),jc(NS,5),jc($_,5)),2&e&&(Vc(n=Bc())&&(t.trigger=n.first),Vc(n=Bc())&&(t.panel=n.first),Vc(n=Bc())&&(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:[Gs,Nt]}),e}(),$S=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(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(yg(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(cg(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=mb(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===r?0:(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 QS(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var s=0-(t.left+e-(i?r:0)),a=t.right+e-n.width+(i?0:r);s>0?e+=s+8:a>0&&(e-=a+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,s=Math.floor(GS/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-s))*r+(r-(this._getItemCount()*r-GS)%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),s=Math.min(this._getItemCount()*t,GS)-o-this._triggerRect.height;s>r?this._adjustPanelUp(s,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,GS),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=mb(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}(XS);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Fc(n,JS,5),Fc(n,vb,5),Fc(n,hb,5)),2&e&&(Vc(i=Bc())&&(t.customTrigger=i.first),Vc(i=Bc())&&(t.options=i),Vc(i=Bc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ba("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(ia("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()),Va("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:[pu([{provide:lw,useExisting:e},{provide:ab,useExisting:e}]),Gs],ngContentSelectors:zS,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Oa(US),la(0,"div",0,1),ba("click",function(){return t.toggle()}),la(3,"div",2),oa(4,DS,2,1,"span",3),oa(5,FS,3,2,"span",4),ha(),la(6,"div",5),da(7,"div",6),ha(),ha(),oa(8,BS,4,14,"ng-template",7),ba("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=sa(1);ia("aria-owns",t.panelOpen?t.id+"-panel":null),Io(3),ua("ngSwitch",t.empty),ia("id",t._valueId),Io(1),ua("ngSwitchCase",!0),Io(1),ua("ngSwitchCase",!1),Io(3),ua("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:[X_,Sh,Ch,$_,Eh,vh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[WS.transformPanelWrap,WS.transformPanel]},changeDetection:0}),e}(),eC=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[YS],imports:[[Ih,tk,gb,By],u_,kw,gb,By]}),e}();function tC(e){return function(t){return t.lift(new nC(e))}}var nC=function(){function e(t){a(this,e),this.value=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new iC(e,this.value))}}]),e}(),iC=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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),rC=["*"];function oC(e,t){if(1&e){var n=va();la(0,"div",2),ba("click",function(){return sn(n),Ca()._onBackdropClicked()}),ha()}2&e&&Va("mat-drawer-shown",Ca()._isShowingBackdrop())}function sC(e,t){1&e&&(la(0,"mat-drawer-content"),xa(1,2),ha())}var aC=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],uC=["mat-drawer","mat-drawer-content","*"];function cC(e,t){if(1&e){var n=va();la(0,"div",2),ba("click",function(){return sn(n),Ca()._onBackdropClicked()}),ha()}2&e&&Va("mat-drawer-shown",Ca()._isShowingBackdrop())}function lC(e,t){1&e&&(la(0,"mat-sidenav-content",3),xa(1,2),ha())}var hC=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],dC=["mat-sidenav","mat-sidenav-content","*"],fC=".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",pC={transformDrawer:Gf("transform",[Qf("open, open-instant",Yf({transform:"none",visibility:"visible"})),Qf("void",Yf({"box-shadow":"none",visibility:"hidden"})),Jf("void => open-instant",qf("0ms")),Jf("void <=> open, open-instant => void",qf("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},vC=new _i("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),mC=new _i("MAT_DRAWER_CONTAINER"),gC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this,r,o,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}(s_);return e.\u0275fac=function(t){return new(t||e)(aa(Yu),aa(Me(function(){return bC})),aa(wu),aa(o_),aa(hl))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Da("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Gs],ngContentSelectors:rC,decls:1,vars:0,template:function(e,t){1&e&&(Oa(),xa(0))},encapsulation:2,changeDetection:0}),e}(),yC=function(){var e=function(){function e(t,n,i,r,o,s,u){var c=this;a(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,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 Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new Ec(!0),this._openedStream=this.openedChange.pipe(ig(function(e){return e}),J(function(){})),this.openedStart=this._animationStarted.pipe(ig(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),tC(void 0)),this._closedStream=this.openedChange.pipe(ig(function(e){return!e}),J(function(){})),this.closedStart=this._animationStarted.pipe(ig(function(e){return e.fromState!==e.toState&&"void"===e.toState}),tC(void 0)),this._destroyed=new Y,this.onPositionChanged=new Ec,this._modeChanged=new Y,this.openedChange.subscribe(function(e){e?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){Pb(c._elementRef.nativeElement,"keydown").pipe(ig(function(e){return e.keyCode===Wm&&!c.disableClose&&!Hm(e)}),yg(c._destroyed)).subscribe(function(e){return c._ngZone.run(function(){c.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(vg(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=wg(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=wg(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(wg(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(cg(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)(aa(wu),aa(ly),aa(wy),aa(Rg),aa(hl),aa(Zl,8),aa(mC,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&_a("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(ia("align",null),Xa("@transform",t._animationState),Va("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:rC,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Oa(),la(0,"div",0),xa(1),ha())},directives:[s_],encapsulation:2,data:{animation:[pC.transformDrawer]},changeDetection:0}),e}(),bC=function(){var e=function(){function e(t,n,i,r,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;a(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new xc,this.backdropClick=new Ec,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,t&&t.change.pipe(yg(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(yg(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=wg(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:wg(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Ly(this._allDrawers),yg(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(Ly(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($m(10),yg(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(ig(function(e){return e.fromState!==e.toState}),yg(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(yg(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(yg(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(cg(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(yg(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)(aa(Py,8),aa(wu),aa(hl),aa(Yu),aa(a_),aa(vC),aa(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Fc(n,gC,5),Fc(n,yC,5)),2&e&&(Vc(i=Bc())&&(t._content=i.first),Vc(i=Bc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&jc(gC,5),2&e&&Vc(n=Bc())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Va("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[pu([{provide:mC,useExisting:e}])],ngContentSelectors:uC,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&&(Oa(aC),oa(0,oC,1,2,"div",0),xa(1),xa(2,1),oa(3,sC,2,0,"mat-drawer-content",1)),2&e&&(ua("ngIf",t.hasBackdrop),Io(3),ua("ngIf",!t._content))},directives:[bh,gC],styles:[fC],encapsulation:2,changeDetection:0}),e}(),_C=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){return a(this,n),t.call(this,e,i,r,o,s)}return n}(gC);return e.\u0275fac=function(t){return new(t||e)(aa(Yu),aa(Me(function(){return wC})),aa(wu),aa(o_),aa(hl))},e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Da("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Gs],ngContentSelectors:rC,decls:1,vars:0,template:function(e,t){1&e&&(Oa(),xa(0))},encapsulation:2,changeDetection:0}),e}(),kC=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(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=wg(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=Sg(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=Sg(e)}}]),n}(yC);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(ia("align",null),Da("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Va("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:[Gs],ngContentSelectors:rC,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Oa(),la(0,"div",0),xa(1),ha())},directives:[s_],encapsulation:2,data:{animation:[pC.transformDrawer]},changeDetection:0}),e}(),wC=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(bC);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(Fc(n,_C,5),Fc(n,kC,5)),2&e&&(Vc(i=Bc())&&(t._content=i.first),Vc(i=Bc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Va("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[pu([{provide:mC,useExisting:e}]),Gs],ngContentSelectors:dC,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&&(Oa(hC),oa(0,cC,1,2,"div",0),xa(1),xa(2,1),oa(3,lC,2,0,"mat-sidenav-content",1)),2&e&&(ua("ngIf",t.hasBackdrop),Io(3),ua("ngIf",!t._content))},directives:[bh,_C,s_],styles:[fC],encapsulation:2,changeDetection:0}),e}(),SC=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Ih,By,Lg,u_],u_,By]}),e}(),CC=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Ih,By],By]}),e}(),EC=["*",[["mat-toolbar-row"]]],OC=["*","mat-toolbar-row"],xC=zy(function(){return function e(t){a(this,e),this._elementRef=t}}()),TC=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),PC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}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}(xC);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(Rg),aa(Zl))},e.\u0275cmp=vt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Fc(n,TC,5),2&e&&Vc(i=Bc())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Va("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Gs],ngContentSelectors:OC,decls:2,vars:0,template:function(e,t){1&e&&(Oa(EC),xa(0),xa(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}(),MC=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),IC=function(e){c(n,e);var t=p(n);function n(){return a(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),AC=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}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 RC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new AC(e,n,i);if(!r.closed)return t instanceof W?t.subscribe(r):oe(t)(r)}var LC={};function NC(){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 VC(i))}var DC,VC=function(){function e(t){a(this,e),this.resultSelector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new jC(e,this.resultSelector))}}]),e}(),jC=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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(LC),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(RC(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]===LC?--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}(IC),FC=new Set,BC=function(){var e=function(){function e(t){a(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):UC}return s(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!FC.has(e))try{DC||((DC=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(DC)),DC.sheet&&(DC.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),FC.add(e))}catch(HM){console.error(HM)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg))},token:e,providedIn:"root"}),e}();function UC(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zC=function(){var e=function(){function e(t,n){a(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Y}return s(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return WC(Eg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=NC(WC(Eg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Ry(n.pipe(cg(1)),n.pipe(dg(1),$m(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(Ly(n),J(function(t){return{query:e,matches:t.matches}}),yg(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(BC),ji(hl))},e.\u0275prov=Ve({factory:function(){return new e(ji(BC),ji(hl))},token:e,providedIn:"root"}),e}();function WC(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var HC={tooltipState:Gf("state",[Qf("initial, void, hidden",Yf({opacity:0,transform:"scale(0)"})),Qf("visible",Yf({transform:"scale(1)"})),Jf("* => visible",qf("200ms cubic-bezier(0, 0, 0.2, 1)",Kf([Yf({opacity:0,transform:"scale(0)",offset:0}),Yf({opacity:.5,transform:"scale(0.99)",offset:.5}),Yf({opacity:1,transform:"scale(1)",offset:1})]))),Jf("* => hidden",qf("100ms cubic-bezier(0, 0, 0.2, 1)",Yf({opacity:0})))])},GC="tooltip-panel",qC=Vg({passive:!0}),ZC=new _i("mat-tooltip-scroll-strategy"),YC={provide:ZC,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},QC=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),KC=function(){var e=function(){function e(t,n,i,r,o,s,u,c,l,h,d,f){var p=this;a(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,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._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Wm&&!Hm(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=l,this._document=f,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),h.change.pipe(yg(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return s(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(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(yg(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],qC)}),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 h_(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(yg(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(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(yg(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),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:"".concat(this._cssClassPrefix,"-").concat(GC),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yg(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe(yg(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{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(cg(1),yg(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:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===e.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(GC,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+t)}this._currentPosition=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],qC)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._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)(aa(Q_),aa(wu),aa(o_),aa(oc),aa(hl),aa(Rg),aa(ey),aa(wy),aa(void 0),aa(Py),aa(void 0),aa(Zl))},e.\u0275dir=kt({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),JC=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c,l,h,d,f,p){var v;return a(this,n),(v=t.call(this,e,i,r,o,s,u,c,l,h,d,f,p))._tooltipComponent=$C,v}return n}(KC);return e.\u0275fac=function(t){return new(t||e)(aa(Q_),aa(wu),aa(o_),aa(oc),aa(hl),aa(Rg),aa(ey),aa(wy),aa(ZC),aa(Py,8),aa(QC,8),aa(Zl))},e.\u0275dir=kt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Gs]}),e}(),XC=function(){var e=function(){function e(t){a(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y}return s(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(aa(Yu))},e.\u0275dir=kt({type:e}),e}(),$C=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(XC);return e.\u0275fac=function(t){return new(t||e)(aa(Yu),aa(zC))},e.\u0275cmp=vt({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Da("zoom","visible"===t._visibility?1:null)},features:[Gs],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(la(0,"div",0),ba("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),wc(1,"async"),Ya(2),ha()),2&e&&(Va("mat-tooltip-handset",null==(n=Sc(1,5,t._isHandset))?null:n.matches),ua("ngClass",t.tooltipClass)("@state",t._visibility),Io(2),Qa(t.message))},directives:[vh],pipes:[Mh],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:[HC.tooltipState]},changeDetection:0}),e}(),eE=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[YC],imports:[[xy,Ih,tk,By],By,u_]}),e}();function tE(e,t){if(1&e){var n=va();la(0,"div",1),la(1,"button",2),ba("click",function(){return sn(n),Ca().action()}),Ya(2),ha(),ha()}if(2&e){var i=Ca();Io(2),Qa(i.data.action)}}function nE(e,t){}var iE,rE=new _i("MatSnackBarData"),oE=function e(){a(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},sE=Math.pow(2,31)-1,aE=function(){function e(t,n){var i=this;a(this,e),this._overlayRef=n,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,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()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout(function(){return t.dismiss()},Math.min(e,sE))}},{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}(),uE=function(){var e=function(){function e(t,n){a(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)(aa(aE),aa(rE))},e.\u0275cmp=vt({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&&(la(0,"span"),Ya(1),ha(),oa(2,tE,3,1,"div",0)),2&e&&(Io(1),Qa(t.data.message),Io(1),ua("ngIf",t.hasAction))},directives:[bh,Ob],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}(),cE={snackBarState:Gf("state",[Qf("void, hidden",Yf({transform:"scale(0.8)",opacity:0})),Qf("visible",Yf({transform:"scale(1)",opacity:1})),Jf("* => visible",qf("150ms cubic-bezier(0, 0, 0.2, 1)")),Jf("* => void, * => hidden",qf("75ms cubic-bezier(0.4, 0.0, 1, 1)",Yf({opacity:0})))])},lE=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this))._ngZone=e,u._elementRef=i,u._changeDetectorRef=r,u._platform=o,u.snackBarConfig=s,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new Y,u._onExit=new Y,u._onEnter=new Y,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(cg(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}(p_);return e.\u0275fac=function(t){return new(t||e)(aa(hl),aa(wu),aa(Yu),aa(Rg),aa(oE))},e.\u0275cmp=vt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&jc(m_,7),2&e&&Vc(n=Bc())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&_a("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&Xa("@state",t._animationState)},features:[Gs],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(la(0,"div",0),oa(1,nE,0,0,"ng-template",1),ha(),da(2,"div")),2&e&&(Io(2),ia("aria-live",t._live)("role",t._role))},directives:[m_],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:[cE.snackBarState]}}),e}(),hE=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[tk,g_,Ih,xb,By],By]}),e}(),dE=new _i("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new oE}}),fE=function(){var e=function(){function e(t,n,i,r,o,s){a(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=uE,this.snackBarContainerComponent=lE,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=Ws.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:oE,useValue:t}]}),i=new h_(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 oE),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),s=new aE(o,r);if(e instanceof $u){var a=new d_(e,null,{$implicit:i.data,snackBarRef:s});s.instance=o.attachTemplatePortal(a)}else{var u=this._createInjector(i,s),c=new h_(e,void 0,u),l=o.attachComponentPortal(c);s.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yg(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(s,i),this._openedSnackBarRef=s,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 T_;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 Ws.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:aE,useValue:t},{provide:rE,useValue:e.data}]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Q_),ji(by),ji(Ws),ji(zC),ji(e,12),ji(dE))},e.\u0275prov=Ve({factory:function(){return new e(ji(Q_),ji(by),ji(xs),ji(zC),ji(e,12),ji(dE))},token:e,providedIn:hE}),e}(),pE={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return pE.schedule(e,0);if(void 0===window.requestAnimationFrame)return pE.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function vE(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(!iE){var n=Element.prototype;iE=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&iE.call(e,t)}(e,t)||(i=n,0))}),i}var mE=function(){function e(t,n){a(this,e),this.componentFactory=n.get(yu).resolveComponentFactory(t)}return s(e,[{key:"create",value:function(e){return new gE(this.componentFactory,e)}}]),e}(),gE=function(){function e(t,n){a(this,e),this.componentFactory=t,this.injector=n,this.eventEmitters=new n_(1),this.events=this.eventEmitters.pipe(qb(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(hl),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=pE.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=Ws.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,s=n.length;o<s;++o){var a=n[o],u=vE(a,t,r);-1!==u&&i[u].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Yu),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ll).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=pE.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 Lt(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}(),yE=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).ngElementEventsSubscription=null,e}return n}(O(HTMLElement));new Tu("12.1.3");var bE={provide:Jc,useFactory:function(e,t){return function(){if(Ah(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(_E,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(_E,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[Zl,Kc],multi:!0},_E="flex-layout-",kE=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[bE]}),e}(),wE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;a(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return s(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),SE=function(){var e=function(){function e(){a(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=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),CE={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},EE=new _i("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return CE}}),OE=new _i("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),xE=new _i("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function TE(e,t){return e=e?e.clone():new wE,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var PE="inline",ME=["row","column","row-reverse","column-reverse"];function IE(e){var t=function(e){var t=_((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return ME.find(function(e){return e===n})||(n=ME[0]),i===PE&&(i=r!==PE?r:"",r=PE),[n,AE(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 AE(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 RE=function(){var e=function(){function e(t,n,i,r){a(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Y,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 s=IE(r),a=[e];this.styler.applyStyleToElements(s,a)}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=kt({type:e,features:[Nt]}),e}(),LE=[{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}],NE="(orientation: portrait) and (max-width: 599.98px)",DE="(orientation: landscape) and (max-width: 959.98px)",VE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",jE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",FE="(orientation: portrait) and (min-width: 840px)",BE="(orientation: landscape) and (min-width: 1280px)",UE={HANDSET:"".concat(NE,", ").concat(DE),TABLET:"".concat(VE," , ").concat(jE),WEB:"".concat(FE,", ").concat(BE," "),HANDSET_PORTRAIT:"".concat(NE),TABLET_PORTRAIT:"".concat(VE," "),WEB_PORTRAIT:"".concat(FE),HANDSET_LANDSCAPE:"".concat(DE),TABLET_LANDSCAPE:"".concat(jE),WEB_LANDSCAPE:"".concat(BE)},zE=[{alias:"handset",priority:2e3,mediaQuery:UE.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:UE.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:UE.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:UE.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:UE.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:UE.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:UE.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:UE.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:UE.WEB_PORTRAIT,overlapping:!0}];function WE(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var s=o[r];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(e[a]=s[a])}return e}var HE=/(\.|-|_)/g;function GE(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function qE(e){return e.forEach(function(e){e.suffix||(e.suffix=e.alias.replace(HE,"|").split("|").map(GE).join(""),e.overlapping=!!e.overlapping)}),e}var ZE=new _i("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Fi(xE),t=Fi(EE),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach(function(e){n[e.alias]=e}),t.forEach(function(e){n[e.alias]?WE(n[e.alias],e):n[e.alias]=e}),qE(Object.keys(n).map(function(e){return n[e]}))}((t.disableDefaultBps?[]:LE).concat(t.addOrientationBps?zE:[]),n)}});function YE(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function QE(e,t){return(e.priority||0)-(t.priority||0)}var KE=function(){var e=function(){function e(t){a(this,e),this.findByMap=new Map,this.items=C(t).sort(QE)}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)(ji(ZE))},e.\u0275prov=Ve({factory:function(){return new e(ji(ZE))},token:e,providedIn:"root"}),e}(),JE=function(){var e=function(){function e(t,n,i){a(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new Um(new wE(!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(ig(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!XE[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 XE[e]=r})}catch(HM){console.error(HM)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new wE(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 wE(!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,Ah(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Kc),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Kc),ji(Zl))},token:e,providedIn:"root"}),e}(),XE={},$E="print",eO={alias:$E,mediaQuery:$E,priority:1e3},tO=function(){var e=function(){function e(t,n,i){a(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 nO,this.deactivations=[]}return s(e,[{key:"withPrintQuery",value:function(e){return[].concat(C(e),[$E])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith($E)}},{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(YE)}},{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:""),TE(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 wE(!0,$E))),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(YE))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(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)(ji(KE),ji(EE),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(KE),ji(EE),ji(Zl))},token:e,providedIn:"root"}),e}(),nO=function(){function e(){a(this,e),this.printBreakpoints=[]}return s(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(eO),e.sort(YE),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($E)}(e)?[e].concat(C(this.printBreakpoints)):[].concat(C(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function iO(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 rO=function(){var e=function(){function e(t,n,i,r){a(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:iO(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:iO(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)||Rh(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 Ah(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||(Ah(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 s,a=g(o);try{for(a.s();!(s=a.n()).done;){var u=s.value;u=u?u+"":"",Ah(n._platformId)||!n._serverModuleLoaded?Ah(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(c){a.e(c)}finally{a.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 s=o.indexOf(":");if(-1===s)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,s).trim()]=o.substr(s+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)(ji(SE),ji(OE),ji(Kc),ji(EE))},e.\u0275prov=Ve({factory:function(){return new e(ji(SE),ji(OE),ji(Kc),ji(EE))},token:e,providedIn:"root"}),e}(),oO=function(){function e(){a(this,e),this.shouldCache=!0}return s(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function sO(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]=aO(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]=aO(e.trim());else{var s=e.split(" ");i=3===s.length?s:[t,n,e]}return i}function aO(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var uO=function(){var e=function(){function e(t,n,i){a(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 Y,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=TE(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(YE),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(YE),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];cO(this.updateMap,e,t,n),cO(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 s=this.getValue(e,t);void 0!==s&&this.updateElement(e,t,s)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(ig(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(qm(this.hook.interceptEvents(this)),ig(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(JE),ji(KE),ji(tO))},e.\u0275prov=Ve({factory:function(){return new e(ji(JE),ji(KE),ji(tO))},token:e,providedIn:"root"}),e}();function cO(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 lO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c){var l;return a(this,n),(l=t.call(this,e,null,i,r)).ngClassInstance=c,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new vh(o,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}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(uO),aa(Uu),aa(Wu),aa(Eu),aa(vh,10))},e.\u0275dir=kt({type:e,inputs:{klass:["class","klass"]},features:[Gs]}),e}(),hO=["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"],dO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=hO,e}return n}(lO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),fO=(new WeakMap,function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a(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 pO(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function vO(e){var t=S(e.split(":")),n=t[0],i=t.slice(1);return new fO(n,i.join(":"))}function mO(e,t){return t.key&&(e[t.key]=t.value),e}var gO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u,c,l,h){var d;a(this,n),(d=t.call(this,e,null,i,r)).sanitizer=o,d.ngStyleInstance=c,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new Oh(e,s,u)),d.init();var f=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(f),d.isServer=l&&Rh(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(Tr.STYLE,e)||""};if(e)switch(pO(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"===pO(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(vO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(mO,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(uO),aa(pd),aa(Wu),aa(Eu),aa(Oh,10),aa(OE),aa(Kc))},e.\u0275dir=kt({type:e,features:[Gs]}),e}(),yO=["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"],bO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=yO,e}return n}(gO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}();function _O(e,t){return e.map(vO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(mO,{})}var kO=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE]]}),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 a(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}(oO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),TO=["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,o){var s;return a(this,n),(s=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",s.styleCache=IO,s.init(),s}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(xO),aa(uO))},e.\u0275dir=kt({type:e,features:[Gs]}),e}(),MO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=TO,e}return n}(PO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),IO=new Map,AO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},RO=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(this,n),(i=t.call(this))._styler=e,i}return s(n,[{key:"buildStyles",value:function(e,t){return e.endsWith(UO)?(n=e=e.slice(0,e.indexOf(UO)),i=t.directionality,o=(r=_(n.split(" "),2))[0],a="0px",u=(s=function(e){return"-".concat(e)})(r[1]||o),c="0px","rtl"===i?c=s(o):a=s(o),{margin:"0px ".concat(a," ").concat(u," ").concat(c)}):{};var n,i,r,o,s,a,u,c}},{key:"sideEffect",value:function(e,t,n){var i,r,o,s,a,u,c,l=n.items;if(e.endsWith(UO)){var h=(i=e=e.slice(0,e.indexOf(UO)),r=n.directionality,s=(o=_(i.split(" "),2))[0],a="0px",u=o[1]||s,c="0px","rtl"===r?c=s:a=s,{padding:"0px ".concat(a," ").concat(u," ").concat(c)});this._styler.applyStyleToElements(h,n.items)}else{var d=l.pop(),f=function(e,t){var n=zO(t.directionality,t.layout),i=Object.assign({},AO);return i[n]=e,i}(e,n);this._styler.applyStyleToElements(f,l),this._styler.applyStyleToElements(AO,[d])}}}]),n}(oO);return e.\u0275fac=function(t){return new(t||e)(ji(rO))},e.\u0275prov=Ve({factory:function(){return new e(ji(rO))},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"],NO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s,u){var c;a(this,n),(c=t.call(this,e,s,o,u)).zone=i,c.directionality=r,c.styleUtils=o,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Y;var l=[c.directionality.change,c.observerSubject.asObservable()];return c.init(l),c.marshal.trackValue(c.nativeElement,"layout").pipe(yg(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=VO:"row"===r&&"rtl"!==i?this.styleCache=FO:"column"===r&&"rtl"===i?this.styleCache=jO:"column"===r&&"rtl"!==i&&(this.styleCache=BO),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var e=Object.keys(this.mru).length>0,t=e?"padding":zO(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}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(hl),aa(Py),aa(rO),aa(RO),aa(uO))},e.\u0275dir=kt({type:e,features:[Gs]}),e}(),DO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=LO,e}return n}(NO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),VO=new Map,jO=new Map,FO=new Map,BO=new Map,UO=" grid";function zO(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function WO(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var s=o[r];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(e[a]=s[a])}return e}var HO=function(){var e=function(e){c(n,e);var t=p(n);function n(e){var i;return a(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(" "),s=t.direction.indexOf("column")>-1?"column":"row",a=EO(s)?"max-width":"max-height",u=EO(s)?"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"===s?"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=WO(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=WO(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[a]=p||!l&&r?o:null),v[u]||v[a]?t.hasWrap&&(v[c?"flex-basis":"flex"]=v[a]?c?v[a]:"".concat(i," ").concat(r," ").concat(v[a]):c?v[u]:"".concat(i," ").concat(r," ").concat(v[u])):v=WO(m,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)}),WO(v,{"box-sizing":"border-box"})}}]),n}(oO);return e.\u0275fac=function(t){return new(t||e)(ji(EE))},e.\u0275prov=Ve({factory:function(){return new e(ji(EE))},token:e,providedIn:"root"}),e}(),GO=["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"],qO=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this,e,o,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(yg(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(yg(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=KO:n&&!i?this.styleCache=YO:!n&&i?this.styleCache=JO:n||i||(this.styleCache=QO);var r=sO(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=sO(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(EE),aa(HO),aa(uO))},e.\u0275dir=kt({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Gs]}),e}(),ZO=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=GO,e}return n}(qO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),YO=new Map,QO=new Map,KO=new Map,JO=new Map,XO=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return{order:e&&parseInt(e,10)||""}}}]),n}(oO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),$O=["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"],ex=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,r,i,o)).DIRECTIVE_KEY="flex-order",s.styleCache=tx,s.init(),s}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(XO),aa(uO))},e.\u0275dir=kt({type:e,features:[Gs]}),e}(),tx=new Map,nx=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=$O,e}return n}(ex);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),ix=(new Map,new Map,new Map,new Map,new Map,{margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"}),rx=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return ix}}]),n}(oO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ox=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,r,i,o)).styleCache=sx,s.addStyles(""),s}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(rx),aa(uO))},e.\u0275dir=kt({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Gs]}),e}(),sx=new Map,ax=function(){var e=function(e){c(n,e);var t=p(n);function n(){return a(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 WO(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}(oO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ux=["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"],cx=function(){var e=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(yg(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=vx:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=gx:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=mx:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=yx:"column-reverse"!==t||n||(this.styleCache=px):this.styleCache=dx:this.styleCache=fx:this.styleCache=hx,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}(RE);return e.\u0275fac=function(t){return new(t||e)(aa(wu),aa(rO),aa(ax),aa(uO))},e.\u0275dir=kt({type:e,features:[Gs]}),e}(),lx=function(){var e=function(e){c(n,e);var t=p(n);function n(){var e;return a(this,n),(e=t.apply(this,arguments)).inputs=ux,e}return n}(cx);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({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:[Gs]}),e}(),hx=new Map,dx=new Map,fx=new Map,px=new Map,vx=new Map,mx=new Map,gx=new Map,yx=new Map,bx=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE,My]]}),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 _x=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE]]}),e}(),kx=(new Tu("12.0.0-beta.34"),function(){var e=function(){function e(t,n){a(this,e),Rh(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:EE,useValue:Object.assign(Object.assign({},CE),t)},{provide:xE,useValue:n,multi:!0},{provide:OE,useValue:!0}]:[{provide:EE,useValue:Object.assign(Object.assign({},CE),t)},{provide:xE,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(OE),ji(Kc))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[bx,kO,_x],bx,kO,_x]}),e}()),wx=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 Sx(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Cx(e,t,n))}}var Cx=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ex(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Ex=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=o,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 Ox(e){return function(t){return 0===e?ug():t.lift(new xx(e))}}var xx=function(){function e(t){if(a(this,e),this.total=t,this.total<0)throw new sg}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Tx(e,this.total))}}]),e}(),Tx=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 Px(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ax;return function(t){return t.lift(new Mx(e))}}var Mx=function(){function e(t){a(this,e),this.errorFactory=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Ix(e,this.errorFactory))}}]),e}(),Ix=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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(HM){e=HM}this.destination.error(e)}}]),n}(j);function Ax(){return new wx}function Rx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Lx(e))}}var Lx=function(){function e(t){a(this,e),this.defaultValue=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Nx(e,this.defaultValue))}}]),e}(),Nx=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(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 Dx(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?ig(function(t,n){return e(t,n,i)}):U,cg(1),n?Rx(t):Px(function(){return new wx}))}}var Vx=function e(t,n){a(this,e),this.id=t,this.url=n},jx=function(e){c(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return a(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=s,r}return s(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vx),Fx=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return s(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Vx),Bx=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e,i)).reason=r,o}return s(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vx),Ux=function(e){c(n,e);var t=p(n);function n(e,i,r){var o;return a(this,n),(o=t.call(this,e,i)).error=r,o}return s(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Vx),zx=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,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}(Vx),Wx=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,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}(Vx),Hx=function(e){c(n,e);var t=p(n);function n(e,i,r,o,s){var u;return a(this,n),(u=t.call(this,e,i)).urlAfterRedirects=r,u.state=o,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}(Vx),Gx=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,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}(Vx),qx=function(e){c(n,e);var t=p(n);function n(e,i,r,o){var s;return a(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,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}(Vx),Zx=function(){function e(t){a(this,e),this.route=t}return s(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Yx=function(){function e(t){a(this,e),this.route=t}return s(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Qx=function(){function e(t){a(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Kx=function(){function e(t){a(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Jx=function(){function e(t){a(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Xx=function(){function e(t){a(this,e),this.snapshot=t}return s(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$x=function(){function e(t,n,i){a(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}(),eT="primary",tT=function(){function e(t){a(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 nT(e){return new tT(e)}function iT(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function rT(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 s=i[o],a=e[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function oT(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(!sT(e[n=i[o]],t[n]))return!1;return!0}function sT(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 aT(e){return Array.prototype.concat.apply([],e)}function uT(e){return e.length>0?e[e.length-1]:null}function cT(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function lT(e){return ya(e)?e:ma(e)?ae(Promise.resolve(e)):zm(e)}var hT={exact:function e(t,n,i){if(!_T(t.segments,n.segments))return!1;if(!mT(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:pT},dT={exact:function(e,t){return oT(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return sT(e[n],t[n])})},ignored:function(){return!0}};function fT(e,t,n){return hT[n.paths](e.root,t.root,n.matrixParams)&&dT[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function pT(e,t,n){return vT(e,t,t.segments,n)}function vT(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!_T(r,n)&&!t.hasChildren()&&!!mT(r,n,i)}if(e.segments.length===n.length){if(!_T(e.segments,n))return!1;if(!mT(e.segments,n,i))return!1;for(var o in t.children){if(!e.children[o])return!1;if(!pT(e.children[o],t.children[o],i))return!1}return!0}var s=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!_T(e.segments,s)&&!!mT(e.segments,s,i)&&!!e.children.primary&&vT(e.children.primary,t,a,i)}function mT(e,t,n){return t.every(function(t,i){return dT[n](e[i].parameters,t.parameters)})}var gT=function(){function e(t,n,i){a(this,e),this.root=t,this.queryParams=n,this.fragment=i}return s(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return ST.serialize(this)}}]),e}(),yT=function(){function e(t,n){var i=this;a(this,e),this.segments=t,this.children=n,this.parent=null,cT(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 CT(this)}}]),e}(),bT=function(){function e(t,n){a(this,e),this.path=t,this.parameters=n}return s(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=nT(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return IT(this)}}]),e}();function _T(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var kT=function e(){a(this,e)},wT=function(){function e(){a(this,e)}return s(e,[{key:"parse",value:function(e){var t=new DT(e);return new gT(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(ET(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(xT(e),"=").concat(xT(t))}).join("&"):"".concat(xT(e),"=").concat(xT(n))}).filter(function(e){return!!e})).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),ST=new wT;function CT(e){return e.segments.map(function(e){return IT(e)}).join("/")}function ET(e,t){if(!e.hasChildren())return CT(e);if(t){var n=e.children.primary?ET(e.children.primary,!1):"",i=[];return cT(e.children,function(e,t){t!==eT&&i.push("".concat(t,":").concat(ET(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return cT(e.children,function(e,i){i===eT&&(n=n.concat(t(e,i)))}),cT(e.children,function(e,i){i!==eT&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===eT?[ET(e.children.primary,!1)]:["".concat(n,":").concat(ET(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(CT(e),"/").concat(r[0]):"".concat(CT(e),"/(").concat(r.join("//"),")")}function OT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xT(e){return OT(e).replace(/%3B/gi,";")}function TT(e){return OT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function PT(e){return decodeURIComponent(e)}function MT(e){return PT(e.replace(/\+/g,"%20"))}function IT(e){return"".concat(TT(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(TT(e),"=").concat(TT(t[e]))}).join("")));var t}var AT=/^[^\/()?;=#]+/;function RT(e){var t=e.match(AT);return t?t[0]:""}var LT=/^[^=?&#]+/,NT=/^[^?&#]+/,DT=function(){function e(t){a(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 yT([],{}):new yT([],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 yT(e,t)),n}},{key:"parseSegment",value:function(){var e=RT(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new bT(PT(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=RT(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=RT(this.remaining);i&&this.capture(n=i)}e[PT(t)]=PT(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(LT);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(NT);return t?t[0]:""}(this.remaining);i&&this.capture(n=i)}var r=MT(t),o=MT(n);if(e.hasOwnProperty(r)){var s=e[r];Array.isArray(s)||(e[r]=s=[s]),s.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=RT(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=eT);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new yT([],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}(),VT=function(){function e(t){a(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=jT(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=jT(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=FT(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 FT(e,this._root).map(function(e){return e.value})}}]),e}();function jT(e,t){if(e===t.value)return t;var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=jT(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function FT(e,t){if(e===t.value)return[t];var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=FT(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var BT=function(){function e(t,n){a(this,e),this.value=t,this.children=n}return s(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function UT(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var zT=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this,e)).snapshot=i,QT(d(r),e),r}return s(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(VT);function WT(e,t){var n=function(e,t){var n=new ZT([],{},{},"",{},eT,t,null,e.root,-1,{});return new YT("",new BT(n,[]))}(e,t),i=new Um([new bT("",{})]),r=new Um({}),o=new Um({}),s=new Um({}),a=new Um(""),u=new HT(i,r,s,a,o,eT,t,n.root);return u.snapshot=n.root,new zT(new BT(u,[]),n)}var HT=function(){function e(t,n,i,r,o,s,u,c){a(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,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 nT(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(e){return nT(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function GT(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 qT(n.slice(i))}function qT(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 ZT=function(){function e(t,n,i,r,o,s,u,c,l,h,d){a(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,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=nT(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nT(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}(),YT=function(e){c(n,e);var t=p(n);function n(e,i){var r;return a(this,n),(r=t.call(this,i)).url=e,QT(d(r),i),r}return s(n,[{key:"toString",value:function(){return KT(this._root)}}]),n}(VT);function QT(e,t){t.value._routerState=e,t.children.forEach(function(t){return QT(e,t)})}function KT(e){var t=e.children.length>0?" { ".concat(e.children.map(KT).join(", ")," } "):"";return"".concat(e.value).concat(t)}function JT(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,oT(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),oT(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(!oT(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),oT(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function XT(e,t){var n,i;return oT(e.params,t.params)&&_T(n=e.url,i=t.url)&&n.every(function(e,t){return oT(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||XT(e.parent,t.parent))}function $T(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 $T(e,t,o)}}catch(s){r.e(s)}finally{r.f()}return $T(e,t)})}(e,t,n);return new BT(i,r)}if(e.shouldAttach(t.value)){var o=e.retrieve(t.value);if(null!==o){var s=o.route;return eP(t,s),s}}var a,u=new HT(new Um((a=t.value).url),new Um(a.params),new Um(a.queryParams),new Um(a.fragment),new Um(a.data),a.outlet,a.component,a),c=t.children.map(function(t){return $T(e,t)});return new BT(u,c)}function eP(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)eP(e.children[n],t.children[n])}function tP(e,t,n,i,r){if(0===n.length)return rP(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new sP(!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 cT(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 sP(n,t,i)}(n);if(o.toRoot())return rP(t.root,new yT([],{}),t,i,r);var s=function(e,t,n){if(e.isAbsolute)return new aP(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new aP(i,i===t.root,0)}var r=nP(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 aP(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?cP(s.segmentGroup,s.index,o.commands):uP(s.segmentGroup,s.index,o.commands);return rP(s.segmentGroup,a,t,i,r)}function nP(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function iP(e){return"object"==typeof e&&null!=e&&e.outlets}function rP(e,t,n,i,r){var o={};return i&&cT(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new gT(n.root===e?t:oP(n.root,e,t),o,r)}function oP(e,t,n){var i={};return cT(e.children,function(e,r){i[r]=e===t?n:oP(e,t,n)}),new yT(e.segments,i)}var sP=function(){function e(t,n,i){if(a(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&nP(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(iP);if(r&&r!==uT(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}(),aP=function e(t,n,i){a(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function uP(e,t,n){if(e||(e=new yT([],{})),0===e.segments.length&&e.hasChildren())return cP(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 s=e.segments[r],a=n[i];if(iP(a))break;var u="".concat(a),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(!fP(u,c,s))return o;i+=2}else{if(!fP(u,{},s))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 yT(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new yT(e.segments.slice(i.pathIndex),e.children),cP(o,0,r)}return i.match&&0===r.length?new yT(e.segments,{}):i.match&&!e.hasChildren()?lP(e,t,n):i.match?cP(e,0,r):lP(e,t,n)}function cP(e,t,n){if(0===n.length)return new yT(e.segments,{});var i=function(e){return iP(e[0])?e[0].outlets:k({},eT,e)}(n),r={};return cT(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=uP(e.children[i],t,n))}),cT(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new yT(e.segments,r)}function lP(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(iP(o)){var s=hP(o.outlets);return new yT(i,s)}if(0===r&&nP(n[0]))i.push(new bT(e.segments[t].path,dP(n[0]))),r++;else{var a=iP(o)?o.outlets.primary:"".concat(o),u=r<n.length-1?n[r+1]:null;a&&u&&nP(u)?(i.push(new bT(a,dP(u))),r+=2):(i.push(new bT(a,{})),r++)}}return new yT(i,{})}function hP(e){var t={};return cT(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=lP(new yT([],{}),0,e))}),t}function dP(e){var t={};return cT(e,function(e,n){return t[n]="".concat(e)}),t}function fP(e,t,n){return e==n.path&&oT(t,n.parameters)}var pP=function(){function e(t,n,i,r){a(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),JT(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=UT(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),cT(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=UT(e),o=0,s=Object.keys(r);o<s.length;o++)this.deactivateRouteAndItsChildren(r[s[o]],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=UT(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new Xx(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Kx(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(JT(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 s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),vP(a.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;s.attachRef=null,s.route=i,s.resolver=c,s.outlet&&s.outlet.activateWith(i,c),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function vP(e){JT(e.value),e.children.forEach(vP)}var mP=function e(t,n){a(this,e),this.routes=t,this.module=n};function gP(e){return"function"==typeof e}function yP(e){return e instanceof gT}var bP=Symbol("INITIAL_VALUE");function _P(){return qb(function(e){return NC(e.map(function(e){return e.pipe(cg(1),Ly(bP))})).pipe(Sx(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==bP)return e;if(i===bP&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||yP(i))return i}return e},e)},bP),ig(function(e){return e!==bP}),J(function(e){return yP(e)?e:!0===e}),cg(1))})}var kP=function(){var e=function e(){a(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&da(0,"router-outlet")},directives:function(){return[_M]},encapsulation:2}),e}();function wP(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=CP(t,i);SP(i,r)}}function SP(e,t){e.children&&wP(e.children,t)}function CP(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function EP(e){var t=e.children&&e.children.map(EP),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==eT&&(n.component=kP),n}function OP(e){return e.outlet||eT}function xP(e,t){var n=e.filter(function(e){return OP(e)===t});return n.push.apply(n,C(e.filter(function(e){return OP(e)!==t}))),n}var TP={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function PP(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},TP):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||rT)(n,e,t);if(!r)return Object.assign({},TP);var o={};cT(r.posParams,function(e,t){o[t]=e.path});var s=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:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function MP(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&RP(e,n,i)){var o=new yT(t,AP(e,t,i,new yT(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&LP(e,n,i)){var s=new yT(e.segments,IP(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var a=new yT(e.segments,e.children);return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}function IP(e,t,n,i,r,o){var s,a={},u=g(i);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(NP(e,n,c)&&!r[OP(c)]){var l=new yT([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,a[OP(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),a)}function AP(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,s=g(n);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(""===a.path&&OP(a)!==eT){var u=new yT([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[OP(a)]=u}}}catch(c){s.e(c)}finally{s.f()}return r}function RP(e,t,n){return n.some(function(n){return NP(e,t,n)&&OP(n)!==eT})}function LP(e,t,n){return n.some(function(n){return NP(e,t,n)})}function NP(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function DP(e,t,n,i){return!!(OP(e)===i||i!==eT&&NP(t,n,e))&&("**"===e.path||PP(t,e,n).matched)}function VP(e,t,n){return 0===t.length&&!e.children[n]}var jP=function e(t){a(this,e),this.segmentGroup=t||null},FP=function e(t){a(this,e),this.urlTree=t};function BP(e){return new W(function(t){return t.error(new jP(e))})}function UP(e){return new W(function(t){return t.error(new FP(e))})}function zP(e){return new W(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var WP=function(){function e(t,n,i,r,o){a(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(nc)}return s(e,[{key:"apply",value:function(){var e=this,t=MP(this.urlTree.root,[],[],this.config).segmentGroup,n=new yT(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,eT).pipe(J(function(t){return e.createUrlTree(HP(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Sw(function(t){if(t instanceof FP)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof jP)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,eT).pipe(J(function(n){return t.createUrlTree(HP(n),e.queryParams,e.fragment)})).pipe(Sw(function(e){if(e instanceof jP)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 yT([],k({},eT,e)):e;return new gT(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 yT([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,s=Object.keys(n.children);o<s.length;o++){var a=s[o];"primary"===a?r.unshift(a):r.push(a)}return ae(r).pipe(Pw(function(r){var o=n.children[r],s=xP(t,r);return i.expandSegmentGroup(e,s,o,r).pipe(J(function(e){return{segment:e,outlet:r}}))}),Sx(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?ig(function(t,n){return e(t,n,i)}):U,Ox(1),n?Rx(t):Px(function(){return new wx}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var s=this;return ae(n).pipe(Pw(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,i,r,o).pipe(Sw(function(e){if(e instanceof jP)return zm(null);throw e}))}),Dx(function(e){return!!e}),Sw(function(e,n){if(e instanceof wx||"EmptyError"===e.name){if(VP(t,i,r))return zm(new yT([],{}));throw new jP(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,s){return DP(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):BP(t):BP(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("/")?UP(o):this.lineralizeSegments(n,o).pipe(he(function(n){var o=new yT(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var s=this,a=PP(t,i,r),u=a.consumedSegments,c=a.lastChild,l=a.positionalParamSegments;if(!a.matched)return BP(t);var h=this.applyRedirectCommands(u,i.redirectTo,l);return i.redirectTo.startsWith("/")?UP(h):this.lineralizeSegments(i,h).pipe(he(function(i){return s.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?(n._loadedConfig?zm(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(J(function(e){return n._loadedConfig=e,new yT(i,{})})):zm(new yT(i,{}));var s=PP(t,n,i),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return BP(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(he(function(e){var i=e.module,s=e.routes,u=MP(t,a,c,s),l=u.segmentGroup,h=u.slicedSegments,d=new yT(l.segments,l.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,s,d).pipe(J(function(e){return new yT(a,e)}));if(0===s.length&&0===h.length)return zm(new yT(a,{}));var f=OP(n)===r;return o.expandSegment(i,d,s,h,f?eT:r,!0).pipe(J(function(e){return new yT(a.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?zm(new mP(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?zm(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(iT("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):zm(new mP([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?zm(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&gP(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!gP(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return lT(r)})).pipe(_P(),qm(function(e){if(yP(e)){var t=iT('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),J(function(e){return!0===e})):zm(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return zm(n);if(i.numberOfChildren>1||!i.children.primary)return zP(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 gT(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return cT(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),s={};return cT(t.children,function(t,o){s[o]=r.createSegmentGroup(e,t,n,i)}),new yT(o,s)}},{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(s){r.e(s)}finally{r.f()}return e}}]),e}();function HP(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=HP(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 yT(e.segments.concat(t.segments),t.children)}return e}(new yT(e.segments,t))}var GP=function e(t){a(this,e),this.path=t,this.route=this.path[this.path.length-1]},qP=function e(t,n){a(this,e),this.component=t,this.route=n};function ZP(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 YP(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=UT(t);return e.children.forEach(function(e){QP(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),cT(o,function(e,t){return JP(e,n.getContext(t),r)}),r}function QP(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var u=KP(s,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new GP(i)):(o.data=s.data,o._resolvedData=s._resolvedData),YP(e,t,o.component?a?a.children:null:n,i,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new qP(a.outlet.component,s))}else s&&JP(t,a,r),r.canActivateChecks.push(new GP(i)),YP(e,null,o.component?a?a.children:null:n,i,r);return r}function KP(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!_T(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_T(e.url,t.url)||!oT(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XT(e,t)||!oT(e.queryParams,t.queryParams);case"paramsChange":default:return!XT(e,t)}}function JP(e,t,n){var i=UT(e),r=e.value;cT(i,function(e,i){JP(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new qP(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var XP=function e(){a(this,e)};function $P(e){return new W(function(t){return t.error(e)})}var eM=function(){function e(t,n,i,r,o,s){a(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}return s(e,[{key:"recognize",value:function(){var e=MP(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,eT);if(null===t)return null;var n=new ZT([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},eT,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new BT(n,t),r=new YT(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=GT(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],s=t.children[o],a=xP(e,o),u=this.processSegmentGroup(a,s,o);if(null===u)return null;n.push.apply(n,C(u))}var c=tM(n);return c.sort(function(e,t){return e.value.outlet===eT?-1:t.value.outlet===eT?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 s=this.processSegmentAgainstRoute(r.value,t,n,i);if(null!==s)return s}}catch(a){o.e(a)}finally{o.f()}return VP(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!DP(e,t,n,i))return null;var r,o=[],s=[];if("**"===e.path){var a=n.length>0?uT(n).parameters:{};r=new ZT(n,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rM(e),OP(e),e.component,e,nM(t),iM(t)+n.length,oM(e))}else{var u=PP(t,e,n);if(!u.matched)return null;o=u.consumedSegments,s=n.slice(u.lastChild),r=new ZT(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rM(e),OP(e),e.component,e,nM(t),iM(t)+o.length,oM(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=MP(t,o,s,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 BT(r,f)]}if(0===c.length&&0===d.length)return[new BT(r,[])];var p=OP(e)===i,v=this.processSegment(c,h,d,p?eT:i);return null===v?null:[new BT(r,v)]}}]),e}();function tM(e){var t,n=[],i=new Set,r=g(e);try{var o=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 r,o=n.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,C(e.children)),i.add(o)):n.push(e)};for(r.s();!(t=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}var s,a=g(i);try{for(a.s();!(s=a.n()).done;){var u=s.value,c=tM(u.children);n.push(new BT(u.value,c))}}catch(l){a.e(l)}finally{a.f()}return n.filter(function(e){return!i.has(e)})}function nM(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function iM(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 rM(e){return e.data||{}}function oM(e){return e.resolve||{}}function sM(e){return qb(function(t){var n=e(t);return n?ae(n).pipe(J(function(){return t})):zm(t)})}var aM=function(e){c(n,e);var t=p(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(function(){function e(){a(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}()),uM=new _i("ROUTES"),cM=function(){function e(t,n,i,r){a(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;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(J(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new mP(aT(r.injector.get(uM,void 0,Ze.Self|Ze.Optional)).map(EP),r)}),Sw(function(e){throw t._loader$=void 0,e}));return t._loader$=new _e(i,function(){return new Y}).pipe(ge()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ae(this.loader.load(e)):lT(e()).pipe(he(function(e){return e instanceof ic?zm(e):ae(t.compiler.compileModuleAsync(e))}))}}]),e}(),lM=function e(){a(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new hM,this.attachRef=null},hM=function(){function e(){a(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 lM,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),dM=function(){function e(){a(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 fM(e){throw e}function pM(e,t,n){return t.parse("/")}function vM(e,t){return zm(null)}var mM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yM=function(){var e=function(){function e(t,n,i,r,o,s,u,c){var l=this;a(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Y,this.errorHandler=fM,this.malformedUriErrorHandler=pM,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vM,afterPreactivation:vM},this.urlHandlingStrategy=new dM,this.routeReuseStrategy=new aM,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(nc),this.console=o.get(Xc);var h=o.get(hl);this.isNgZoneEnabled=h instanceof hl&&hl.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new gT(new yT([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cM(s,u,function(e){return l.triggerEvent(new Zx(e))},function(e){return l.triggerEvent(new Yx(e))}),this.routerState=WT(this.currentUrlTree,this.rootComponentType),this.transitions=new Um({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return s(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(ig(function(e){return 0!==e.id}),J(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),qb(function(e){var i,r,o,s=!1,a=!1;return zm(e).pipe(qm(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}}),qb(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return zm(e).pipe(qb(function(e){var i=t.transitions.getValue();return n.next(new jx(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?ag:Promise.resolve(e)}),function(e,t,n,i){return qb(function(r){return function(e,t,n,i,r){return new WP(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(J(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),qm(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 s=new eM(e,t,n,i,r,o).recognize();return null===s?$P(new XP):zm(s)}catch(HM){return $P(HM)}}(e,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,t.serializeUrl(s)),r,o).pipe(J(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var s})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),qm(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new zx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var r=e.extractedUrl,o=e.source,s=e.restoredState,a=e.extras,u=new jx(e.id,t.serializeUrl(r),o,s);n.next(u);var c=WT(r,t.rootComponentType).snapshot;return zm(Object.assign(Object.assign({},e),{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ag}),sM(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})}),qm(function(e){var n=new Wx(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,YP(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,s=o.canActivateChecks,a=o.canDeactivateChecks;return 0===a.length&&0===s.length?zm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ae(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?zm(o.map(function(o){var s,a=ZP(o,t,r);if(function(e){return e&&gP(e.canDeactivate)}(a))s=lT(a.canDeactivate(e,t,n,i));else{if(!gP(a))throw new Error("Invalid CanDeactivate guard");s=lT(a(e,t,n,i))}return s.pipe(Dx())})).pipe(_P()):zm(!0)}(e.component,e.route,n,t,i)}),Dx(function(e){return!0!==e},!0))}(a,i,r,e).pipe(he(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ae(t).pipe(Pw(function(t){return Ry(function(e,t){return null!==e&&t&&t(new Qx(e)),zm(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Jx(e)),zm(!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 nk(function(){return zm(t.guards.map(function(r){var o,s=ZP(r,t.node,n);if(function(e){return e&&gP(e.canActivateChild)}(s))o=lT(s.canActivateChild(i,e));else{if(!gP(s))throw new Error("Invalid CanActivateChild guard");o=lT(s(i,e))}return o.pipe(Dx())})).pipe(_P())})});return zm(r).pipe(_P())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?zm(i.map(function(i){return nk(function(){var r,o=ZP(i,t,n);if(function(e){return e&&gP(e.canActivate)}(o))r=lT(o.canActivate(t,e));else{if(!gP(o))throw new Error("Invalid CanActivate guard");r=lT(o(t,e))}return r.pipe(Dx())})})).pipe(_P()):zm(!0)}(e,t.route,n))}),Dx(function(e){return!0!==e},!0))}(i,s,e,t):zm(n)}),J(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),qm(function(e){if(yP(e.guardsResult)){var n=iT('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new Hx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),ig(function(e){return!!e.guardsResult||(t.cancelNavigationTransitionRestoreHistory(e,""),!1)}),sM(function(e){if(e.guards.canActivateChecks.length)return zm(e).pipe(qm(function(e){var n=new Gx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),qb(function(e){var n,i,r=!1;return zm(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,he(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return zm(e);var o=0;return ae(r).pipe(Pw(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return zm({});var o={};return ae(r).pipe(he(function(r){return function(e,t,n,i){var r=ZP(e,t,i);return lT(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(qm(function(e){o[r]=e}))}),Ox(1),he(function(){return Object.keys(o).length===r.length?zm(o):ag}))}(e._resolve,e,t,i).pipe(J(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),GT(e,n).resolve),null}))}(e.route,t,n,i)}),qm(function(){return o++}),Ox(1),he(function(t){return o===r.length?zm(e):ag}))})),qm({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransitionRestoreHistory(e,"At least one route resolver didn't emit any value.")}}))}),qm(function(e){var n=new qx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),sM(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=$T(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(i=e.currentRouterState)?i._root:void 0),new zT(r,n));return Object.assign(Object.assign({},e),{targetRouterState:o})}),qm(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),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},J(function(e){return new pP(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),qm({next:function(){s=!0},complete:function(){s=!0}}),Ow(function(){if(!s&&!a){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?t.cancelNavigationTransitionRestoreHistory(e,n):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),Sw(function(i){if(a=!0,(u=i)&&u.ngNavigationCancelingError){var r=yP(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Bx(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 s=new Ux(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var u;return ag}))}))}},{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 s=Object.assign({},i);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(o.state=s)}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){wP(e),this.config=e.map(EP),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,s=t.preserveFragment,a=n||this.routerState.root,u=s?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),tP(a,this.currentUrlTree,e,c,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=yP(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 bM(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(HM){t=this.malformedUriErrorHandler(HM,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){var n;if(n=!0===t?Object.assign({},mM):!1===t?Object.assign({},gM):t,yP(e))return fT(this.currentUrlTree,e,n);var i=this.parseUrl(e);return fT(this.currentUrlTree,i,n)}},{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.currentPageId=t.targetPageId,e.events.next(new Fx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){var o,s;if(this.disposed)return Promise.resolve(!1);var a,u,c,l=this.getTransition(),h="imperative"!==t&&"imperative"===(null==l?void 0:l.source),d=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(h&&d)return Promise.resolve(!0);r?(a=r.resolve,u=r.reject,c=r.promise):c=new Promise(function(e,t){a=e,u=t});var f,p=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t){var n=this.urlSerializer.serialize(e),i=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{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),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransitionRestoreHistory",value:function(e,t){"computed"===this.canceledNavigationResolution?"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-e.targetPageId):this.resetUrlToCurrentUrlTree(),this.cancelNavigationTransition(e,t)}},{key:"cancelNavigationTransition",value:function(e,t){var n=new Bx(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(wi),ji(kT),ji(hM),ji(uh),ji(Ws),ji(Dl),ji(ul),ji(void 0))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function bM(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 _M=function(){var e=function(){function e(t,n,i,r,o){a(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ec,this.deactivateEvents=new Ec,this.name=r||eT,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 kM(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)(aa(hM),aa(oc),aa(yu),gi("name"),aa(Yu))},e.\u0275dir=kt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),kM=function(){function e(t,n,i){a(this,e),this.route=t,this.childContexts=n,this.parent=i}return s(e,[{key:"get",value:function(e,t){return e===HT?this.route:e===hM?this.childContexts:this.parent.get(e,t)}}]),e}(),wM=function e(){a(this,e)},SM=function(){function e(){a(this,e)}return s(e,[{key:"preload",value:function(e,t){return t().pipe(Sw(function(){return zm(null)}))}}]),e}(),CM=function(){function e(){a(this,e)}return s(e,[{key:"preload",value:function(e,t){return zm(null)}}]),e}(),EM=function(){var e=function(){function e(t,n,i,r,o){a(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new cM(n,i,function(e){return t.triggerEvent(new Zx(e))},function(e){return t.triggerEvent(new Yx(e))})}return s(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(ig(function(e){return e instanceof Fx}),Pw(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(nc);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 s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(a){r.e(a)}finally{r.f()}return ae(i).pipe(pe(),J(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?zm(t._loadedConfig):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)(ji(yM),ji(Dl),ji(ul),ji(Ws),ji(wM))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),OM=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(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 jx?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Fx&&(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 $x&&(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 $x(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)(ji(yM),ji(Lh),ji(void 0))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),xM=new _i("ROUTER_CONFIGURATION"),TM=new _i("ROUTER_FORROOT_GUARD"),PM=[uh,{provide:kT,useClass:wT},{provide:yM,useFactory:function(e,t,n,i,r,o,s){var a=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 yM(null,e,t,n,i,r,o,aT(s));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),DM(a,l),a.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[kT,hM,uh,Ws,Dl,ul,uM,xM,[function e(){a(this,e)},new qi],[function e(){a(this,e)},new qi]]},hM,{provide:HT,useFactory:function(e){return e.routerState.root},deps:[yM]},{provide:Dl,useClass:Fl},EM,CM,SM,{provide:xM,useValue:{enableTracing:!1}}];function MM(){return new xl("Router",yM)}var IM=function(){var e=function(){function e(t,n){a(this,e)}return s(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[PM,NM(t),{provide:TM,useFactory:LM,deps:[[yM,new qi,new Zi]]},{provide:xM,useValue:n||{}},{provide:ih,useFactory:RM,deps:[Yl,[new Gi(oh),new qi],xM]},{provide:OM,useFactory:AM,deps:[yM,Lh,xM]},{provide:wM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:CM},{provide:xl,multi:!0,useFactory:MM},[VM,{provide:Hc,multi:!0,useFactory:jM,deps:[VM]},{provide:BM,useFactory:FM,deps:[VM]},{provide:Jc,multi:!0,useExisting:BM}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[NM(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(TM,8),ji(yM,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}();function AM(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new OM(e,t,n)}function RM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new ah(e,t):new sh(e,t)}function LM(e){return"guarded"}function NM(e){return[{provide:ki,multi:!0,useValue:e},{provide:uM,multi:!0,useValue:e}]}function DM(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 VM=function(){var e=function(){function e(t){a(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Y}return s(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Kl,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(yM),r=e.injector.get(xM);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?zm(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(xM),n=this.injector.get(EM),i=this.injector.get(OM),r=this.injector.get(yM),o=this.injector.get(Ll);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())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Ws))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function jM(e){return e.appInitializer.bind(e)}function FM(e){return e.bootstrapListener.bind(e)}var BM=new _i("Router Initializer");function UM(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 zM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var WM=function(){function e(t){a(this,e),this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;var n=t.length,i=t.separator,r=t.style,o=t.seed;this.dictionaries=t.dictionaries,this.separator=i,this.length=n,this.style=r,this.seed=o}return 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("")),s=o[0],a=o.slice(1);r=s.toUpperCase()+a.join("")}else"upperCase"===e.style&&(r=r.toUpperCase());return t?"".concat(t).concat(e.separator).concat(r):"".concat(r)},"")}}]),e}(),HM={separator:"_",dictionaries:[]},GM=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],qM=["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","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","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","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"],ZM=["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 YM(e,t){1&e&&(la(0,"div",18),Ya(1," Room name is "),la(2,"strong"),Ya(3,"required"),ha(),ha())}function QM(e,t){1&e&&(la(0,"div",19),Ya(1," Room name is "),la(2,"strong"),Ya(3,"too short!"),ha(),ha())}var KM=function(){function e(e,t){this.router=e,this.formBuilder=t,this.version=n(60306).i8}return e.prototype.ngOnInit=function(){var e=function(e){var t=C(e&&e.dictionaries||HM.dictionaries),n=zM(zM(zM({},HM),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 WM(n).generate()}({dictionaries:[GM,ZM,qM],separator:"-"});this.roomForm=new kf(e,[Rd.minLength(4),Rd.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)(aa(yM),aa(Uf))},e.\u0275cmp=vt({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&&(la(0,"div",0),la(1,"mat-toolbar",1),la(2,"a",2),da(3,"img",3),ha(),la(4,"div",4),la(5,"span"),Ya(6),ha(),ha(),ha(),la(7,"div",5),la(8,"div",6),da(9,"img",7),la(10,"h4"),Ya(11,"Videoconference rooms in one click"),ha(),ha(),la(12,"div",8),oa(13,YM,4,0,"div",9),oa(14,QM,4,0,"div",10),la(15,"form",11),ba("ngSubmit",function(){return t.goToVideoCall()}),la(16,"div",12),da(17,"input",13),la(18,"button",14),Ya(19,"JOIN"),ha(),ha(),ha(),ha(),ha(),la(20,"mat-toolbar",15),la(21,"span"),Ya(22," Photo by "),la(23,"a",16),Ya(24," Daniel Leone "),ha(),Ya(25," on "),la(26,"a",17),Ya(27," Unsplash "),ha(),ha(),ha(),ha()),2&e&&(Io(6),Qa(t.version),Io(7),ua("ngIf",t.roomForm.hasError("required")),Io(1),ua("ngIf",t.roomForm.hasError("minlength")),Io(1),ua("formGroup",t.roomForm),Io(2),ua("formControl",t.roomForm))},directives:[PC,bh,Mf,Xd,Df,IS,xd,Jd,Lf],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%,87%,.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}(),JM=function(e){return e.CAMERA="CAMERA",e.SCREEN="SCREEN",e.CUSTOM="CUSTOM",e}({}),XM=function(e){return e.WINDOW="window",e.SCREEN="screen",e}({}),$M=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)===JM.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)===JM.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}(),eI=function(){function e(){this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}return e.prototype.getLoggerFns=function(e){var t=this;return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map(function(n,i){return n.bind(t.log,t.MSG_PREFIXES[i][0]+e+t.MSG_PREFIXES[i][1])})},e.prototype.get=function(e){var t=this;return{d:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},w:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.getLoggerFns(e)[2].apply(this.log,arguments)}}},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),tI=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(aa(ck),aa(hk))},e.\u0275cmp=vt({type:e,selectors:[["app-dialog-error"]],decls:5,vars:2,consts:[["mat-dialog-title",""]],template:function(e,t){1&e&&(la(0,"div"),la(1,"h1",0),Ya(2),ha(),la(3,"span"),Ya(4),ha(),ha()),2&e&&(Io(2),Qa(t.data.header),Io(2),Ka(" ",t.data.message," "))},directives:[yk],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),e}(),nI=function(e){return e.ROOT_CLASS="OT_root",e}({}),iI=function(e){return e.BIG_ELEMENT="OV_big",e.SMALL_ELEMENT="OV_small",e}({}),rI=n(90272),oI=n.n(rI),sI=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(tI,{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(iI.BIG_ELEMENT))?this.removeBigElementClass(e):e.classList.add(iI.BIG_ELEMENT)},e.prototype.removeBigElementClass=function(e){null==e||e.classList.remove(iI.BIG_ELEMENT)},e.prototype.removeAllBigElementClass=function(){for(var e=document.getElementsByClassName(iI.BIG_ELEMENT);e.length>0;)this.removeBigElementClass(e[0])},e.prototype.isSmallElement=function(e){return null==e?void 0:e.className.includes(iI.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 oI()(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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(mk))},providedIn:"root"}),e}(),aI=function(){function e(e){this.loggerSrv=e,this._OVUsers=new Um([]),this._screenShareState=new Um(!1),this._webcamVideoActive=new Um(!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 $M,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 $M(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 $M,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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI))},providedIn:"root"}),e}(),uI=function(e){return e.DEFAULT="default",e.CAPTURED="captured",e}({}),cI=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!==uI.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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(aI),ji(eI))},providedIn:"root"}),e}(),lI=function(){function e(e,t,n){this.loggerSrv=e,this.utilsSrv=t,this.avatarService=n,this._remoteUsers=new Um([]),this._remoteUserNameList=new Um([]),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,s,a,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===(s=null===(o=e)||void 0===o?void 0:o.connection)||void 0===s?void 0:s.connectionId),v=(null===(c=null===(u=null===(a=e)||void 0===a?void 0:a.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 $M(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 Um([]),this.remoteUsers=this._remoteUsers.asObservable(),this._remoteUserNameList=new Um([]),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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI),ji(sI),ji(cI))},providedIn:"root"}),e}(),hI=n(15904),dI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(HM){o(HM)}}function a(e){try{u(i.throw(e))}catch(HM){o(HM)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((i=i.apply(e,t||[])).next())})},fI=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},pI=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 hI.Dn,this.OVScreen=new hI.Dn,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 dI(this,void 0,void 0,function(){var t,n;return fI(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 dI(this,void 0,void 0,function(){var t,n;return fI(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,s,a;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===(a=null===(s=this.localUsersSrv.getScreenPublisher())||void 0===s?void 0:s.stream)||void 0===a?void 0:a.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 dI(this,void 0,void 0,function(){var n;return fI(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.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setWebcamPublisher(e))},e.prototype.destroyScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&(e.stream.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setScreenPublisher(e))},e.prototype.publishWebcamPublisher=function(){var e,t;return dI(this,void 0,void 0,function(){var n;return fI(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 dI(this,void 0,void 0,function(){var n;return fI(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 s=i.createPublisherProperties(i.videoSource,i.audioSource,i.localUsersSrv.hasWebcamVideoActive(),i.localUsersSrv.hasWebcamAudioActive(),n),a=i.initPublisher(void 0,s);i.localUsersSrv.setWebcamPublisher(a),a.once("streamPlaying",function(){i.localUsersSrv.setWebcamPublisher(a),r()}),a.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 dI(this,void 0,void 0,function(){var e,t,n,i;return fI(this,function(r){switch(r.label){case 0:return e=XM.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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI),ji(aI))},providedIn:"root"}),e}(),vI=n(45796),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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(fE))},providedIn:"root"}),e}(),gI=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 vI.BehaviorSubject([]),this._toggleChat=new vI.BehaviorSubject(!1),this.messageList=[],this.messagesUnread=0,this._messagesUnread=new vI.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.resetUnreadMessages()})},e.prototype.resetUnreadMessages=function(){this.messagesUnread=0,this._messagesUnread.next(this.messagesUnread)},e.prototype.isChatOpened=function(){return this.chatOpened},e.prototype.addMessageUnread=function(){this.messagesUnread++,this._messagesUnread.next(this.messagesUnread)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI),ji(pI),ji(aI),ji(lI),ji(mI))},providedIn:"root"}),e}(),yI=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)(aa(sI,16))},e.\u0275pipe=wt({name:"linkify",type:e,pure:!0}),e}(),bI=["chatScroll"],_I=["chatInput"];function kI(e,t){if(1&e&&(la(0,"div",13),da(1,"img",14),la(2,"div",15),la(3,"div",16),la(4,"p"),Ya(5),ha(),ha(),la(6,"div",17),da(7,"span",18),da(8,"p",19),wc(9,"linkify"),ha(),ha(),ha()),2&e){var n=t.$implicit;ua("ngClass",n.isLocal?"right":"left"),Io(1),ua("src",n.userAvatar,Mr),Io(4),Qa(n.nickname),Io(3),ua("innerHTML",Sc(9,4,n.message),Pr)}}var wI=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)(aa(gI))},e.\u0275cmp=vt({type:e,selectors:[["chat-component"]],viewQuery:function(e,t){if(1&e&&(jc(bI,5),jc(_I,5)),2&e){var n=void 0;Vc(n=Bc())&&(t.chatScroll=n.first),Vc(n=Bc())&&(t.chatInput=n.first)}},hostBindings:function(e,t){1&e&&ba("keydown.escape",function(e){return t.onKeydownHandler(e)},!1,Fr)},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&&(la(0,"div",0),la(1,"div",1),la(2,"div",2),la(3,"span"),Ya(4," CHAT"),ha(),la(5,"button",3),ba("click",function(){return t.close()}),la(6,"mat-icon",4),Ya(7,"highlight_off"),ha(),ha(),ha(),la(8,"div",5,6),oa(10,kI,10,6,"div",7),ha(),la(11,"div",8),la(12,"input",9,10),ba("keypress",function(e){return t.eventKeyPress(e)})("ngModelChange",function(e){return t.message=e}),ha(),la(14,"button",11),ba("click",function(){return t.sendMessage()}),la(15,"mat-icon",12),Ya(16,"send"),ha(),ha(),ha(),ha(),ha()),2&e&&(Io(1),Va("chatComponentLight",t.lightTheme),Io(9),ua("ngForOf",t.messageList),Io(2),ua("ngModel",t.message))},directives:[Ob,wS,JC,gh,xd,Jd,Pf,vh,dO],pipes:[yI],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 #f0f0f094}.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 #c8ffe8ab}.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}(),SI=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}(),CI=function(e){return e.DARK="dark",e.LIGHT="light",e}({}),EI=function(){function e(){this.theme=CI.DARK,this.ovSettings=new SI}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(CI).includes(e)&&(this.theme=e===CI.DARK?CI.DARK:CI.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}(),OI=function(e){return e.USER_NICKNAME="openviduCallNickname",e.VIDEO_DEVICE="openviduCallVideoDevice",e.AUDIO_DEVICE="openviduCallAudioDevice",e}({}),xI=function(e){return e.FRONT="FRONT",e.BACK="BACK",e}({}),TI=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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI))},providedIn:"root"}),e}(),PI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(HM){o(HM)}}function a(e){try{u(i.throw(e))}catch(HM){o(HM)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((i=i.apply(e,t||[])).next())})},MI=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},II=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 hI.Dn}return e.prototype.initDevices=function(){return PI(this,void 0,void 0,function(){return MI(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===xI.FRONT})),[2]}})})},e.prototype.initOpenViduDevices=function(){return PI(this,void 0,void 0,function(){var e;return MI(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:xI.BACK};e.utilSrv.isMobile()?i.label.toLowerCase().includes(xI.FRONT.toLowerCase())&&(i.type=xI.FRONT):0===n&&(i.type=xI.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(OI.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(OI.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(OI.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(OI.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!this.audioDevicesDisabled&&!!(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)===xI.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.disableAudioDevices=function(){this.audioDevicesDisabled=!0},e.prototype.clear=function(){this.OV=new hI.Dn,this.devices=[],this.cameras=[],this.microphones=[],this.camSelected=null,this.micSelected=null,this.videoDevicesDisabled=!1,this.audioDevicesDisabled=!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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI),ji(sI),ji(TI))},providedIn:"root"}),e}(),AI=function(){function e(){}return e.prototype.updateLayout=function(){var e=this;setTimeout(function(){var t,n;if("none"!==(null===(n=null===(t=e.layoutContainer)||void 0===t?void 0:t.style)||void 0===n?void 0:n.display)){var i=e.layoutContainer.id;i||(i="OT_"+e.cheapUUID(),e.layoutContainer.id=i);var r=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">."+e.opts.smallClass),e.filterDisplayNone),o=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">."+e.opts.bigClass),e.filterDisplayNone).filter(function(e){return!r.includes(e)}),s=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">*:not(."+e.opts.bigClass+")"),e.filterDisplayNone).filter(function(e){return!r.includes(e)});e.attachElements(o,s,r)}},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 s=this,a={left:t+"px",top:n+"px",width:i+"px",height:r+"px"};this.fixAspectRatio(e,i),setTimeout(function(){e.style.left=a.left,e.style.top=a.top,e.style.width=a.width,e.style.height=a.height,s.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 s,a,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===s||m>s)&&(s=m,o=h,c=l,a=p,u=v)}return{maxArea:s,targetCols:a,targetRows:u,targetHeight:o,targetWidth:c,ratio:o/c}},e.prototype.arrange=function(e,t,n,i,r,o,s,a,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(s,a,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"),s=0,a=0,u=0,c=0;r/o>this.getVideoRatio(e[0])?(n=o,u=r-(a=i=Math.floor(r*this.opts.bigPercentage))):(i=r,c=o-(s=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-s,r-a,s,a,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(t,o-s,r-a,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}(),RI=function(){function e(){}return e.prototype.initialize=function(e){var t=this;void 0===e&&(e=null),e?setTimeout(function(){t._initialize()},e):this._initialize()},e.prototype._initialize=function(){this.openviduLayout=new AI,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:iI.BIG_ELEMENT,smallClass:iI.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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),LI=n(36969),NI=n(41331),DI=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,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(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{a(o.next(e))}catch(HM){t(HM)}}function s(e){try{a(o.throw(e))}catch(HM){t(HM)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,s)}a((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 s=JSON.stringify({customSessionId:e}),a={headers:new Aw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions",s,a).pipe((0,NI.catchError)(function(t){return 409===t.status&&r(e),"Unknown Error"===t.statusText&&o({status:401,message:"ERR_CERT_AUTHORITY_INVALID"}),(0,LI._)(t)})).subscribe(function(e){r(e.id)})})},e.prototype.createToken=function(e,t,n){var i=this;return new Promise(function(r,o){var s=JSON.stringify({}),a={headers:new Aw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions/"+e+"/connection",s,a).pipe((0,NI.catchError)(function(e){return o(e),(0,LI._)(e)})).subscribe(function(e){i.log.d(e),r(e.token)})})},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(Qw),ji(eI))},providedIn:"root"}),e}(),VI=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(HM){o(HM)}}function a(e){try{u(i.throw(e))}catch(HM){o(HM)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((i=i.apply(e,t||[])).next())})},jI=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},FI=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 VI(this,void 0,void 0,function(){return jI(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 VI(this,void 0,void 0,function(){var i;return jI(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 VI(this,void 0,void 0,function(){var i;return jI(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=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eI),ji(DI))},providedIn:"root"}),e}(),BI=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))},e}(),UI=n(51860),zI=["videoElement"];function WI(e,t){1&e&&da(0,"img",3)}var HI=function(){function e(){this.toggleVideoSizeEvent=new Ec}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===JM.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=vt({type:e,selectors:[["ov-video"]],viewQuery:function(e,t){var n;1&e&&jc(zI,5),2&e&&Vc(n=Bc())&&(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&&(oa(0,WI,1,0,"img",0),da(1,"video",1,2)),2&e&&(ua("ngIf",!(null!=t._streamManager&&null!=t._streamManager.stream&&t._streamManager.stream.videoActive)),Io(1),ua("muted",t.mutedSound),ia("id",t.streamManager&&t._streamManager.stream?"video-"+t._streamManager.stream.streamId:"video-undefined"))},directives:[bh],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:#0000005e;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:0px}#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}(),GI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasChat()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasChat",type:e,pure:!0}),e}(),qI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasAudio()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasAudio",type:e,pure:!0}),e}(),ZI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasVideo()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasVideo",type:e,pure:!0}),e}(),YI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.isAutoPublish()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"isAutoPublish",type:e,pure:!0}),e}(),QI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasScreenSharing()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasScreenSharing",type:e,pure:!0}),e}(),KI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFullscreen()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasFullscreen",type:e,pure:!0}),e}(),JI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasLayoutSpeaking()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasLayoutSpeaking",type:e,pure:!0}),e}(),XI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasExit()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasExit",type:e,pure:!0}),e}(),$I=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasToolbar()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasToolbar",type:e,pure:!0}),e}(),eA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFooter()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasFooter",type:e,pure:!0}),e}(),tA=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(HM){o(HM)}}function a(e){try{u(i.throw(e))}catch(HM){o(HM)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((i=i.apply(e,t||[])).next())})},nA=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},iA=["bodyCard"];function rA(e,t){if(1&e&&da(0,"ov-video",35),2&e){var n=Ca(),i=n.$implicit,r=n.index,o=Ca(2);ua("streamManager",i.streamManager)("className",o.localUsers.length>1&&0===r?"ovVideoSmall":"")}}function oA(e,t){1&e&&(la(0,"span"),Ya(1,"Oops! Camera and microphone are not available"),ha())}function sA(e,t){1&e&&(la(0,"span"),Ya(1,"Oops! Camera is not available"),ha())}function aA(e,t){1&e&&(la(0,"span"),Ya(1,"Oops! Microphone is not available"),ha())}function uA(e,t){if(1&e&&(la(0,"div",36),oa(1,oA,2,0,"span",29),oa(2,sA,2,0,"span",29),oa(3,aA,2,0,"span",29),ha()),2&e){var n=Ca(3);Io(1),ua("ngIf",!n.hasVideoDevices&&!n.hasAudioDevices),Io(1),ua("ngIf",!n.hasVideoDevices&&n.hasAudioDevices),Io(1),ua("ngIf",n.hasVideoDevices&&!n.hasAudioDevices)}}function cA(e,t){if(1&e&&(la(0,"div"),oa(1,rA,1,2,"ov-video",33),oa(2,uA,4,3,"div",34),ha()),2&e){var n=t.$implicit,i=Ca(2);Io(1),ua("ngIf",n.isCamera()&&i.hasVideoDevices||n.isScreen()),Io(1),ua("ngIf",n.isCamera()&&!i.hasVideoDevices)}}function lA(e,t){if(1&e){var n=va();la(0,"div",37),la(1,"button",38),ba("click",function(){return sn(n),Ca(2).captureAvatar()}),la(2,"mat-icon",39),Ya(3,"photo_camera"),ha(),la(4,"span",40),Ya(5,"Capture Avatar"),ha(),ha(),ha()}}function hA(e,t){1&e&&(la(0,"div",41),la(1,"h3"),Ya(2,"Avatar"),ha(),ha())}function dA(e,t){1&e&&(la(0,"div",47),la(1,"span"),Ya(2,"Press Avatar Button"),ha(),ha())}function fA(e,t){1&e&&da(0,"img",48),2&e&&ua("src",Ca(3).capturedAvatar,Mr)}function pA(e,t){1&e&&da(0,"img",48),2&e&&ua("src",Ca(3).openviduAvatar,Mr)}function vA(e,t){if(1&e){var n=va();la(0,"div",42),la(1,"div",43),la(2,"div",44),ba("click",function(){sn(n);var e=Ca(2);return e.onSelectAvatar(e.avatarTypeEnum.CAPTURED)}),oa(3,dA,3,0,"div",45),oa(4,fA,1,1,"img",46),ha(),la(5,"div",44),ba("click",function(){sn(n);var e=Ca(2);return e.onSelectAvatar(e.avatarTypeEnum.DEFAULT)}),oa(6,pA,1,1,"img",46),ha(),ha(),ha()}if(2&e){var i=Ca(2);Io(2),Da("background",i.avatarSelected===i.avatarTypeEnum.CAPTURED?"lightgreen":"transparent"),Io(1),ua("ngIf",!i.capturedAvatar),Io(1),ua("ngIf",i.capturedAvatar),Io(1),Da("background",i.avatarSelected===i.avatarTypeEnum.DEFAULT?"lightgreen":"transparent"),Io(1),ua("ngIf",i.openviduAvatar)}}function mA(e,t){1&e&&(la(0,"mat-error"),Ya(1," Nickname is "),la(2,"strong"),Ya(3,"required"),ha(),ha())}function gA(e,t){1&e&&(la(0,"mat-error"),Ya(1," Nickname is "),la(2,"strong"),Ya(3,"too long!"),ha(),ha())}function yA(e,t){1&e&&(la(0,"mat-icon",55),Ya(1,"mic"),ha())}function bA(e,t){1&e&&(la(0,"mat-icon",56),Ya(1,"mic_off"),ha())}function _A(e,t){if(1&e&&(la(0,"mat-option",57),Ya(1),ha()),2&e){var n=t.$implicit;ua("value",n.device),Io(1),Ka(" ",n.label," ")}}function kA(e,t){if(1&e){var n=va();la(0,"div",21),la(1,"div",22),la(2,"div",23),la(3,"button",49),ba("click",function(){return sn(n),Ca(2).toggleMic()}),oa(4,yA,2,0,"mat-icon",50),oa(5,bA,2,0,"mat-icon",51),ha(),ha(),la(6,"div",26),la(7,"mat-form-field",52),la(8,"mat-select",53),ba("selectionChange",function(e){return sn(n),Ca(2).onMicrophoneSelected(e)}),oa(9,_A,2,2,"mat-option",54),ha(),ha(),ha(),ha(),ha()}if(2&e){var i=Ca(2);Io(4),ua("ngIf",i.isAudioActive),Io(1),ua("ngIf",!i.isAudioActive),Io(3),ua("ngModel",i.isAudioActive&&i.micSelected?i.micSelected.device:"None"),Io(1),ua("ngForOf",i.microphones)}}function wA(e,t){1&e&&(la(0,"mat-icon",62),Ya(1,"videocam"),ha())}function SA(e,t){1&e&&(la(0,"mat-icon",63),Ya(1,"videocam_off"),ha())}function CA(e,t){if(1&e&&(la(0,"mat-option",57),Ya(1),ha()),2&e){var n=t.$implicit;ua("value",n.device),Io(1),Ka(" ",n.label," ")}}function EA(e,t){if(1&e){var n=va();la(0,"div",21),la(1,"div",22),la(2,"div",23),la(3,"button",58),ba("click",function(){return sn(n),Ca(2).toggleCam()}),oa(4,wA,2,0,"mat-icon",59),oa(5,SA,2,0,"mat-icon",60),ha(),ha(),la(6,"div",26),la(7,"mat-form-field",52),la(8,"mat-select",61),ba("selectionChange",function(e){return sn(n),Ca(2).onCameraSelected(e)}),oa(9,CA,2,2,"mat-option",54),ha(),ha(),ha(),ha(),ha()}if(2&e){var i=Ca(2);Io(4),ua("ngIf",i.isVideoActive),Io(1),ua("ngIf",!i.isVideoActive),Io(3),ua("ngModel",i.isVideoActive&&i.camSelected?i.camSelected.device:"None"),Io(1),ua("ngForOf",i.cameras)}}function OA(e,t){1&e&&(la(0,"mat-icon",68),Ya(1,"screen_share"),ha())}function xA(e,t){1&e&&(la(0,"mat-icon",69),Ya(1," stop_screen_share"),ha())}function TA(e,t){if(1&e){var n=va();la(0,"div",21),la(1,"div",22),la(2,"div",23),la(3,"button",64),ba("click",function(){return sn(n),Ca(2).toggleScreenShare()}),oa(4,OA,2,0,"mat-icon",65),oa(5,xA,2,0,"mat-icon",66),ha(),ha(),la(6,"div",26),la(7,"mat-form-field",52),da(8,"input",67),ha(),ha(),ha(),ha()}if(2&e){var i=Ca(2);Io(4),ua("ngIf",i.screenShareEnabled),Io(1),ua("ngIf",!i.screenShareEnabled),Io(3),ua("ngModel",i.screenShareEnabled?"Screen":"None")}}function PA(e,t){if(1&e){var n=va();la(0,"div",2),la(1,"div",3),la(2,"div",4),la(3,"div",5),la(4,"div",6),da(5,"img",7),ha(),la(6,"h3",8),Ya(7),ha(),la(8,"button",9),ba("click",function(){return sn(n),Ca().close()}),la(9,"mat-icon",10),Ya(10,"highlight_off"),ha(),ha(),ha(),la(11,"div",11,12),la(13,"div",13),la(14,"div",14),la(15,"div",15),oa(16,cA,3,2,"div",16),ha(),oa(17,lA,6,0,"div",17),ha(),la(18,"div",18),oa(19,hA,3,0,"div",19),oa(20,vA,7,7,"div",20),la(21,"div",21),la(22,"div",22),la(23,"div",23),la(24,"button",24),la(25,"mat-icon",25),Ya(26,"person"),ha(),ha(),ha(),la(27,"div",26),la(28,"form",27),la(29,"mat-form-field"),la(30,"input",28),ba("keypress",function(e){return sn(n),Ca().eventKeyPress(e)}),ha(),oa(31,mA,4,0,"mat-error",29),oa(32,gA,4,0,"mat-error",29),ha(),ha(),ha(),ha(),ha(),oa(33,kA,10,4,"div",30),wc(34,"hasAudio"),oa(35,EA,10,4,"div",30),wc(36,"hasVideo"),oa(37,TA,9,3,"div",30),wc(38,"hasScreenSharing"),ha(),ha(),ha(),la(39,"div",31),la(40,"button",32),ba("click",function(){return sn(n),Ca().joinSession()}),Ya(41,"JOIN"),ha(),ha(),ha(),ha(),ha()}if(2&e){var i=Ca();Io(7),Qa(i.mySessionId),Io(9),ua("ngForOf",i.localUsers),Io(1),ua("ngIf",i.hasVideoDevices),Io(2),ua("ngIf",i.hasVideoDevices),Io(1),ua("ngIf",i.hasVideoDevices),Io(10),ua("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Io(1),ua("ngIf",i.nicknameFormControl.hasError("required")),Io(1),ua("ngIf",i.nicknameFormControl.hasError("maxlength")),Io(1),ua("ngIf",i.hasAudioDevices&&Sc(34,12,i.ovSettings)),Io(2),ua("ngIf",i.hasVideoDevices&&Sc(36,14,i.ovSettings)),Io(2),ua("ngIf",Sc(38,16,i.ovSettings))}}var MA=function(e){return{display:e}},IA=function(){function e(e,t,n,i,r,o,s,a,u){this.route=e,this.utilsSrv=t,this.openViduWebRTCService=n,this.localUsersService=i,this.tokenService=r,this.oVDevicesService=o,this.loggerSrv=s,this.storageSrv=a,this.avatarService=u,this.join=new Ec,this.leaveSession=new Ec,this.publisherCreated=new Ec,this.isVideoActive=!0,this.isAudioActive=!0,this.localUsers=[],this.avatarTypeEnum=uI,this.nicknameFormControl=new kf("",[Rd.maxLength(25),Rd.required]),this.matcher=new BI,this.log=this.loggerSrv.get("RoomConfigComponent")}return e.prototype.beforeunloadHandler=function(){this.close()},e.prototype.ngOnInit=function(){return tA(this,void 0,void 0,function(){return nA(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 tA(this,void 0,void 0,function(){var t,n;return nA(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 tA(this,void 0,void 0,function(){var t,n;return nA(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(OI.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(OI.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=XM.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 tA(this,void 0,void 0,function(){var n,i,r,o;return nA(this,function(s){if(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===xI.FRONT),this.hasAudioDevices||this.hasVideoDevices)o=this.openViduWebRTCService.initPublisher(void 0,r),this.localUsersService.setWebcamPublisher(o),this.handlePublisherSuccess(o),this.handlePublisherError(o);else{if(this.localUsersService.setWebcamPublisher(null),this.ovSettings.isAutoPublish())return this.joinSession(),[2];this.showConfigCard=!0}return[2]})})},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.handlePublisherSuccess=function(e){var t=this;e.once("accessAllowed",function(){return tA(t,void 0,void 0,function(){var t,n,i,r,o,s,a,u;return nA(this,function(c){switch(c.label){case 0:return this.emitPublisher(e),this.ovSettings.isAutoPublish()?(this.joinSession(),[2]):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===(a=null===(s=null==e?void 0:e.stream)||void 0===s?void 0:s.getMediaStream())||void 0===a?void 0:a.getVideoTracks()[0])||void 0===u?void 0:u.label,this.oVDevicesService.setCamSelected(n)),this.setDevicesInfo(),c.label=2;case 2:return this.showConfigCard=!0,[2]}})})})},e.prototype.handlePublisherError=function(e){var t=this;e.once("accessDenied",function(e){var n;return e.name===UI.OpenViduErrorName.DEVICE_ALREADY_IN_USE?(t.log.w("Video device already in use. Disabling video device..."),t.hasVideoDevices=!1,t.oVDevicesService.disableVideoDevices(),t.initwebcamPublisher()):e.name===UI.OpenViduErrorName.DEVICE_ACCESS_DENIED?(n="Access to media devices was not allowed.",t.hasVideoDevices=!1,t.hasAudioDevices=!1,t.oVDevicesService.disableVideoDevices(),t.oVDevicesService.disableAudioDevices(),t.initwebcamPublisher()):(e.name===UI.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),void t.log.e(e.message))})},e.\u0275fac=function(t){return new(t||e)(aa(HT),aa(sI),aa(pI),aa(aI),aa(FI),aa(II),aa(eI),aa(TI),aa(cI))},e.\u0275cmp=vt({type:e,selectors:[["app-room-config"]],viewQuery:function(e,t){var n;1&e&&jc(iA,5),2&e&&Vc(n=Bc())&&(t.bodyCard=n.first)},hostBindings:function(e,t){1&e&&ba("beforeunload",function(){return t.beforeunloadHandler()},!1,jr)},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&&(la(0,"div",0),wc(1,"isAutoPublish"),oa(2,PA,42,18,"div",1),ha()),2&e&&(ua("ngStyle",bc(4,MA,Sc(1,2,t.ovSettings)?"none":"block")),Io(2),ua("ngIf",t.showConfigCard))},directives:[Oh,bO,bh,Ob,wS,JC,gh,MO,ox,ZO,lx,Mf,Xd,Of,_w,IS,xd,Jd,Lf,HI,uw,$S,Pf,vb],pipes:[YI,qI,ZI,QI],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}(),AA=function(e){return e.BIG="zoom_in",e.NORMAL="zoom_out",e}({}),RA=function(e){return e.BIG="fullscreen",e.NORMAL="fullscreen_exit",e}({}),LA=function(e,t){return{titleContent:!0,titleContentLight:e,titleContentDark:t}};function NA(e,t){if(1&e&&(la(0,"div",3),la(1,"span",4),Ya(2),ha(),ha()),2&e){var n=Ca();ua("ngClass",(i=2,r=LA,o=n.lightTheme,s=!n.lightTheme,function(e,t,n,i,r,o,s){var a=t+n;return function(e,t,n,i){var r=na(e,t,n);return na(e,t+1,i)||r}(e,a,r,o)?ta(e,a+2,s?i.call(s,r,o):i(r,o)):_c(e,a+2)}(rn(),pn(),i,r,o,s,a))),Io(2),Qa(n.sessionId)}var i,r,o,s,a}var DA=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({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&&(la(0,"div",0),la(1,"a"),da(2,"img",1),ha(),oa(3,NA,3,5,"div",2),ha()),2&e&&(Io(2),ua("src",t.logoUrl,Mr),Io(1),ua("ngIf",!t.compact&&t.sessionId))},directives:[bh,vh,dO],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 VA(e,t){1&e&&(la(0,"mat-icon",14),Ya(1,"mic"),ha())}function jA(e,t){1&e&&(la(0,"mat-icon",15),Ya(1,"mic_off"),ha())}function FA(e,t){if(1&e){var n=va();la(0,"button",11),ba("click",function(){return sn(n),Ca().toggleMicrophone()}),oa(1,VA,2,0,"mat-icon",12),oa(2,jA,2,0,"mat-icon",13),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(1),ua("ngIf",i.isWebcamAudioEnabled),Io(1),ua("ngIf",!i.isWebcamAudioEnabled)}}function BA(e,t){1&e&&(la(0,"mat-icon",19),Ya(1,"videocam"),ha())}function UA(e,t){1&e&&(la(0,"mat-icon",20),Ya(1,"videocam_off"),ha())}function zA(e,t){if(1&e){var n=va();la(0,"button",16),ba("click",function(){return sn(n),Ca().toggleCamera()}),oa(1,BA,2,0,"mat-icon",17),oa(2,UA,2,0,"mat-icon",18),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(1),ua("ngIf",i.isWebcamVideoEnabled),Io(1),ua("ngIf",!i.isWebcamVideoEnabled)}}function WA(e,t){1&e&&(la(0,"mat-icon",24),Ya(1,"stop_screen_share"),ha())}function HA(e,t){1&e&&(la(0,"mat-icon",25),Ya(1,"screen_share"),ha())}function GA(e,t){if(1&e){var n=va();la(0,"button",21),ba("click",function(){return sn(n),Ca().toggleScreenShare()}),oa(1,WA,2,0,"mat-icon",22),oa(2,HA,2,0,"mat-icon",23),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(1),ua("ngIf",!i.isScreenShareEnabled),Io(1),ua("ngIf",i.isScreenShareEnabled)}}function qA(e,t){if(1&e){var n=va();la(0,"button",26),ba("click",function(){return sn(n),Ca().toggleFullscreen()}),la(1,"mat-icon",27),Ya(2),ha(),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(2),Qa(i.fullscreenIcon)}}function ZA(e,t){1&e&&(la(0,"mat-icon",30),Ya(1,"voice_over_off"),ha())}function YA(e,t){1&e&&(la(0,"mat-icon",31),Ya(1,"record_voice_over"),ha())}function QA(e,t){if(1&e){var n=va();la(0,"button",26),ba("click",function(){return sn(n),Ca().toggleSpeakerLayout()}),oa(1,ZA,2,0,"mat-icon",28),oa(2,YA,2,0,"mat-icon",29),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(1),ua("ngIf",!i.isAutoLayout),Io(1),ua("ngIf",i.isAutoLayout)}}function KA(e,t){if(1&e){var n=va();la(0,"button",32),ba("click",function(){return sn(n),Ca().leaveSession()}),la(1,"mat-icon",33),Ya(2,"power_settings_new"),ha(),ha()}}function JA(e,t){if(1&e){var n=va();la(0,"button",26),ba("click",function(){return sn(n),Ca().toggleChat()}),la(1,"mat-icon",34),Ya(2,"chat"),ha(),ha()}if(2&e){var i=Ca();ua("disabled",i.isConnectionLost),Io(1),Ta("matBadge",i.newMessagesNum),ua("matBadgeHidden",0===i.newMessagesNum)}}var XA,$A=function(){function e(e,t,n,i){this.utilsSrv=e,this.chatService=t,this.tokenService=n,this.localUsersService=i,this.micButtonClicked=new Ec,this.camButtonClicked=new Ec,this.screenShareClicked=new Ec,this.layoutButtonClicked=new Ec,this.leaveSessionButtonClicked=new Ec,this.fullscreenIcon=RA.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=RA.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===RA.BIG?RA.NORMAL:RA.BIG},e.\u0275fac=function(t){return new(t||e)(aa(sI),aa(gI),aa(FI),aa(aI))},e.\u0275cmp=vt({type:e,selectors:[["app-toolbar"]],hostBindings:function(e,t){1&e&&ba("resize",function(e){return t.sizeChange(e)},!1,jr)},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&&(la(0,"mat-toolbar",0),la(1,"div",1),da(2,"app-toolbar-logo",2),ha(),la(3,"div",3),la(4,"div",4),oa(5,FA,3,3,"button",5),wc(6,"hasAudio"),oa(7,zA,3,3,"button",6),wc(8,"hasVideo"),oa(9,GA,3,3,"button",7),wc(10,"hasScreenSharing"),oa(11,qA,3,2,"button",8),wc(12,"hasFullscreen"),oa(13,QA,3,3,"button",8),wc(14,"hasLayoutSpeaking"),oa(15,KA,3,0,"button",9),wc(16,"hasExit"),ha(),ha(),la(17,"div",10),oa(18,JA,3,3,"button",8),wc(19,"hasChat"),ha(),ha()),2&e&&(Va("headerLight",t.lightTheme),Io(2),ua("lightTheme",t.lightTheme)("sessionId",t.mySessionId)("compact",t.compact)("logoUrl",t.logoUrl),Io(3),ua("ngIf",t.hasAudioDevices&&Sc(6,13,t.ovSettings)),Io(2),ua("ngIf",!t.ovSettings||t.hasVideoDevices&&Sc(8,15,t.ovSettings)),Io(2),ua("ngIf",Sc(10,17,t.ovSettings)),Io(2),ua("ngIf",Sc(12,19,t.ovSettings)),Io(2),ua("ngIf",Sc(14,21,t.ovSettings)),Io(2),ua("ngIf",Sc(16,23,t.ovSettings)),Io(3),ua("ngIf",Sc(19,25,t.ovSettings)))},directives:[PC,MO,lx,DO,ZO,DA,nx,bh,Ob,wS,JC,_b],pipes:[qI,ZI,QI,KI,JI,XI,GI],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}(),eR=(XA=function(e,t){return(XA=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){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}XA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tR=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 eR(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=Ve({token:t,factory:t.\u0275fac=function(){var e;return function(n){return(e||(e=vi(t)))(n||t)}}()}),t}(D_),nR=function(){function e(e){this.cdkOverlayModel=e}return e.prototype.setSelector=function(e){this.cdkOverlayModel.setSelector(e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(tR))},providedIn:"root"}),e}(),iR=["streamComponent"],rR=["menu"],oR=["nicknameInput"];function sR(e,t){1&e&&(la(0,"span"),Ya(1," (edit)"),ha())}function aR(e,t){if(1&e){var n=va();la(0,"div",10),ba("click",function(){return sn(n),Ca(2).toggleNicknameForm()}),la(1,"span",11),Ya(2),ha(),oa(3,sR,2,0,"span",12),ha()}if(2&e){var i=Ca(2);Io(2),Qa(i._user.nickname),Io(1),ua("ngIf",i._user.local||i._user.streamManager&&!(null!=i._user.streamManager&&i._user.streamManager.remote))}}function uR(e,t){1&e&&(la(0,"mat-error"),Ya(1," Nickname is "),la(2,"strong"),Ya(3,"required"),ha(),ha())}function cR(e,t){1&e&&(la(0,"mat-error"),Ya(1," Nickname is "),la(2,"strong"),Ya(3,"too long!"),ha(),ha())}function lR(e,t){if(1&e){var n=va();la(0,"div",13),la(1,"button",14),ba("click",function(){return sn(n),Ca(2).toggleNicknameForm()}),la(2,"mat-icon",15),Ya(3,"highlight_off"),ha(),ha(),la(4,"form",16),la(5,"mat-form-field",17),la(6,"input",18,19),ba("keypress",function(e){return sn(n),Ca(2).eventKeyPress(e)}),ha(),oa(8,uR,4,0,"mat-error",12),oa(9,cR,4,0,"mat-error",12),ha(),ha(),ha()}if(2&e){var i=Ca(2);Va("fullscreen",i.isFullscreen),Io(6),Pa("placeholder","Nick: ",i._user.nickname,""),ua("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Io(2),ua("ngIf",i.nicknameFormControl.hasError("required")),Io(1),ua("ngIf",i.nicknameFormControl.hasError("maxlength"))}}function hR(e,t){1&e&&(la(0,"div",20),la(1,"mat-icon"),Ya(2,"mic_off"),ha(),ha())}function dR(e,t){1&e&&(la(0,"span"),Ya(1,"Zoom out"),ha())}function fR(e,t){1&e&&(la(0,"span"),Ya(1,"Zoom in"),ha())}function pR(e,t){if(1&e){var n=va();la(0,"button",30),ba("click",function(){return sn(n),Ca(3).toggleVideoSize()}),la(1,"mat-icon"),Ya(2),ha(),oa(3,dR,2,0,"span",12),oa(4,fR,2,0,"span",12),ha()}if(2&e){var i=Ca(3);Io(2),Qa(i.videoSizeIcon),Io(1),ua("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),Io(1),ua("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG)}}function vR(e,t){1&e&&(la(0,"mat-icon"),Ya(1,"volume_up"),ha())}function mR(e,t){1&e&&(la(0,"span"),Ya(1,"Mute sound"),ha())}function gR(e,t){1&e&&(la(0,"mat-icon"),Ya(1,"volume_off"),ha())}function yR(e,t){1&e&&(la(0,"span"),Ya(1,"Unmute sound"),ha())}function bR(e,t){if(1&e){var n=va();la(0,"button",31),ba("click",function(){return sn(n),Ca(3).toggleSound()}),oa(1,vR,2,0,"mat-icon",12),oa(2,mR,2,0,"span",12),oa(3,gR,2,0,"mat-icon",12),oa(4,yR,2,0,"span",12),ha()}if(2&e){var i=Ca(3);Io(1),ua("ngIf",!i.mutedSound),Io(1),ua("ngIf",!i.mutedSound),Io(1),ua("ngIf",i.mutedSound),Io(1),ua("ngIf",i.mutedSound)}}function _R(e,t){1&e&&(la(0,"span"),Ya(1,"Exit fullscreen"),ha())}function kR(e,t){1&e&&(la(0,"span"),Ya(1,"Go to fullscreen"),ha())}function wR(e,t){if(1&e){var n=va();la(0,"button",32),ba("click",function(){return sn(n),Ca(3).toggleFullscreen()}),la(1,"mat-icon"),Ya(2),ha(),oa(3,_R,2,0,"span",12),oa(4,kR,2,0,"span",12),ha()}if(2&e){var i=Ca(3);Io(2),Qa(i.fullscreenIcon),Io(1),ua("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.NORMAL),Io(1),ua("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.BIG)}}function SR(e,t){if(1&e){var n=va();la(0,"button",33),ba("click",function(){return sn(n),Ca(3).replaceScreenTrack()}),la(1,"mat-icon"),Ya(2,"picture_in_picture"),ha(),la(3,"span"),Ya(4,"Replace screen"),ha(),ha()}}function CR(e,t){if(1&e){var n=va();la(0,"div",21),la(1,"button",22),ba("click",function(e){return sn(n),Ca(2).toggleVideoMenu(e)}),la(2,"mat-icon"),Ya(3,"more_vert"),ha(),ha(),da(4,"span",23),la(5,"mat-menu",24,25),oa(7,pR,5,3,"button",26),oa(8,bR,5,4,"button",27),oa(9,wR,5,3,"button",28),oa(10,SR,5,0,"button",29),ha(),ha()}if(2&e){var i=sa(6),r=Ca(2);Io(4),ua("matMenuTriggerFor",i),Io(3),ua("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Io(1),ua("ngIf",null==r._user.streamManager?null:r._user.streamManager.remote),Io(1),ua("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Io(1),ua("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 ER(e,t){if(1&e){var n=va();la(0,"div",1,2),ba("dblclick",function(){return sn(n),Ca().toggleVideoSize()}),la(2,"div",3),oa(3,aR,4,2,"div",4),oa(4,lR,10,7,"div",5),ha(),la(5,"ov-video",6),ba("toggleVideoSizeEvent",function(e){return sn(n),Ca().toggleVideoSize(e)}),ha(),la(6,"div",7),oa(7,hR,3,0,"div",8),ha(),oa(8,CR,11,5,"div",9),ha()}if(2&e){var i=Ca();ua("id","container-"+(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.streamId)),Io(2),Va("fullscreen",i.isFullscreen),Io(1),ua("ngIf",!i.toggleNickname),Io(1),ua("ngIf",i.toggleNickname&&!(null!=i._user.streamManager&&i._user.streamManager.remote)),Io(1),ua("streamManager",i._user.streamManager)("mutedSound",i.mutedSound),Io(2),ua("ngIf",!(null!=i._user.streamManager&&null!=i._user.streamManager.stream&&i._user.streamManager.stream.audioActive)),Io(1),ua("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 OR=function(){function e(e,t){this.utilsSrv=e,this.cdkSrv=t,this.videoSizeIconEnum=AA,this.videoFullscreenIconEnum=RA,this.videoTypeEnum=JM,this.videoSizeIcon=AA.BIG,this.fullscreenIcon=RA.BIG,this.nicknameClicked=new Ec,this.replaceScreenTrackClicked=new Ec,this.toggleVideoSizeClicked=new Ec,this.ESCAPE_KEY="Escape"}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=AA.BIG)},e.prototype.onFullscreenHandler=function(e){this.toggleFullscreenIcon()},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 kf(this._user.getNickname(),[Rd.maxLength(25),Rd.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 BI},e.prototype.ngOnDestroy=function(){this.cdkSrv.setSelector("body")},e.prototype.toggleVideoSize=function(e){var t=this.utilsSrv.getHTMLElementByClassName(this.streamComponent.element.nativeElement,nI.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)},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?AA.NORMAL:AA.BIG},e.prototype.toggleFullscreenIcon=function(){this.fullscreenIcon=this.fullscreenIcon===RA.BIG?RA.NORMAL:RA.BIG},e.\u0275fac=function(t){return new(t||e)(aa(sI),aa(nR))},e.\u0275cmp=vt({type:e,selectors:[["stream-component"]],viewQuery:function(e,t){if(1&e&&(jc(iR,5,oc),jc(Bk,5),jc(rR,5),jc(oR,5)),2&e){var n=void 0;Vc(n=Bc())&&(t.streamComponent=n.first),Vc(n=Bc())&&(t.menuTrigger=n.first),Vc(n=Bc())&&(t.menu=n.first),Vc(n=Bc())&&(t.nicknameInputElement=n.first)}},hostBindings:function(e,t){1&e&&ba("resize",function(e){return t.sizeChange(e)},!1,jr)("fullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("webkitfullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("mozfullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("MSFullscreenChange",function(e){return t.onFullscreenHandler(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&&oa(0,ER,9,9,"div",0),2&e&&ua("ngIf",t._user)},directives:[bh,HI,Ob,wS,JC,Mf,Xd,Of,_w,IS,xd,Jd,Lf,uw,Bk,Dk,Ak],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:#0000005e;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:0px}#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}(),xR=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=wt({name:"tooltipList",type:e,pure:!0}),e}(),TR=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(JM.SCREEN)||t.participantsNames.push(e.nickname)}),this.participantsNames=function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}([],this.participantsNames)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({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&&(la(0,"mat-toolbar",0),la(1,"div",1),la(2,"button",2),la(3,"mat-icon",3),Ya(4,"people"),ha(),ha(),ha(),la(5,"div",4),la(6,"span",5),Ya(7),wc(8,"tooltipList"),ha(),ha(),ha()),2&e&&(Va("headerLight",t.lightTheme),Io(3),Ta("matBadge",null==t.participantsNames?null:t.participantsNames.length),Io(4),Qa(Sc(8,4,t.participantsNames)))},directives:[PC,MO,lx,DO,Ob,JC,wS,_b,ZO,nx],pipes:[xR],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}(),PR=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{u(i.next(e))}catch(HM){o(HM)}}function a(e){try{u(i.throw(e))}catch(HM){o(HM)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((i=i.apply(e,t||[])).next())})},MR=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(HM){o=[6,HM],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},IR=function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e},AR=["chatComponent"],RR=["sidenav"];function LR(e,t){if(1&e){var n=va();la(0,"app-room-config",4),ba("join",function(){return sn(n),Ca(2).onConfigRoomJoin()})("leaveSession",function(){return sn(n),Ca(2).leaveSession()})("publisherCreated",function(e){return sn(n),Ca(2).emitPublisher(e)}),ha()}if(2&e){var i=Ca(2);ua("ovSettings",i.ovSettings)("externalConfig",i.externalConfig)}}function NR(e,t){1&e&&da(0,"div",14)}function DR(e,t){if(1&e){var n=va();la(0,"app-toolbar",15),ba("camButtonClicked",function(){return sn(n),Ca(3).toggleCam()})("micButtonClicked",function(){return sn(n),Ca(3).toggleMic()})("screenShareClicked",function(){return sn(n),Ca(3).toggleScreenShare()})("layoutButtonClicked",function(){return sn(n),Ca(3).toggleSpeakerLayout()})("leaveSessionButtonClicked",function(){return sn(n),Ca(3).leaveSession()}),ha()}if(2&e){var i=Ca(3);ua("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 VR(e,t){if(1&e&&(la(0,"mat-sidenav",16,17),da(2,"chat-component",18,19),ha()),2&e){var n=Ca(3);Va("boundsLight",n.lightTheme),Ta("mode",n.sidenavMode),Io(2),ua("lightTheme",n.lightTheme)}}var jR=function(e){return{OV_small:e}};function FR(e,t){if(1&e){var n=va();la(0,"div",20),la(1,"stream-component",21),ba("nicknameClicked",function(e){return sn(n),Ca(3).onNicknameUpdate(e)})("replaceScreenTrackClicked",function(e){return sn(n),Ca(3).onReplaceScreenTrack(e)})("toggleVideoSizeClicked",function(e){return sn(n),Ca(3).onToggleVideoSize(e)}),ha(),ha()}if(2&e){var i=t.$implicit;ua("ngClass",bc(3,jR,!(null!=i&&null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Io(1),ua("user",i)("videoSizeBig",i.videoSizeBig)}}function BR(e,t){if(1&e){var n=va();la(0,"div",22),la(1,"stream-component",23),ba("toggleVideoSizeClicked",function(e){return sn(n),Ca(3).onToggleVideoSize(e)}),ha(),ha()}if(2&e){var i=t.$implicit;ua("ngClass",bc(3,jR,!(null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Io(1),ua("user",i)("videoSizeBig",i.videoSizeBig)}}function UR(e,t){if(1&e&&da(0,"app-footer",24),2&e){var n=Ca(3);ua("lightTheme",n.lightTheme)("participants",n.participantsNameList)}}function zR(e,t){if(1&e&&(la(0,"div"),oa(1,NR,1,0,"div",5),oa(2,DR,1,8,"app-toolbar",6),wc(3,"hasToolbar"),la(4,"mat-sidenav-container",7),oa(5,VR,4,4,"mat-sidenav",8),wc(6,"hasChat"),la(7,"mat-sidenav-content",9),la(8,"div",10),wc(9,"hasToolbar"),wc(10,"hasFooter"),oa(11,FR,2,5,"div",11),oa(12,BR,2,5,"div",12),ha(),ha(),ha(),oa(13,UR,1,2,"app-footer",13),wc(14,"hasFooter"),ha()),2&e){var n=Ca(2);Io(1),ua("ngIf",n.isConnectionLost),Io(1),ua("ngIf",Sc(3,14,n.ovSettings)),Io(2),Va("boundsLight",n.lightTheme),Io(1),ua("ngIf",Sc(6,16,n.ovSettings)),Io(3),Da("top",Sc(9,18,n.ovSettings)?"40px":"0px")("bottom",Sc(10,20,n.ovSettings)?"25px":"0px"),Va("boundsLight",n.lightTheme),Io(3),ua("ngForOf",n.localUsers),Io(1),ua("ngForOf",n.remoteUsers),Io(1),ua("ngIf",Sc(14,22,n.ovSettings))}}function WR(e,t){if(1&e&&(la(0,"div",1),oa(1,LR,1,2,"app-room-config",2),oa(2,zR,15,24,"div",3),ha()),2&e){var n=Ca();Va("boundsLight",n.lightTheme),Io(1),ua("ngIf",n.showConfigRoomCard),Io(1),ua("ngIf",n.localUsers&&n.localUsers.length>0)}}var HR=function(){function e(e,t,n,i,r,o,s,a,u,c,l){this.router=e,this.utilsSrv=t,this.remoteUsersService=n,this.openViduWebRTCService=i,this.localUsersService=r,this.oVDevicesService=o,this.loggerSrv=s,this.chatService=a,this.storageSrv=u,this.oVLayout=c,this.tokenService=l,this._session=new Ec,this._publisher=new Ec,this._error=new Ec,this._joinSession=new Ec,this._leaveSession=new Ec,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 PR(this,void 0,void 0,function(){return MR(this,function(t){return this.localUsersService.initialize(),this.openViduWebRTCService.initialize(),this.lightTheme=(null===(e=this.externalConfig)||void 0===e?void 0:e.getTheme())===CI.LIGHT,this.ovSettings=this.externalConfig?this.externalConfig.getOvSettings():new SI,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 PR(this,void 0,void 0,function(){return MR(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(OI.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 PR(this,void 0,void 0,function(){var e,t;return MR(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 PR(this,void 0,void 0,function(){var e,t,n=this;return MR(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 PR(n,void 0,void 0,function(){var t=this;return MR(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 PR(this,void 0,void 0,function(){var e;return MR(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 PR(this,void 0,void 0,function(){var e;return MR(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 PR(this,void 0,void 0,function(){var e;return MR(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("_"+JM.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("_"+JM.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,nI.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=XM.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=IR([],t),e.oVLayout.update()}),this.remoteUserNameSubscription=this.remoteUsersService.remoteUserNameList.subscribe(function(t){e.participantsNameList=IR([],t)})},e.\u0275fac=function(t){return new(t||e)(aa(yM),aa(sI),aa(lI),aa(pI),aa(aI),aa(II),aa(eI),aa(gI),aa(TI),aa(RI),aa(FI))},e.\u0275cmp=vt({type:e,selectors:[["app-video-room"]],viewQuery:function(e,t){if(1&e&&(jc(AR,5),jc(RR,5)),2&e){var n=void 0;Vc(n=Bc())&&(t.chatComponent=n.first),Vc(n=Bc())&&(t.chatSidenav=n.first)}},hostBindings:function(e,t){1&e&&ba("beforeunload",function(){return t.beforeunloadHandler()},!1,jr)("resize",function(){return t.sizeChange()},!1,jr)},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&&oa(0,WR,3,4,"div",0),2&e&&ua("ngIf",!!t.ovSettings)},directives:[bh,IA,wC,_C,gh,$A,kC,wI,vh,dO,OR,TR],pipes:[$I,GI,eA],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:80%;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}(),GR=[{path:"",component:KM},{path:":roomName",component:HR}],qR=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[IM.forRoot(GR,{useHash:!0})],IM]}),e}(),ZR=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){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),YR=function(e){function t(){var t=e.call(this)||this;return t.NAME="WebComponent",t}return ZR(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}(EI),QR=["videoRoom"];function KR(e,t){if(1&e){var n=va();la(0,"app-video-room",1,2),ba("_error",function(e){return sn(n),Ca().emitErrorEvent(e)})("_session",function(e){return sn(n),Ca().emitSession(e)})("_publisher",function(e){return sn(n),Ca().emitPublisher(e)})("_leaveSession",function(e){return sn(n),Ca().emitLeaveSessionEvent(e)})("_joinSession",function(e){return sn(n),Ca().emitJoinSessionEvent(e)}),ha()}2&e&&ua("externalConfig",Ca().webComponent)}var JR=function(){function e(e){this.loggerSrv=e,this.sessionCreated=new Ec,this.publisherCreated=new Ec,this.error=new Ec,this.joinSession=new Ec,this.leaveSession=new Ec,this.display=!1,this.webComponent=new YR,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)(aa(eI))},e.\u0275cmp=vt({type:e,selectors:[["app-web-component"]],viewQuery:function(e,t){var n;1&e&&jc(QR,5),2&e&&Vc(n=Bc())&&(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&&oa(0,KR,2,1,"app-video-room",0),2&e&&ua("ngIf",t.display)},directives:[bh,HR],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),e}(),XR=function(){function e(e){this.injector=e;var t=function(e,t){var n=function(e,t){return t.get(yu).resolveComponentFactory(e).inputs}(e,t.injector),i=t.strategyFactory||new mE(e,t.injector),r=function(e){var t={};return e.forEach(function(e){var n,i=e.propName;t[(n=e.templateName,n.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}))]=i}),t}(n),o=function(e){c(u,e);var o=p(u);function u(e){var t;return a(this,u),(t=o.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}(yE);return o.observedAttributes=Object.keys(r),n.forEach(function(e){var t=e.propName;Object.defineProperty(o.prototype,t,{get:function(){return this.ngElementStrategy.getInputValue(t)},set:function(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})}),o}(JR,{injector:this.injector});customElements.define("openvidu-webcomponent",t)}return e.prototype.ngDoBootstrap=function(){},e.\u0275fac=function(t){return new(t||e)(ji(Ws))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[DI,pI,aI,sI,lI,II,eI,gI,mI,TI,tR,{provide:D_,useClass:tR}],imports:[[jf,Ff,bd,Bm,xb,Tb,MC,SS,AS,kw,bk,eE,kb,ww,eC,gb,RS,CC,SC,hE,qR,uS,kx,zk]]}),e}();(function(){if(Sl)throw new Error("Cannot enable prod mode after platform setup.");wl=!1})(),gd().bootstrapModule(XR).catch(function(e){return console.log(e)})},48798:function(e){"use strict";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"]')},39642:function(e){"use strict";e.exports=[]},5713:function(e){"use strict";e.exports=JSON.parse('{"_from":"openvidu-browser@2.20.0","_id":"openvidu-browser@2.20.0","_inBundle":false,"_integrity":"sha512-ZlCF2B91Mix/z6NsmarLZomaycyadY8I3giV0NRMo5vWfhKcGLREKPCX979G+UJQxn7qGiq31/2dJ29bpf7hBg==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.20.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.20.0","saveSpec":null,"fetchSpec":"2.20.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.20.0.tgz","_shasum":"21767bb2ac995e311f69b15744af25657de5bccf","_spec":"openvidu-browser@2.20.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":"15.12.2","@types/platform":"1.3.3","browserify":"17.0.0","grunt":"1.4.1","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.0.1","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.7.0","tsify":"5.0.4","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 --target es5 --lib dom,es5,es2015.promise,scripthost","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","version":"2.20.0"}')},60306:function(e){"use strict";e.exports={i8:"2.20.0"}}},function(e){"use strict";e(e.s=48711)}]);