4 lines
1.3 MiB
4 lines
1.3 MiB
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"++zV":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);c(e,t,i(n),r)}})},"+MLx":function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"/GqU":function(e,t,n){var r=n("RK3t"),o=n("HYAF");e.exports=function(e){return r(o(e))}},"0BK2":function(e,t){e.exports={}},"0Dky":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0GbY":function(e,t,n){var r=n("Qo9l"),o=n("2oRo"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},"0TWp":function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var c=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return Z.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return R},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(P.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var c="Zone:"+o;n(c),P[o]=i(e,t,j),r(c,c)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,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!==k||e.type!==D&&e.type!==x){var r=e.state!=E;r&&e._transitionTo(E,T),e.runCount++;var o=R;R=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!==k&&e.state!==O&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(k,E,k))),Z=Z.parent,R=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,k);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(O,_,k),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(T,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new f(S,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new f(x,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new f(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(O,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(k,w),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t}();c.__symbol__=i;var s,u={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:u,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=u,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 s=this;this.invoke=n===D&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,s,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(k,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==k&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(t){if(0===z&&0===d.length)if(s||e[h]&&(s=e[h].resolve(0)),s){var n=s[v];n||(n=s.then),n.call(s,b)}else e[p](b,0);t&&d.push(t)}function b(){if(!g){for(g=!0;d.length;){var e=d;d=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){j.onUnhandledError(r)}}}j.microtaskDrainDone(),g=!1}}var m={name:"NO ZONE"},k="notScheduled",_="scheduling",T="scheduled",E="running",w="canceling",O="unknown",S="microTask",x="macroTask",D="eventTask",P={},j={symbol:i,currentZoneFrame:function(){return Z},onUnhandledError:I,microtaskDrainDone:I,scheduleMicroTask:y,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:I,patchMethod:function(){return I},bindArguments:function(){return[]},patchThen:function(){return I},patchMacroTask:function(){return I},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(s=e.resolve(0))},patchEventPrototype:function(){return I},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return I},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return I},wrapWithCurrentZone:function(){return I},filterProperties:function(){return[]},attachOriginToPatched:function(){return I},_redefineProperty:function(){return I},patchCallbacks:function(){return I}},Z={parent:null,zone:new c(null,null)},R=null,z=0;function I(){}r("Zone","Zone"),e.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),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")],s=i("Promise"),u=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(){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 S.reject(e)}var v=i("state"),d=i("value"),g=i("finally"),y=i("parentPromiseValue"),b=i("parentPromiseState");function m(e,t){return function(n){try{_(e,t,n)}catch(r){_(e,!1,r)}}}var k=i("currentTaskTrace");function _(e,r,i){var s,u,l=(s=!1,function(e){return function(){s||(s=!0,e.apply(null,arguments))}});if(e===i)throw new TypeError("Promise resolved with itself");if(null===e[v]){var f=null;try{"object"!=typeof i&&"function"!=typeof i||(f=i&&i.then)}catch(x){return l((function(){_(e,!1,x)}))(),e}if(!1!==r&&i instanceof S&&i.hasOwnProperty(v)&&i.hasOwnProperty(d)&&null!==i[v])E(i),_(e,i[v],i[d]);else if(!1!==r&&"function"==typeof f)try{f.call(i,l(m(e,r)),l(m(e,!1)))}catch(x){l((function(){_(e,!1,x)}))()}else{e[v]=r;var p=e[d];if(e[d]=i,e[g]===g&&!0===r&&(e[v]=e[b],e[d]=e[y]),!1===r&&i instanceof Error){var h=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;h&&o(i,k,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var T=0;T<p.length;)w(e,p[T++],p[T++],p[T++],p[T++]);if(0==p.length&&0==r){e[v]=0;var O=i;if(!c)try{throw new Error("Uncaught (in promise): "+((u=i)&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u))+(i&&i.stack?"\n"+i.stack:""))}catch(x){O=x}O.rejection=i,O.promise=e,O.zone=t.current,O.task=t.currentTask,a.push(O),n.scheduleMicroTask()}}}return e}var T=i("rejectionHandledHandler");function E(e){if(0===e[v]){try{var n=t[T];n&&"function"==typeof n&&n.call(this,{rejection:e[d],promise:e})}catch(o){}e[v]=!1;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function w(e,t,n,r,o){E(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]);_(n,!0,c)}catch(s){_(n,!1,s)}}),n)}var O=function(){},S=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[v]=null,this[d]=[];try{t&&t(m(this,!0),m(this,!1))}catch(n){_(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return _(new this(null),!0,e)},e.reject=function(e){return _(new this(null),!1,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 s=c[a];f(s)||(s=this.resolve(s)),s.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=[],s=function(e){f(e)||(e=u.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(s){r(s)}i++,a++},u=this,l=0,p=e;l<p.length;l++)s(p[l]);return 0==(i-=2)&&n(c),o},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!0,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(O),a=t.current;return null==this[v]?this[d].push(a,i,n,r):w(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(O);o[g]=g;var i=t.current;return null==this[v]?this[d].push(i,o,n,n):w(this,i,o,n,n),o},e}();S.resolve=S.resolve,S.reject=S.reject,S.race=S.race,S.all=S.all;var x=e[s]=e.Promise,D=t.__symbol__("ZoneAwarePromise"),P=r(e,"Promise");P&&!P.configurable||(P&&delete P.writable,P&&delete P.value,P||(P={configurable:!0,enumerable:!0}),P.get=function(){return e[D]?e[D]:e[s]},P.set=function(t){t===S?e[D]=t:(e[s]=t,t.prototype[u]||R(t),n.setNativePromise(t))},o(e,"Promise",P)),e.Promise=S;var j,Z=i("thenPatched");function R(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[u]=o,e.prototype.then=function(e,t){var n=this;return new S((function(e,t){o.call(n,e,t)})).then(e,t)},e[Z]=!0}}if(n.patchThen=R,x){R(x);var z=e.fetch;"function"==typeof z&&(e[n.symbol("fetch")]=z,e.fetch=(j=z,function(){var e=j.apply(this,arguments);if(e instanceof S)return e;var t=e.constructor;return t[Z]||R(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,S}));var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),c=Zone.__symbol__("");function s(e,t){return Zone.current.wrap(e,t)}function u(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var l=Zone.__symbol__,f="undefined"!=typeof window,p=f?window:void 0,h=f&&p||"object"==typeof self&&self||global,v=[null];function d(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=s(e[n],t+"_"+n));return e}function g(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,b=!("nw"in h)&&void 0!==h.process&&"[object process]"==={}.toString.call(h.process),m=!b&&!y&&!(!f||!p.HTMLElement),k=void 0!==h.process&&"[object process]"==={}.toString.call(h.process)&&!y&&!(!f||!p.HTMLElement),_={},T=function(e){if(e=e||h.event){var t=_[e.type];t||(t=_[e.type]=l("ON_PROPERTY"+e.type));var n,r=this||e.target||h,o=r[t];if(m&&r===p&&"error"===e.type){var i=e;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&e.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||e.preventDefault();return n}};function E(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=l("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,s=i.set,u=r.substr(2),f=_[u];f||(f=_[u]=l("ON_PROPERTY"+u)),i.set=function(e){var t=this;t||n!==h||(t=h),t&&(t[f]&&t.removeEventListener(u,T),s&&s.apply(t,v),"function"==typeof e?(t[f]=e,t.addEventListener(u,T,!1)):t[f]=null)},i.get=function(){var e=this;if(e||n!==h||(e=h),!e)return null;var t=e[f];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 w(e,t,n){if(t)for(var r=0;r<t.length;r++)E(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++)E(e,o[a],n)}}var O=l("originalInstance");function S(e){var n=h[e];if(n){h[l(e)]=n,h[e]=function(){var t=d(arguments,e);switch(t.length){case 0:this[O]=new n;break;case 1:this[O]=new n(t[0]);break;case 2:this[O]=new n(t[0],t[1]);break;case 3:this[O]=new n(t[0],t[1],t[2]);break;case 4:this[O]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},P(h[e],n);var r,o=new n((function(){}));for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?h[e].prototype[n]=function(){return this[O][n].apply(this[O],arguments)}:t(h[e].prototype,n,{set:function(t){"function"==typeof t?(this[O][n]=s(t,e+"."+n),P(this[O][n],t)):this[O][n]=t},get:function(){return this[O][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(h[e][r]=n[r])}}function x(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=l(r),c=null;if(i&&!(c=i[a])&&(c=i[a]=i[r],g(i&&e(i,r)))){var s=o(c,a,r);i[r]=function(){return s(this,arguments)},P(i[r],c)}return c}function D(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=x(e,t,(function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?u(i.name,r[i.cbIdx],i,o):e.apply(t,r)}}))}function P(e,t){e[l("OriginalDelegate")]=t}var j=!1,Z=!1;function R(){try{var e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}function z(){if(j)return Z;j=!0;try{var e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(Z=!0)}catch(t){}return Z}Zone.__load_patch("toString",(function(e){var t=Function.prototype.toString,n=l("OriginalDelegate"),r=l("Promise"),o=l("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var I=!1;if("undefined"!=typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){I=!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(ke){I=!1}var M={useG:!0},L={},N={},A=new RegExp("^"+c+"(\\w+)(true|false)$"),F=l("propagationStopped");function G(e,t){var n=(t?t(e):e)+"false",r=(t?t(e):e)+"true",o=c+n,i=c+r;L[e]={},L[e].false=o,L[e].true=i}function H(e,t,r){var o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",s=r&&r.rmAll||"removeAllListeners",u=l(o),f="."+o+":",p=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[i].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},h=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[L[t.type].false];if(r)if(1===r.length)p(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[F]);i++)p(o[i],n,t)}},v=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[L[t.type].true];if(r)if(1===r.length)p(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[F]);i++)p(o[i],n,t)}};function d(t,r){if(!t)return!1;var p=!0;r&&void 0!==r.useG&&(p=r.useG);var d=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var y=!1;r&&void 0!==r.rt&&(y=r.rt);for(var m=t;m&&!m.hasOwnProperty(o);)m=n(m);if(!m&&t[o]&&(m=t),!m)return!1;if(m[u])return!1;var k,_=r&&r.eventNameToString,T={},E=m[u]=m[o],w=m[l(i)]=m[i],O=m[l(a)]=m[a],S=m[l(s)]=m[s];function x(e,t){return!I&&"object"==typeof e&&e?!!e.capture:I&&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=m[l(r.prepend)]=m[r.prepend]);var D=p?function(e){if(!T.isExisting)return E.call(T.target,T.eventName,T.capture?v:h,T.options)}:function(e){return E.call(T.target,T.eventName,e.invoke,T.options)},j=p?function(e){if(!e.isRemoved){var t=L[e.eventName],n=void 0;t&&(n=t[e.capture?"true":"false"]);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 w.call(e.target,e.eventName,e.capture?v:h,e.options)}:function(e){return w.call(e.target,e.eventName,e.invoke,e.options)},Z=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},R=Zone[l("BLACK_LISTED_EVENTS")],z=e[l("PASSIVE_EVENTS")],C=function(t,n,o,i,a,c){return void 0===a&&(a=!1),void 0===c&&(c=!1),function(){var s=this||e,u=arguments[0];r&&r.transferEventName&&(u=r.transferEventName(u));var l=arguments[1];if(!l)return t.apply(this,arguments);if(b&&"uncaughtException"===u)return t.apply(this,arguments);var f=!1;if("function"!=typeof l){if(!l.handleEvent)return t.apply(this,arguments);f=!0}if(!d||d(t,l,s,arguments)){var h=I&&!!z&&-1!==z.indexOf(u),v=x(arguments[2],h);if(R)for(var y=0;y<R.length;y++)if(u===R[y])return h?t.call(s,u,l,v):t.apply(this,arguments);var m=!!v&&("boolean"==typeof v||v.capture),k=!(!v||"object"!=typeof v)&&v.once,E=Zone.current,w=L[u];w||(G(u,_),w=L[u]);var O,S=w[m?"true":"false"],D=s[S],P=!1;if(D){if(P=!0,g)for(y=0;y<D.length;y++)if(Z(D[y],l))return}else D=s[S]=[];var j=s.constructor.name,C=N[j];C&&(O=C[u]),O||(O=j+n+(_?_(u):u)),T.options=v,k&&(T.options.once=!1),T.target=s,T.capture=m,T.eventName=u,T.isExisting=P;var A=p?M:void 0;A&&(A.taskData=T);var F=E.scheduleEventTask(O,l,A,o,i);return T.target=null,A&&(A.taskData=null),k&&(v.once=!0),(I||"boolean"!=typeof F.options)&&(F.options=v),F.target=s,F.capture=m,F.eventName=u,f&&(F.originalDelegate=l),c?D.unshift(F):D.push(F),a?s:void 0}}};return m[o]=C(E,f,D,j,y),k&&(m.prependListener=C(k,".prependListener:",(function(e){return k.call(T.target,T.eventName,e.invoke,T.options)}),j,y,!0)),m[i]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),a=arguments[1];if(!a)return w.apply(this,arguments);if(!d||d(w,a,t,arguments)){var s,u=L[n];u&&(s=u[i?"true":"false"]);var l=s&&t[s];if(l)for(var f=0;f<l.length;f++){var p=l[f];if(Z(p,a)){if(l.splice(f,1),p.isRemoved=!0,0===l.length&&(p.allRemoved=!0,t[s]=null,"string"==typeof n)){var h=c+"ON_PROPERTY"+n;t[h]=null}return p.zone.cancelTask(p),y?t:void 0}}return w.apply(this,arguments)}},m[a]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=W(t,_?_(n):n),a=0;a<i.length;a++){var c=i[a],s=c.originalDelegate?c.originalDelegate:c.callback;o.push(s)}return o},m[s]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=L[n];if(o){var a=o.false,c=o.true,u=t[a],l=t[c];if(u){var f=u.slice();for(v=0;v<f.length;v++)this[i].call(this,n,(p=f[v]).originalDelegate?p.originalDelegate:p.callback,p.options)}if(l)for(f=l.slice(),v=0;v<f.length;v++){var p;this[i].call(this,n,(p=f[v]).originalDelegate?p.originalDelegate:p.callback,p.options)}}}else{for(var h=Object.keys(t),v=0;v<h.length;v++){var d=h[v],g=A.exec(d),b=g&&g[1];b&&"removeListener"!==b&&this[s].call(this,b)}this[s].call(this,"removeListener")}if(y)return this},P(m[o],E),P(m[i],w),S&&P(m[s],S),O&&P(m[a],O),!0}for(var g=[],y=0;y<t.length;y++)g[y]=d(t[y],r);return g}function W(e,t){if(!t){var n=[];for(var r in e){var o=A.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 s=L[t];s||(G(t),s=L[t]);var u=e[s.false],l=e[s.true];return u?l?u.concat(l):u.slice():l?l.slice():[]}function U(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",(function(e){return function(t,n){t[F]=!0,e&&e.apply(t,n)}}))}function B(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,s){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,s)},e.attachOriginToPatched(t[r],a)}}var K,V,q,Y,X,Q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],J=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],$=["load"],ee=["blur","error","focus","load","resize","scroll","messageerror"],te=["bounce","finish","start"],ne=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],re=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],oe=["close","error","open","message"],ie=["error","message"],ae=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ce(e,t,n){if(!n||0===n.length)return t;var r=n.filter((function(t){return t.target===e}));if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter((function(e){return-1===o.indexOf(e)}))}function se(e,t,n,r){e&&w(e,ce(e,t,n),r)}function ue(e,t){if((!b||k)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(m){var i=window,a=R?[{target:i,ignoreProperties:["error"]}]:[];se(i,ae.concat(["messageerror"]),o?o.concat(a):o,n(i)),se(Document.prototype,ae,o),void 0!==i.SVGElement&&se(i.SVGElement.prototype,ae,o),se(Element.prototype,ae,o),se(HTMLElement.prototype,ae,o),se(HTMLMediaElement.prototype,J,o),se(HTMLFrameSetElement.prototype,Q.concat(ee),o),se(HTMLBodyElement.prototype,Q.concat(ee),o),se(HTMLFrameElement.prototype,$,o),se(HTMLIFrameElement.prototype,$,o);var c=i.HTMLMarqueeElement;c&&se(c.prototype,te,o);var s=i.Worker;s&&se(s.prototype,ie,o)}var u=t.XMLHttpRequest;u&&se(u.prototype,ne,o);var l=t.XMLHttpRequestEventTarget;l&&se(l&&l.prototype,ne,o),"undefined"!=typeof IDBIndex&&(se(IDBIndex.prototype,re,o),se(IDBRequest.prototype,re,o),se(IDBOpenDBRequest.prototype,re,o),se(IDBDatabase.prototype,re,o),se(IDBTransaction.prototype,re,o),se(IDBCursor.prototype,re,o)),r&&se(WebSocket.prototype,oe,o)}}function le(){K=Zone.__symbol__,V=Object[K("defineProperty")]=Object.defineProperty,q=Object[K("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Y=Object.create,X=K("unconfigurables"),Object.defineProperty=function(e,t,n){if(pe(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=he(e,t,n)),ve(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]=he(e,n,t[n])})),Y(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=q(e,t);return n&&pe(e,t)&&(n.configurable=!1),n}}function fe(e,t,n){var r=n.configurable;return ve(e,t,n=he(e,t,n),r)}function pe(e,t){return e&&e[X]&&e[X][t]}function he(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[X]||Object.isFrozen(e)||V(e,X,{writable:!0,value:{}}),e[X]&&(e[X][t]=!0)),n}function ve(e,t,n,r){try{return V(e,t,n)}catch(i){if(!n.configurable)throw i;void 0===r?delete n.configurable:n.configurable=r;try{return V(e,t,n)}catch(i){var o=null;try{o=JSON.stringify(n)}catch(i){o=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+i)}}}function de(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,s=n.ZONE_SYMBOL_PREFIX,u="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(u):e.EventTarget?l.push("EventTarget"):l=u;for(var h=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,d=t.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",y={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},b=0;b<r.length;b++){var m=s+((w=r[b])+c),k=s+(w+a);i[w]={},i[w][c]=m,i[w][a]=k}for(b=0;b<p.length;b++)for(var _=p[b],T=o[_]={},E=0;E<r.length;E++){var w;T[w=r[E]]=_+".addEventListener:"+w}var O=[];for(b=0;b<l.length;b++){var S=e[l[b]];O.push(S&&S.prototype)}return t.patchEventTarget(e,O,{vh:function(e,t,n,r){if(!h&&d){if(v)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==g)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==g)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 y[e]||e}}),Zone[t.symbol("patchEventTarget")]=!!e.EventTarget,!0}function ge(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=i.prototype,c=e.ObjectGetOwnPropertyDescriptor(a,"onreadystatechange");if(c)return e.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(u=new i).onreadystatechange,e.ObjectDefineProperty(a,"onreadystatechange",c||{}),o;var s=e.symbol("fake");e.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[s]},set:function(e){this[s]=e}});var u=new i,l=function(){};return u.onreadystatechange=l,o=u[s]===l,u.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,s=arguments.length>1?new i(t,n):new i(t),u=e.ObjectGetOwnPropertyDescriptor(s,"onmessage");return u&&!1===u.configurable?(a=e.ObjectCreate(s),c=s,[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);s[c]=a[c]}}return s[t].apply(s,n)}}))):a=s,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,i,a){a.patchOnProperties=w,a.patchMethod=x,a.bindArguments=d,a.patchMacroTask=D;var u=i.__symbol__("BLACK_LISTED_EVENTS"),l=i.__symbol__("UNPATCHED_EVENTS");n[l]&&(n[u]=n[l]),n[u]&&(i[u]=i[l]=n[u]),a.patchEventPrototype=U,a.patchEventTarget=H,a.isIEOrEdge=z,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=S,a.wrapWithCurrentZone=s,a.filterProperties=ce,a.attachOriginToPatched=P,a._redefineProperty=Object.defineProperty,a.patchCallbacks=B,a.getGlobalObjects=function(){return{globalSources:N,zoneSymbolEventNames:L,eventNames:ae,isBrowser:m,isMix:k,isNode:b,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:c,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})),function(e){e[(e.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=e.Zone;t.__load_patch("defineProperty",(function(e,t,n){n._redefineProperty=fe,le()})),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){de(e,n),ge(n,e)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var ye=l("zoneTask");function be(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[ye]=null))}},n.handleId=o.apply(e,n.args),t}function s(e){return i(e.data.handleId)}o=x(e,t+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var l=u(t,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,s);if(!l)return l;var f=l.data.handleId;return"number"==typeof f?a[f]=l:f&&(f[ye]=l),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(l.ref=f.ref.bind(f),l.unref=f.unref.bind(f)),"number"==typeof f||f?f:l}return n.apply(e,i)}})),i=x(e,n,(function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[ye])||(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[ye]=null),o.zone.cancelTask(o)):t.apply(e,r)}}))}function me(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,s=0;s<r.length;s++){var u=r[s],l=c+(u+a),f=c+(u+i);o[u]={},o[u][a]=l,o[u][i]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",(function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()})),Zone.__load_patch("timers",(function(e){be(e,"set","clear","Timeout"),be(e,"set","clear","Interval"),be(e,"set","clear","Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(e){be(e,"request","cancel","AnimationFrame"),be(e,"mozRequest","mozCancel","AnimationFrame"),be(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)x(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),me(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")})),Zone.__load_patch("on_property",(function(e,t,n){ue(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 p=e.XMLHttpRequest;if(p){var h=p.prototype,v=h[i],d=h[a];if(!v){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;v=y[i],d=y[a]}}var b=x(h,"open",(function(){return function(e,t){return e[r]=0==t[2],e[s]=t[1],b.apply(e,t)}})),m=l("fetchTaskAborting"),k=l("fetchTaskScheduling"),_=x(h,"send",(function(){return function(e,n){if(!0===t.current[k])return _.apply(e,n);if(e[r])return _.apply(e,n);var o={target:e,url:e[s],isPeriodic:!1,args:n,aborted:!1},i=u("XMLHttpRequest.send",w,o,E,O);e&&!0===e[f]&&!o.aborted&&"scheduled"===i.state&&i.invoke()}})),T=x(h,"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[m])return T.apply(e,r)}}))}function E(e){var r=e.data,s=r.target;s[c]=!1,s[f]=!1;var u=s[o];v||(v=s[i],d=s[a]),u&&d.call(s,"readystatechange",u);var l=s[o]=function(){if(s.readyState===s.DONE)if(!r.aborted&&s[c]&&"scheduled"===e.state){var n=s[t.__symbol__("loadfalse")];if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=s[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);r.aborted||"scheduled"!==e.state||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==s[c]||(s[f]=!0)};return v.call(s,"readystatechange",l),s[n]||(s[n]=e),_.apply(s,r.args),s[c]=!0,e}function w(){}function O(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}}(e);var n=l("xhrTask"),r=l("xhrSync"),o=l("xhrListener"),c=l("xhrScheduled"),s=l("xhrURL"),f=l("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(!g(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,d(arguments,r+"."+i))};return P(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){W(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[l("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[l("rejectionHandledHandler")]=n("rejectionhandled"))}))})?r.call(t,n,t,e):r)||(e.exports=o)},"0eef":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"0rvr":function(e,t,n){var r=n("glrk"),o=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"1E5z":function(e,t,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},2:function(e,t,n){e.exports=n("hN/g")},"2oRo":function(e,t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof global==n&&global)||Function("return this")()},"33Wh":function(e,t,n){var r=n("yoRg"),o=n("eDl+");e.exports=Object.keys||function(e){return r(e,o)}},"4WOD":function(e,t,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),s=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?s:null}},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"5r1n":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.get,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},"6JNq":function(e,t,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");e.exports=function(e,t){for(var n=o(t),c=a.f,s=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||c(e,l,s(t,l))}}},"6LWA":function(e,t,n){var r=n("xrYK");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"6PKz":function(e,t,n){n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA")},"6VoE":function(e,t,n){var r=n("tiKp"),o=n("P4y1"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"8YOa":function(e,t,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,c=n("kOOl"),s=n("uy83"),u=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,u,{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,u)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!i(e,u)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return s&&h.REQUIRED&&f(e)&&!i(e,u)&&p(e),e}};r[u]=!0},"93I0":function(e,t,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},"9d/t":function(e,t,n){var r=n("xrYK"),o=n("tiKp")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},AwgR:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.has,c=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},Bs8V:function(e,t,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),s=n("UTVS"),u=n("DPsx"),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),u)try{return l(e,t)}catch(n){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},DPsx:function(e,t,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},ENF9:function(e,t,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),s=n("rKzb"),u=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d=e.exports=c("WeakMap",v,s,!0,!0);if(f&&p){r=s.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,k=g.set;i(g,{delete:function(e){if(u(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(u(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(u(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(u(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?k.call(this,e,t):n.frozen.set(e,t)}else k.call(this,e,t);return this}})}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},HH4o:function(e,t,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},HYAF:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"I+eb":function(e,t,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("X2U+"),a=n("busE"),c=n("zk60"),s=n("6JNq"),u=n("lMq5");e.exports=function(e,t){var n,l,f,p,h,v=e.target,d=e.global,g=e.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(d?l:v+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},I8vh:function(e,t,n){var r=n("ppGB"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},ImZN:function(e,t,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("+MLx"),c=n("NaFW"),s=n("m92n"),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,h,v,d,g,y,b=a(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(h=c(e)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(e.length);d>v;v++)if((g=l?b(r(y=e[v])[0],y[1]):b(e[v]))&&g instanceof u)return g;return new u(!1)}p=h.call(e)}for(;!(y=p.next()).done;)if((g=s(p,b,y.value,l))&&g instanceof u)return g;return new u(!1)}).stop=function(e){return new u(!0,e)}},JBy8:function(e,t,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&(0,o.f)(t,c,{configurable:!0,get:function(){return this}})}},"N+g0":function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,s=0;c>s;)o.f(e,n=r[s++],t[n]);return e}},NaFW:function(e,t,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},P4y1:function(e,t){e.exports={}},Qo9l:function(e,t,n){e.exports=n("2oRo")},RK3t:function(e,t,n){var r=n("0Dky"),o=n("xrYK"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},TWQb:function(e,t,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(e){return function(t,n,a){var c,s=r(t),u=o(s.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o,!0)},UMSQ:function(e,t,n){var r=n("ppGB"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},VpIT:function(e,t,n){var r=n("2oRo"),o=n("zk60"),i=n("xDBR"),a=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"X2U+":function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("XGwC");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},XGwC:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},Y4C7:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.getMap,s=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=s.get(t);return o.delete(n),!!o.size||s.delete(t)}})},YGK4:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("+MLx"),c=n("GarU"),s=n("ImZN"),u=n("fdAy"),l=n("JiZb"),f=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;e.exports={getConstructor:function(e,t,n,u){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&&s(r,e[u],e,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=h(this),n=y(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},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);u(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},ZfDv:function(e,t,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},ZsH6:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,s=o.get,u=o.toKey,l=function(e,t,n){if(c(e,t,n))return s(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:u(arguments[2]);return l(e,i(t),n)}})},afO8:function(e,t,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),s=n("hh1v"),u=n("X2U+"),l=n("UTVS"),f=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return d.call(h,e)}}else{var y=f("state");p[y]=!0,r=function(e,t){return u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}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(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),s=n("ImZN"),u=n("GarU"),l=n("hh1v"),f=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");e.exports=function(e,t,n,d,g){var y=o[e],b=y&&y.prototype,m=y,k=d?"set":"add",_={},T=function(e){var t=b[e];a(b,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 y||!(g||b.forEach&&!f((function(){(new y).entries().next()})))))m=n.getConstructor(t,e,d,k),c.REQUIRED=!0;else if(i(e,!0)){var E=new m,w=E[k](g?{}:-0,1)!=E,O=f((function(){E.has(1)})),S=p((function(e){new y(e)})),x=!g&&f((function(){for(var e=new y,t=5;t--;)e[k](t,t);return!e.has(-0)}));S||((m=t((function(t,n){u(t,m,e);var r=v(new y,t,m);return null!=n&&s(n,r[k],r,d),r}))).prototype=b,b.constructor=m),(O||x)&&(T("delete"),T("has"),d&&T("get")),(x||w)&&T(k),g&&b.clear&&delete b.clear}return _[e]=m,r({global:!0,forced:m!=y},_),h(m,e),g||n.setStrong(m,e,d),m}},bdeN:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,s=o.toKey,u=function(e,t,n){if(c(e,t,n))return!0;var r=a(t);return null!==r&&u(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return u(e,i(t),n)}})},busE:function(e,t,n){var r=n("2oRo"),o=n("VpIT"),i=n("X2U+"),a=n("UTVS"),c=n("zk60"),s=n("noGo"),u=n("afO8"),l=u.get,f=u.enforce,p=String(s).split("toString");o("inspectSource",(function(e){return s.call(e)})),(e.exports=function(e,t,n,o){var s=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),f(n).source=p.join("string"==typeof t?t:"")),e!==r?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s.call(this)}))},cVYH:function(e,t,n){var r=n("hh1v"),o=n("0rvr");e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eDxR:function(e,t,n){var r=n("Tskq"),o=n("ENF9"),i=n("VpIT")("metadata"),a=i.store||(i.store=new o),c=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,getMap:c,has:function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){c(n,r,!0).set(e,t)},keys:function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},f5p1:function(e,t,n){var r=n("2oRo"),o=n("noGo"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o.call(i))},fHMY:function(e,t,n){var r=n("glrk"),o=n("N+g0"),i=n("eDl+"),a=n("0BK2"),c=n("G+Rx"),s=n("zBJ4"),u=n("93I0")("IE_PROTO"),l=function(){},f=function(){var e,t=s("iframe"),n=i.length;for(t.style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;n--;)delete f.prototype[i[n]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[u]=e):n=f(),void 0===t?n:o(n,t)},a[u]=!0},fdAy:function(e,t,n){"use strict";var r=n("I+eb"),o=n("ntOU"),i=n("4WOD"),a=n("0rvr"),c=n("1E5z"),s=n("X2U+"),u=n("busE"),l=n("tiKp"),f=n("xDBR"),p=n("P4y1"),h=n("rpNk"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y=function(){return this};e.exports=function(e,t,n,l,h,b,m){o(n,t,l);var k,_,T,E=function(e){if(e===h&&D)return D;if(!d&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",O=!1,S=e.prototype,x=S[g]||S["@@iterator"]||h&&S[h],D=!d&&x||E(h),P="Array"==t&&S.entries||x;if(P&&(k=i(P.call(new e)),v!==Object.prototype&&k.next&&(f||i(k)===v||(a?a(k,v):"function"!=typeof k[g]&&s(k,g,y)),c(k,w,!0,!0),f&&(p[w]=y))),"values"==h&&x&&"values"!==x.name&&(O=!0,D=function(){return x.call(this)}),f&&!m||S[g]===D||s(S,g,D),p[t]=D,h)if(_={values:E("values"),keys:b?D:E("keys"),entries:E("entries")},m)for(T in _)(d||O||!(T in S))&&u(S,T,_[T]);else r({target:t,proto:!0,forced:d||O},_);return _}},"g6v/":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"hN/g":function(e,t,n){"use strict";n.r(t),n("6PKz"),n("0TWp"),n("vU8d"),window.global=window},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},lMq5:function(e,t,n){var r=n("0Dky"),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==u||n!=s&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"m/L8":function(e,t,n){var r=n("g6v/"),o=n("DPsx"),i=n("glrk"),a=n("wE6v"),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var r=n("glrk");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},noGo:function(e,t,n){var r=n("VpIT");e.exports=r("native-function-to-string",Function.toString)},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,o=n("fHMY"),i=n("XGwC"),a=n("1E5z"),c=n("P4y1"),s=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),c[u]=s,e}},ppGB:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},qgGA:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){c(e,t,i(n),a(r))}}})},rKzb:function(e,t,n){"use strict";var r=n("4syw"),o=n("8YOa").getWeakData,i=n("glrk"),a=n("hh1v"),c=n("GarU"),s=n("ImZN"),u=n("tycR"),l=n("UTVS"),f=n("afO8"),p=f.set,h=f.getterFor,v=u.find,d=u.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,u){var f=e((function(e,r){c(e,f,t),p(e,{type:t,id:g++,frozen:void 0}),null!=r&&s(r,e[u],e,n)})),v=h(t),d=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return d(this,e,t)}}:{add:function(e){return d(this,e,!0)}}),f}}},rpNk:function(e,t,n){"use strict";var r,o,i,a=n("4WOD"),c=n("X2U+"),s=n("UTVS"),u=n("tiKp"),l=n("xDBR"),f=u("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||s(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},sQ9d:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.keys,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return a(i(e),t)}})},tiKp:function(e,t,n){var r=n("2oRo"),o=n("VpIT"),i=n("kOOl"),a=n("STAE"),c=r.Symbol,s=o("wks");e.exports=function(e){return s[e]||(s[e]=a&&c[e]||(a?c:i)("Symbol."+e))}},tycR:function(e,t,n){var r=n("+MLx"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv"),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,f=6==e,p=5==e||f;return function(h,v,d,g){for(var y,b,m=i(h),k=o(m),_=r(v,d,3),T=a(k.length),E=0,w=g||c,O=t?w(h,T):n?w(h,0):void 0;T>E;E++)if((p||E in k)&&(b=_(y=k[E],E,m),e))if(t)O[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:s.call(O,y)}else if(l)return!1;return f?-1:u||l?l:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},vU8d:function(e,t){!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()}()},vZi8:function(e,t,n){var r=n("I+eb"),o=n("YGK4"),i=n("eDxR"),a=n("glrk"),c=n("4WOD"),s=n("ImZN"),u=i.keys,l=i.toKey,f=function(e,t){var n=u(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)),s(i,(a=[]).push,a),a):l:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:l(arguments[1]);return f(a(e),t)}})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},xDBR:function(e,t){e.exports=!1},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},yoRg:function(e,t,n){var r=n("UTVS"),o=n("/GqU"),i=n("TWQb").indexOf,a=n("0BK2");e.exports=function(e,t){var n,c=o(e),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);for(;t.length>s;)r(c,n=t[s++])&&(~i(u,n)||u.push(n));return u}},zBJ4:function(e,t,n){var r=n("2oRo"),o=n("hh1v"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},zk60:function(e,t,n){var r=n("2oRo"),o=n("X2U+");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}}},[[2,0]]]);
|
|
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,i=(n=n||g).createElement("script");if(i.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e}var x="3.5.1",T=function(e,t){return new T.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!h(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:x,constructor:T,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||h(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[t]=T.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==l.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?T.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,a=0,s=[];if(w(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return i(s)},guid:1,support:d}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=n[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var E=function(e){var t,n,r,o,i,a,s,u,l,c,f,p,d,h,m,g,v,y,b,x="sizzle"+1*new Date,T=e.document,w=0,E=0,C=ue(),L=ue(),A=ue(),H=ue(),S=function(e,t){return e===t&&(f=!0),0},M={}.hasOwnProperty,N=[],D=N.pop,k=N.push,j=N.push,O=N.slice,q=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+R+"*("+I+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+R+"*\\]",B=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",W=new RegExp(R+"+","g"),$=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),_=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),z=new RegExp(B),X=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(N=O.call(T.childNodes),T.childNodes)}catch(t){j={apply:N.length?function(e,t){k.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,l,c,f,h,v,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!o&&(p(t),t=t||d,m)){if(11!==T&&(f=Z.exec(e)))if(i=f[1]){if(9===T){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(y&&(l=y.getElementById(i))&&b(t,l)&&l.id===i)return r.push(l),r}else{if(f[2])return j.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!H[e+" "]&&(!g||!g.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===T&&(V.test(e)||U.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,oe):t.setAttribute("id",c=x)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+be(h[s]);v=h.join(",")}try{return j.apply(r,y.querySelectorAll(v)),r}catch(t){H(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace($,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[x]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=(e.ownerDocument||e).documentElement;return!Y.test(e.namespaceURI||t&&t.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:T;return a!=d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,m=!i(d),T!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ce((function(e){return h.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=x,!d.getElementsByName||!d.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==T&&b(T,e)?-1:t==d||t.ownerDocument==T&&b(T,t)?1:c?q(c,e)-q(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==d?-1:t==d?1:o?-1:i?1:c?q(c,e)-q(c,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==T?-1:s[r]==T?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!H[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){H(t,!0)}return 0<se(t,d,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&M.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1<o.indexOf(n):"$="===t?n&&o.slice(-n.length)===n:"~="===t?-1<(" "+o.replace(W," ")+" ").indexOf(n):"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(i){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(d=(l=(c=(f=(p=g)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(b=d=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[w,d,b];break}}else if(y&&(b=d=(l=(c=(f=(p=t)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===b)for(;(p=++d&&p&&p[m]||(b=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(f=p[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[w,b]),p!==t)););return(b-=o)===r||b%r==0&&0<=b/r}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):1<o.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=q(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[x]?le((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return 0<se(e,t).length}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||o(t)).indexOf(e)}})),lang:le((function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=E++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var l,c,f,p=[w,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[x]||(t[x]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[i])&&l[0]===w&&l[1]===s)return p[2]=l[2];if((c[i]=p)[2]=e(t,n,u))return!0}return!1}}function Te(e){return 1<e.length?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function Ee(e,t,n,r,o,i){return r&&!r[x]&&(r=Ee(r)),o&&!o[x]&&(o=Ee(o,i)),le((function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:we(m,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,v,s,u),r)for(l=we(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(g[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(g[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&-1<(l=o?q(i,f):p[c])&&(i[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):j.apply(a,v)}))}function Ce(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=xe((function(e){return e===t}),s,!0),f=xe((function(e){return-1<q(t,e)}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])p=[xe(Te(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ee(1<u&&Te(p),1<u&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<o&&Ce(e.slice(u,o)),o<i&&Ce(e=e.slice(o)),o<i&&be(e))}p.push(n)}return Te(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,u,l,c=L[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(o=_.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(o=G[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):L(e,u).slice(0)},s=se.compile=function(e,t){var n,o,i,s,u,c,f=[],h=[],g=A[e+" "];if(!g){for(t||(t=a(e)),n=t.length;n--;)(g=Ce(t[n]))[x]?f.push(g):h.push(g);(g=A(e,(o=h,s=0<(i=f).length,u=0<o.length,c=function(e,t,n,a,c){var f,h,g,v=0,y="0",b=e&&[],x=[],T=l,E=e||u&&r.find.TAG("*",c),C=w+=null==T?1:Math.random()||.1,L=E.length;for(c&&(l=t==d||t||c);y!==L&&null!=(f=E[y]);y++){if(u&&f){for(h=0,t||f.ownerDocument==d||(p(f),n=!m);g=o[h++];)if(g(f,t||d,n)){a.push(f);break}c&&(w=C)}s&&((f=!g&&f)&&v--,e&&b.push(f))}if(v+=y,s&&y!==v){for(h=0;g=i[h++];)g(b,x,t,n);if(e){if(0<v)for(;y--;)b[y]||x[y]||(x[y]=D.call(a));x=we(x)}j.apply(a,x),c&&!e&&0<x.length&&1<v+i.length&&se.uniqueSort(a)}return c&&(w=C,l=T),b},s?le(c):c))).selector=e}return g},u=se.select=function(e,t,n,o){var i,u,l,c,f,p="function"==typeof e&&e,d=!o&&a(e=p.selector||e);if(n=n||[],1===d.length){if(2<(u=d[0]=d[0].slice(0)).length&&"ID"===(l=u[0]).type&&9===t.nodeType&&m&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=G.needsContext.test(e)?0:u.length;i--&&!r.relative[c=(l=u[i]).type];)if((f=r.find[c])&&(o=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ve(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&be(u)))return j.apply(n,o),n;break}}return(p||s(e,d))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(P,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);T.find=E,T.expr=E.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=E.uniqueSort,T.text=E.getText,T.isXMLDoc=E.isXML,T.contains=E.contains,T.escapeSelector=E.escape;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=T.expr.match.needsContext;function H(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return h(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return-1<s.call(t,e)!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return 1<r?T.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&A.test(e)?T(e):e||[],!1).length}});var N,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(T.merge(this,T.parseHTML(r[1],(t=t instanceof T?t[0]:t)&&t.nodeType?t.ownerDocument||t:g,!0)),S.test(r[1])&&T.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=g.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,N=T(g);var k=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&T(e);if(!A.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?s.call(T(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(H(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),1<this.length&&(j[e]||T.uniqueSort(o),k.test(e)&&o.reverse()),this.pushStack(o)}}));var q=/[^\x20\t\r\n\f]+/g;function P(e){return e}function R(e){throw e}function I(e,t,n,r){var o;try{e&&h(o=e.promise)?o.call(e).done(t).fail(n):e&&h(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){var t;e="string"==typeof e?(t={},T.each(e.match(q)||[],(function(e,n){t[n]=!0})),t):T.extend({},e);var n,r,o,i,a=[],s=[],u=-1,l=function(){for(i=i||e.once,o=n=!0;s.length;u=-1)for(r=s.shift();++u<a.length;)!1===a[u].apply(r[0],r[1])&&e.stopOnFalse&&(u=a.length,r=!1);e.memory||(r=!1),n=!1,i&&(a=r?[]:"")},c={add:function(){return a&&(r&&!n&&(u=a.length-1,s.push(r)),function t(n){T.each(n,(function(n,r){h(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==b(r)&&t(r)}))}(arguments),r&&!n&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;-1<(n=T.inArray(t,a,n));)a.splice(n,1),n<=u&&u--})),this},has:function(e){return e?-1<T.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=r="",this},disabled:function(){return!a},lock:function(){return i=s=[],r||n||(a=r=""),this},locked:function(){return!!i},fireWith:function(e,t){return i||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),n||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(t){T.each(n,(function(n,r){var o=h(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,o){var i=0;function a(t,n,r,o){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<i)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");h(l=e&&("object"==typeof e||"function"==typeof e)&&e.then)?o?l.call(e,a(i,n,P,o),a(i,n,R,o)):(i++,l.call(e,a(i,n,P,o),a(i,n,R,o),a(i,n,P,n.notifyWith))):(r!==P&&(s=void 0,u=[e]),(o||n.resolveWith)(s,u))}},c=o?l:function(){try{l()}catch(l){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(l,c.stackTrace),i<=t+1&&(r!==R&&(s=void 0,u=[l]),n.rejectWith(s,u))}};t?c():(T.Deferred.getStackHook&&(c.stackTrace=T.Deferred.getStackHook()),e.setTimeout(c))}}return T.Deferred((function(e){n[0][3].add(a(0,e,h(o)?o:P,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:P)),n[2][3].add(a(0,e,h(r)?r:R))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},i={};return T.each(n,(function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=a.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=T.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=1<arguments.length?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||h(i[n]&&i[n].then)))return a.then();for(;n--;)I(i[n],s(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){e.setTimeout((function(){throw t}))};var B=T.Deferred();function W(){g.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),T.ready()}T.fn.ready=function(e){return B.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||B.resolveWith(g,[T])}}),T.ready.then=B.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(T.ready):(g.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));var $=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===b(n))for(s in o=!0,n)$(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,h(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(T(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i},_=/^-ms-/,U=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function z(e){return e.replace(_,"ms-").replace(U,V)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=T.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[z(t)]=n;else for(r in t)o[z(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in r?[t]:t.match(q)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,o;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:J.test(o)?JSON.parse(o):o)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=Q.get(i),1===i.nodeType&&!Y.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=z(r.slice(5)),Z(i,r,o[r]));Y.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Q.set(this,e)})):$(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=Q.get(i,e))||void 0!==(n=Z(i,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return r=Y.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=Y.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=T.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){T.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:T.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=g.documentElement,oe=function(e){return T.contains(e.ownerDocument,e)},ie={composed:!0};re.getRootNode&&(oe=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ie)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===T.css(e,"display")};function se(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==l&&+u)&&te.exec(T.css(e,t));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)T.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;T.style(e,t,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}var ue={};function le(e,t){for(var n,r,o,i,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=i=void 0,a=(o=r).ownerDocument,(u=ue[s=o.nodeName])||(i=a.body.appendChild(a.createElement(s)),u=T.css(i,"display"),i.parentNode.removeChild(i),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}T.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?T(this).show():T(this).hide()}))}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=g.createDocumentFragment().appendChild(g.createElement("div")),(fe=g.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),d.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",d.option=!!ce.lastChild;var me={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&H(e,t)?T.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,d.option||(me.optgroup=me.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function be(e,t,n,r,o){for(var i,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((i=e[d])||0===i)if("object"===b(i))T.merge(p,i.nodeType?[i]:i);else if(ye.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(i)||["",""])[1].toLowerCase(),a.innerHTML=(u=me[s]||me._default)[1]+T.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;T.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(i));for(f.textContent="",d=0;i=p[d++];)if(r&&-1<T.inArray(i,r))o&&o.push(i);else if(l=oe(i),a=ge(f.appendChild(i),"script"),l&&ve(a),n)for(c=0;i=a[c++];)he.test(i.type||"")&&n.push(i);return f}var xe=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Ce(){return!1}function Le(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ce;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,o,r,n)}))}function He(e,t,n){n?(Y.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(i=Y.get(this,t))||r?Y.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Y.set(this,t,{value:T.event.trigger(T.extend(a[0],T.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&T.event.add(e,t,Ee)}T.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Y.get(e);if(X(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(re,o),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(q)||[""]).length;l--;)d=m=(s=we.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},f=T.event.special[d=(o?f.delegateType:f.bindType)||d]||{},c=T.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Y.hasData(e)&&Y.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(q)||[""]).length;l--;)if(d=m=(s=we.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||T.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)T.event.remove(e,d+t[l],n,r,!0);T.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),u=T.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=T.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=T.event.handlers.call(this,u,l),t=0;(o=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==i.namespace&&!u.rnamespace.test(i.namespace)||(u.handleObj=i,u.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,o,i,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?-1<T(o,this).index(l):T.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&H(t,"input")&&He(t,"click",Ee),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&H(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&H(t,"input")&&Y.get(t,"click")||H(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return He(this,e,Le),!1},trigger:function(){return He(this,e),!0},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){T.event.remove(this,e,n,t)}))}});var Se=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return H(e,"table")&&H(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function ke(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(o in Y.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)T.event.add(t,o,s[o][n]);Q.hasData(e)&&(i=Q.access(e),a=T.extend({},i),Q.set(t,a))}}function qe(e,t,n,r){t=i(t);var o,a,s,u,l,c,f=0,p=e.length,m=p-1,g=t[0],v=h(g);if(v||1<p&&"string"==typeof g&&!d.checkClone&&Me.test(g))return e.each((function(o){var i=e.eq(o);v&&(t[0]=g.call(this,o,i.html())),qe(i,t,n,r)}));if(p&&(a=(o=be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(u=(s=T.map(ge(o,"script"),ke)).length;f<p;f++)l=o,f!==m&&(l=T.clone(l,!0,!0),u&&T.merge(s,ge(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,T.map(s,je),f=0;f<u;f++)he.test((l=s[f]).type||"")&&!Y.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):y(l.textContent.replace(Ne,""),l,c))}return e}function Pe(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(ge(r)),r.parentNode&&(n&&oe(r)&&ve(ge(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=ge(c),r=0,o=(i=ge(e)).length;r<o;r++)s=i[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(i=i||ge(e),a=a||ge(c),r=0,o=i.length;r<o;r++)Oe(i[r],a[r]);else Oe(e,c);return 0<(a=ge(c,"script")).length&&ve(a,!f&&ge(e,"script")),c},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(X(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return $(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return $(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!me[(de.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(ge(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),T(o[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}}));var Re=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Fe=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Be=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,o,i,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=T.style(e,t)),!d.pixelBoxStyles()&&Re.test(a)&&Be.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),o=36===n(t.width),c.style.position="absolute",i=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,o,i,a,s,u,l=g.createElement("div"),c=g.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(d,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),i},reliableTrDimensions:function(){var t,n,r,o;return null==s&&(t=g.createElement("table"),n=g.createElement("tr"),r=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",r.style.height="9px",re.appendChild(t).appendChild(n).appendChild(r),o=e.getComputedStyle(n),s=3<parseInt(o.height),re.removeChild(t)),s}}))}();var _e=["Webkit","Moz","ms"],Ue=g.createElement("div").style,Ve={};function ze(e){return T.cssProps[e]||Ve[e]||(e in Ue?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=_e.length;n--;)if((e=_e[n]+t)in Ue)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,o,i){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+ne[a],!0,o)),r?("content"===n&&(u-=T.css(e,"padding"+ne[a],!0,o)),"margin"!==n&&(u-=T.css(e,"border"+ne[a]+"Width",!0,o))):(u+=T.css(e,"padding"+ne[a],!0,o),"padding"!==n?u+=T.css(e,"border"+ne[a]+"Width",!0,o):s+=T.css(e,"border"+ne[a]+"Width",!0,o));return!r&&0<=i&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),o=(!d.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(a)){if(!n)return a;a="auto"}return(!d.boxSizingReliable()&&o||!d.reliableTrDimensions()&&H(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(o?"border":"content"),i,r,a)+"px"}function et(e,t,n,r,o){return new et.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=z(t),u=Ge.test(t),l=e.style;if(u||(t=ze(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"==(i=typeof n)&&(o=te.exec(n))&&o[1]&&(n=se(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||u||(n+=o&&o[3]||(T.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i,a,s=z(t);return Ge.test(t)||(t=ze(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=We(e,t,r)),"normal"===o&&t in Qe&&(o=Qe[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,r):Fe(e,Ye,(function(){return Ze(e,t,r)}))},set:function(e,n,r){var o,i=Ie(e),a=!d.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,i),u=r?Ke(e,t,r,s,i):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-Ke(e,t,"border",!1,i)-.5)),u&&(o=te.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),Je(0,n,u)}}})),T.cssHooks.marginLeft=$e(d.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ne[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=Je)})),T.fn.extend({css:function(e,t){return $(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Ie(e),o=t.length;a<o;a++)i[t[a]]=T.css(e,t[a],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,1<arguments.length)}}),((T.Tween=et).prototype={constructor:et,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.pos=t=this.options.duration?T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=et.prototype.init,T.fx.step={};var tt,nt,rt,ot,it=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(st):e.setTimeout(st,T.fx.interval),T.fx.tick())}function ut(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function lt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ne[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ct(e,t,n){for(var r,o=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ft(e,t,n){var r,o,i=0,a=ft.prefilters.length,s=T.Deferred().always((function(){delete u.elem})),u=function(){if(o)return!1;for(var t=tt||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,a=l.tweens.length;i<a;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=z(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(c,l.opts.specialEasing);i<a;i++)if(r=ft.prefilters[i].call(l,e,c,l.opts))return h(r.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,ct,l),h(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(q);for(var n,r=0,o=e.length;r<o;r++)(ft.tweeners[n=e[r]]=ft.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,m=e.nodeType&&ae(e),g=Y.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(it.test(o=t[r])){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=Y.get(e,"display")),"none"===(c=T.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=T.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(l="none"===(c=h.display)?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=Y.access(e,"fxshow",{display:l}),i&&(g.hidden=!m),m&&le([e],!0),p.done((function(){for(r in m||le([e]),Y.remove(e,"fxshow"),d)T.style(e,r,d[r])}))),u=ct(m?g[r]:0,r,p),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in T.fx.speeds?T.fx.speeds[r.duration]:T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),a=function(){var t=ft(this,T.extend({},e),i);(o||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=T.timers,a=Y.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&at.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,o)}})),T.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),tt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){nt||(nt=!0,st())},T.fx.stop=function(){nt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,this.queue(n=n||"fx",(function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}}))},rt=g.createElement("input"),ot=g.createElement("select").appendChild(g.createElement("option")),rt.type="checkbox",d.checkOn=""!==rt.value,d.optSelected=ot.selected,(rt=g.createElement("input")).value="t",rt.type="radio",d.radioValue="t"===rt.value;var pt,dt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return $(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&H(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(q);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=dt[t]||T.find.attr;dt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=dt[a],dt[a]=o,o=null!=n(e,t,r)?a:null,dt[a]=i),o}}));var ht=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(q)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}T.fn.extend({prop:function(e,t){return $(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(o=T.propHooks[t=T.propFix[t]||t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(T.propHooks.selected={get:function(e){return null},set:function(e){}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(h(e))return this.each((function(t){T(this).addClass(e.call(this,t,vt(this)))}));if((t=yt(e)).length)for(;n=this[u++];)if(o=vt(n),r=1===n.nodeType&&" "+gt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=gt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(h(e))return this.each((function(t){T(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[u++];)if(o=vt(n),r=1===n.nodeType&&" "+gt(o)+" "){for(a=0;i=t[a++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");o!==(s=gt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):h(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=T(this),a=yt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+gt(vt(n))+" ").indexOf(t))return!0;return!1}});var bt=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=h(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(bt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:gt(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r<u;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!H(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),a=o.length;a--;)((r=o[a]).selected=-1<T.inArray(T.valHooks.option.get(r),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},d.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),d.focusin="onfocusin"in e;var xt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(t,n,r,o){var i,a,s,u,l,f,p,d,v=[r||g],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!xt.test(y+T.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),l=y.indexOf(":")<0&&"on"+y,(t=t[T.expando]?t:new T.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:T.makeArray(n,[t]),p=T.event.special[y]||{},o||!p.trigger||!1!==p.trigger.apply(r,n))){if(!o&&!p.noBubble&&!m(r)){for(xt.test((u=p.delegateType||y)+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(r.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=v[i++])&&!t.isPropagationStopped();)d=a,t.type=1<i?u:p.bindType||y,(f=(Y.get(a,"events")||Object.create(null))[t.type]&&Y.get(a,"handle"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&X(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!X(r)||l&&h(r[y])&&!m(r)&&((s=r[l])&&(r[l]=null),T.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,Tt),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,Tt),T.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),d.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Y.access(r,t);o||r.addEventListener(e,n,!0),Y.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Y.access(r,t)-1;o?Y.access(r,t,o):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var wt=e.location,Et={guid:Date.now()},Ct=/\?/;T.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),n};var Lt=/\[\]$/,At=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,n,r){var o;if(Array.isArray(t))T.each(t,(function(t,o){n||Lt.test(e)?r(e,o):Mt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==b(t))r(e,t);else for(o in t)Mt(e+"["+o+"]",t[o],n,r)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){o(this.name,this.value)}));else for(n in e)Mt(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&St.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(At,"\r\n")}})):{name:t.name,value:n.replace(At,"\r\n")}})).get()}});var Nt=/%20/g,Dt=/#.*$/,kt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,qt=/^\/\//,Pt={},Rt={},It="*/".concat("*"),Ft=g.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(q)||[];if(h(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Wt(e,t,n,r){var o={},i=e===Rt;function a(s){var u;return o[s]=!0,T.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||i||o[l]?i?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!o["*"]&&a("*")}function $t(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Ft.href=wt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,T.ajaxSettings),t):$t(T.ajaxSettings,e)},ajaxPrefilter:Bt(Pt),ajaxTransport:Bt(Rt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0);var r,o,i,a,s,u,l,c,f,p,d=T.ajaxSetup({},n=n||{}),h=d.context||d,m=d.context&&(h.nodeType||h.jquery)?T(h):T.event,v=T.Deferred(),y=T.Callbacks("once memory"),b=d.statusCode||{},x={},w={},E="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=jt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),L(0,t),this}};if(v.promise(C),d.url=((t||d.url||wt.href)+"").replace(qt,wt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(q)||[""],null==d.crossDomain){u=g.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Wt(Pt,d,n,C),l)return C;for(f in(c=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),o=d.url.replace(Dt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Nt,"+")):(p=d.url.slice(o.length),d.data&&(d.processData||"string"==typeof d.data)&&(o+=(Ct.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(o=o.replace(kt,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et.guid+++p),d.url=o+p),d.ifModified&&(T.lastModified[o]&&C.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&C.setRequestHeader("If-None-Match",T.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,C,d)||l))return C.abort();if(E="abort",y.add(d.complete),C.done(d.success),C.fail(d.error),r=Wt(Rt,d,n,C)){if(C.readyState=1,c&&m.trigger("ajaxSend",[C,d]),l)return C;d.async&&0<d.timeout&&(s=e.setTimeout((function(){C.abort("timeout")}),d.timeout));try{l=!1,r.send(x,L)}catch(t){if(l)throw t;L(-1,t)}}else L(-1,"No Transport");function L(t,n,a,u){var f,p,g,x,w,E=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,i=u||"",C.readyState=0<t?4:0,f=200<=t&&t<300||304===t,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(d,C,a)),!f&&-1<T.inArray("script",d.dataTypes)&&(d.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if((s=o.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}(d,x,C,f),f?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(T.etag[o]=w)),204===t||"HEAD"===d.type?E="nocontent":304===t?E="notmodified":(E=x.state,p=x.data,f=!(g=x.error))):(g=E,!t&&E||(E="error",t<0&&(t=0))),C.status=t,C.statusText=(n||E)+"",f?v.resolveWith(h,[p,E,C]):v.rejectWith(h,[C,E,g]),C.statusCode(b),b=void 0,c&&m.trigger(f?"ajaxSuccess":"ajaxError",[C,d,f?p:g]),y.fireWith(h,[C,E]),c&&(m.trigger("ajaxComplete",[C,d]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,o){return h(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return h(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var _t={0:200,1223:204},Ut=T.ajaxSettings.xhr();d.cors=!!Ut&&"withCredentials"in Ut,d.ajax=Ut=!!Ut,T.ajaxTransport((function(t){var n,r;if(d.cors||Ut&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(o){if(n)throw o}},abort:function(){n&&n()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Vt,zt=[],Xt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||T.expando+"_"+Et.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Xt,"$1"+o):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||T.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always((function(){void 0===i?T(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,zt.push(o)),a&&h(i)&&i(a[0]),a=i=void 0})),"script"})),d.createHTMLDocument=((Vt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),i=!n&&[],(o=S.exec(e))?[t.createElement(o[1])]:(o=be([e],t,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return-1<s&&(r=gt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l=T.css(e,"position"),c=T(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),i=T.css(e,"top"),u=T.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+u).indexOf("auto")?(a=(r=c.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),h(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?{top:(t=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||re}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return $(this,(function(e,r,o){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=$e(d.pixelPosition,(function(e,n){if(n)return n=We(e,t),Re.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return $(this,(function(t,n,o){var i;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?T.css(t,n,s):T.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}}));var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=H,T.isFunction=h,T.isWindow=m,T.camelCase=z,T.type=b,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return T}));var Yt=e.jQuery,Qt=e.$;return T.noConflict=function(t){return e.$===T&&(e.$=Qt),t&&e.jQuery===T&&(e.jQuery=Yt),T},void 0===t&&(e.jQuery=e.$=T),T})),function(e,t){"use strict";function n(){var e=L.splice(0,L.length);for(Ye=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)h(e[n],t)}function o(e){return function(t){qe(t)&&(h(t,e),oe.length&&r(t.querySelectorAll(oe),e))}}function i(e){var t=Be.call(e,"is"),n=e.nodeName.toUpperCase(),r=ae.call(ne,t?Z+t.toUpperCase():K+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<oe.indexOf(e+'[is="'+t+'"]')}function s(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[X]||2,a=e[G]||3;!tt||o&&o!==t||!t[W]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[W](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){L.push(t,e.target),Ye&&clearTimeout(Ye),Ye=setTimeout(n,1)}}function l(e){et&&(et=!1,e.currentTarget.removeEventListener(Q,l)),oe.length&&r((e.target||w).querySelectorAll(oe),e.detail===F?F:R),je&&function(){for(var e,t=0,n=Pe.length;t<n;t++)ie.contains(e=Pe[t])||(n--,Pe.splice(t--,1),h(e,F))}()}function c(e,t){var n=this;_e.call(n,e,t),A.call(n,{target:n})}function f(e,t,n){var r=t.apply(e,n),o=i(r);return-1<o&&k(r,re[o]),n.pop()&&oe.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)k(t=e[n],re[i(t)])}(r.querySelectorAll(oe)),r}function p(e,t){Me(e,t),M?M.observe(e,Xe):(Ze&&(e.setAttribute=c,e[q]=S(e),e[P](J,A)),e[P](Y,s)),e[V]&&tt&&(e.created=!0,e[V](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function h(e,t){var n,r,o=i(e);-1<o&&(D(e,re[o]),o=0,t!==R||e[R]?t!==F||e[F]||(e[R]=!1,e[F]=!0,r="disconnected",o=1):(e[F]=!1,e[R]=!0,r="connected",o=1,je&&ae.call(Pe,e)<0&&Pe.push(e)),o&&(n=e[t+I]||e[r+I])&&n.call(e))}function m(){}function g(e,t,n){var r=n&&n[B]||"",o=t.prototype,i=Se(o),a=t.observedAttributes||fe,s={prototype:i};Oe(i,V,{value:function(){if(Ee)Ee=!1;else if(!this[ve]){this[ve]=!0,new t(this),o[V]&&o[V].call(this);var e=Ce[Ae.get(t)];(!be||e.create.length>1)&&b(this)}}}),Oe(i,W,{value:function(e){-1<ae.call(a,e)&&o[W]&&o[W].apply(this,arguments)}}),o[_]&&Oe(i,$,{value:o[_]}),o[U]&&Oe(i,z,{value:o[U]}),r&&(s[B]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,He(e)]:[e]},Ae.set(t,e),w[O](e.toLowerCase(),s),x(e),Le[e].r()}function v(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function y(e){return"string"==typeof e?e:e&&e.is||""}function b(e){for(var t,n=e[W],r=n?e.attributes:fe,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function x(e){return(e=e.toUpperCase())in Le||(Le[e]={},Le[e].p=new we((function(t){Le[e].r=t}))),Le[e].p}function T(){ye&&delete e.customElements,ce(e,"customElements",{configurable:!0,value:new m}),ce(e,"CustomElementRegistry",{configurable:!0,value:m});for(var t=C.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[ve]||(Ee=!0,t=Ce[Ae.get(e.constructor)],(e=(r=be&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):w.createElement.apply(w,t.create))[ve]=!0,Ee=!1,r||b(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){ce(n,ve,{value:e[t]})}}}(t[n]));w.createElement=function(e,t){var n=y(t);return n?ze.call(this,e,He(n)):ze.call(this,e)},Qe||(Ke=!0,w[O](""))}var w=e.document,E=e.Object,C=function(e){var t,n,r,o,i=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(E.create||E)(null),u={};for(n in e)for(o in e[n])for(s[o]=r=e[n][o],t=0;t<r.length;t++)s[r[t].toLowerCase()]=s[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?s[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return i.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 L,A,H,S,M,N,D,k,j,O="registerElement",q="__"+O+(1e5*e.Math.random()>>0),P="addEventListener",R="attached",I="Callback",F="detached",B="extends",W="attributeChanged"+I,$=R+I,_="connected"+I,U="disconnected"+I,V="created"+I,z=F+I,X="ADDITION",G="REMOVAL",Y="DOMAttrModified",Q="DOMContentLoaded",J="DOMSubtreeModified",K="<",Z="=",ee=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,te=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],ne=[],re=[],oe="",ie=w.documentElement,ae=ne.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},se=E.prototype,ue=se.hasOwnProperty,le=se.isPrototypeOf,ce=E.defineProperty,fe=[],pe=E.getOwnPropertyDescriptor,de=E.getOwnPropertyNames,he=E.getPrototypeOf,me=E.setPrototypeOf,ge=!!E.__proto__,ve="__dreCEv1",ye=e.customElements,be=!/^force/.test(t.type)&&!!(ye&&ye.define&&ye.get&&ye.whenDefined),xe=E.create||E,Te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ae.call(t,e)]},set:function(r,o){(e=ae.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},we=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},Ee=!1,Ce=xe(null),Le=xe(null),Ae=new Te,He=function(e){return e.toLowerCase()},Se=E.create||function e(t){return t?(e.prototype=t,new e):this},Me=me||(ge?function(e,t){return e.__proto__=t,e}:de&&pe?function(){function e(e,t){for(var n,r=de(t),o=0,i=r.length;o<i;o++)ue.call(e,n=r[o])||ce(e,n,pe(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!le.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Ne=e.MutationObserver||e.WebKitMutationObserver,De=e.HTMLAnchorElement,ke=(e.HTMLElement||e.Element||e.Node).prototype,je=!le.call(ke,ie),Oe=je?function(e,t,n){return e[t]=n.value,e}:ce,qe=je?function(e){return 1===e.nodeType}:function(e){return le.call(ke,e)},Pe=je&&[],Re=ke.attachShadow,Ie=ke.cloneNode,Fe=ke.dispatchEvent,Be=ke.getAttribute,We=ke.hasAttribute,$e=ke.removeAttribute,_e=ke.setAttribute,Ue=w.createElement,Ve=w.importNode,ze=Ue,Xe=Ne&&{attributes:!0,characterData:!0,attributeOldValue:!0},Ge=Ne||function(e){Ze=!1,ie.removeEventListener(Y,Ge)},Ye=0,Qe=O in w&&!/^force-all/.test(t.type),Je=!0,Ke=!1,Ze=!0,et=!0,tt=!0;if(Ne&&((j=w.createElement("div")).innerHTML="<div><div></div></div>",new Ne((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(j=pe(ke,"innerHTML"))&&j.set;n&&ce(ke,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),j=null})).observe(j,{childList:!0,subtree:!0}),j.innerHTML=""),Qe||(me||ge?(D=function(e,t){le.call(t,e)||p(e,t)},k=p):k=D=function(e,t){e[q]||(e[q]=E(!0),p(e,t))},je?(Ze=!1,function(){var e=pe(ke,P),t=e.value,n=function(e){var t=new CustomEvent(Y,{bubbles:!0});t.attrName=e,t.prevValue=Be.call(this,e),t.newValue=null,t[G]=t.attrChange=2,$e.call(this,e),Fe.call(this,t)},r=function(e,t){var n=We.call(this,e),r=n&&Be.call(this,e),o=new CustomEvent(Y,{bubbles:!0});_e.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,Fe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[q],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Y,{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,Fe.call(n,t))};e.value=function(e,i,a){e===Y&&this[W]&&this.setAttribute!==r&&(this[q]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},ce(ke,P,e)}()):Ne||(ie[P](Y,Ge),ie.setAttribute(q,1),ie.removeAttribute(q),Ze&&(A=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[q],o[q]=n=S(o),n){if(!(r in t))return H(0,o,r,t[r],n[r],X);if(n[r]!==t[r])return H(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return H(2,o,r,t[r],n[r],G)}},H=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,s(a)},S=function(e){for(var t,n,r={},o=e.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(t=o[i]).name)&&(r[n]=t.value);return r})),w[O]=function(e,t){if(n=e.toUpperCase(),Je&&(Je=!1,Ne?(M=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Ne((function(r){for(var o,i,a,s=0,u=r.length;s<u;s++)"childList"===(o=r[s]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,tt&&i[W]&&"style"!==o.attributeName&&(a=Be.call(i,o.attributeName))!==o.oldValue&&i[W](o.attributeName,o.oldValue,a))}))}(o(R),o(F)),(N=function(e){return M.observe(e,{childList:!0,subtree:!0}),e})(w),Re&&(ke.attachShadow=function(){return N(Re.apply(this,arguments))})):(L=[],w[P]("DOMNodeInserted",u(R)),w[P]("DOMNodeRemoved",u(F))),w[P](Q,l),w[P]("readystatechange",l),w.importNode=function(e,t){switch(e.nodeType){case 1:return f(w,Ve,[e,!!t]);case 11:for(var n=w.createDocumentFragment(),r=e.childNodes,o=r.length,i=0;i<o;i++)n.appendChild(w.importNode(r[i],!!t));return n;default:return Ie.call(e,!!t)}},ke.cloneNode=function(e){return f(this,Ie,[!!e])}),Ke)return Ke=!1;if(-2<ae.call(ne,Z+n)+ae.call(ne,K+n)&&d(e),!ee.test(n)||-1<ae.call(te,n))throw new Error("The type "+e+" is invalid");var n,i,a=function(){return c?w.createElement(p,n):w.createElement(p)},s=t||se,c=ue.call(s,B),p=c?t[B].toUpperCase():n;return c&&-1<ae.call(ne,K+p)&&d(p),i=ne.push((c?Z:K)+n)-1,oe=oe.concat(oe.length?",":"",c?p+'[is="'+e.toLowerCase()+'"]':p),a.prototype=re[i]=ue.call(s,"prototype")?s.prototype:Se(ke),oe.length&&r(w.querySelectorAll(oe),R),a},w.createElement=ze=function(e,t){var n=y(t),r=n?Ue.call(w,e,He(n)):Ue.call(w,e),o=""+e,i=ae.call(ne,(n?Z:K)+(n||o).toUpperCase()),s=-1<i;return n&&(r.setAttribute("is",n=n.toLowerCase()),s&&(s=a(o.toUpperCase(),n))),tt=!w.createElement.innerHTMLHelper,s&&k(r,re[i]),r}),m.prototype={constructor:m,define:be?function(e,t,n){if(n)g(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ae.set(t,r),ye.define(e,t)}}:g,get:be?function(e){return ye.get(e)||v(e)}:v,whenDefined:be?function(e){return we.race([ye.whenDefined(e),x(e)])}:x},!ye||/^force/.test(t.type))T();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[B]="a",(t.prototype=Se(De.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(w.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(De,[],e)}),{},"document-register-element-a")}catch(nt){T()}if(!t.noBuiltIn)try{if(Ue.call(w,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(rt){He=function(e){return{is:e.toLowerCase()}}}}(window);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(t,e){function n(t,e,n){var r={audio:!1,video:{mandatory:{chromeMediaSource:t?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(r.audio={mandatory:{chromeMediaSource:t?"screen":"desktop"},optional:[]}),e&&(r.video.mandatory.chromeMediaSourceId=e,r.audio&&r.audio.mandatory&&(r.audio.mandatory.chromeMediaSourceId=e)),r}function r(t){i?i.isLoaded?i.contentWindow.postMessage(t?t.forEach?{captureCustomSourceId:t}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout((function(){r(t)}),100):o((function(){r(t)}))}var i;function o(t){i?t():((i=document.createElement("iframe")).onload=function(){i.isLoaded=!0,t()},i.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",i.style.display="none",(document.body||document.documentElement).appendChild(i))}function a(){i?i.isLoaded?i.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(a,100):o(a)}window.getScreenId=function(t,e,i){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?e(null,"firefox",{video:{mozMediaSource:t,mediaSource:t}}):(window.addEventListener("message",(function t(r){r.data&&(r.data.chromeMediaSourceId&&("PermissionDeniedError"===r.data.chromeMediaSourceId?e("permission-denied"):e(null,r.data.chromeMediaSourceId,n(null,r.data.chromeMediaSourceId,r.data.canRequestAudioTrack)),window.removeEventListener("message",t)),r.data.chromeExtensionStatus&&(e(r.data.chromeExtensionStatus,null,n(r.data.chromeExtensionStatus)),window.removeEventListener("message",t)))})),i?setTimeout((function(){r(i)}),100):setTimeout(r,100)):e({video:!0})},window.getScreenConstraints=function(t){o((function(){getScreenId((function(e,n,r){r||(r={video:!0}),t(e,r.video)}))}))},window.getChromeExtensionStatus=function(t){navigator.mozGetUserMedia?t("installed-enabled"):(window.addEventListener("message",(function e(n){n.data&&n.data.chromeExtensionStatus&&(t(n.data.chromeExtensionStatus),window.removeEventListener("message",e))})),setTimeout(a,100))},e.getScreenId=getScreenId},"+FKC":function(t,e,n){"use strict";e.__esModule=!0;var r=n("bDgZ"),i=n("9m68").OpenViduLogger.getInstance(),o=function(){function t(t){this.stream=t,this.webRtcStatsEnabled=!1,this.statsInterval=1,this.stats={inbound:{audio:{bytesReceived:0,packetsReceived:0,packetsLost:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesDecoded:0,nackCount:0}},outbound:{audio:{bytesSent:0,packetsSent:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,nackCount:0}}}}return t.prototype.isEnabled=function(){return this.webRtcStatsEnabled},t.prototype.initWebRtcStats=function(){var t=this,e=localStorage.getItem("elastest-instrumentation");if(e){i.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),this.webRtcStatsEnabled=!0;var n=JSON.parse(e);return this.statsInterval=n.webrtc.interval,i.warn("localStorage item: "+JSON.stringify(n)),void(this.webRtcStatsIntervalId=setInterval((function(){t.sendStatsToHttpEndpoint(n)}),1e3*this.statsInterval))}i.debug("WebRtc stats not enabled")},t.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),i.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},t.prototype.getSelectedIceCandidateInfo=function(){var t=this;return new Promise((function(e,n){t.getStatsAgnostic(t.stream.getRTCPeerConnection(),(function(i){if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera")){var o=void 0,a=void 0,s=void 0,c={},u={};for(var l in i){var d=i[l];"localcandidate"===d.type?c[d.id]=d:"remotecandidate"===d.type?u[d.id]=d:"googCandidatePair"===d.type&&"true"===d.googActiveConnection&&(s=d,o=d.localCandidateId,a=d.remoteCandidateId)}var p=c[o];if(p){var h=t.stream.getLocalIceCandidateList().filter((function(t){return!!t.candidate&&t.candidate.indexOf(p.ipAddress)>=0&&t.candidate.indexOf(p.portNumber)>=0&&t.candidate.indexOf(p.priority)>=0}));p.raw=h[0]?h[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=u[a];f?(h=t.stream.getRemoteIceCandidateList().filter((function(t){return!!t.candidate&&t.candidate.indexOf(f.ipAddress)>=0&&t.candidate.indexOf(f.portNumber)>=0&&t.candidate.indexOf(f.priority)>=0})),f.raw=h[0]?h[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):f="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",e({googCandidatePair:s,localCandidate:p,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")}),(function(t){n(t)}))}))},t.prototype.sendStatsToHttpEndpoint=function(t){var e=this,n=function(n){var r=new XMLHttpRequest,o=t.webrtc.httpEndpoint;r.open("POST",o,!0),r.setRequestHeader("Content-type","application/json"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&i.log("WebRtc stats successfully sent to "+o+" for stream "+e.stream.streamId+" of connection "+e.stream.connection.connectionId)},r.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),(function(i){if(-1!==r.name.indexOf("Firefox"))i.forEach((function(r){var i={};if("inbound-rtp"===r.type&&null!==r.nackCount&&!1===r.isRemote&&r.id.startsWith("inbound")&&r.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+r.mediaType+"_"+r.ssrc,a={bytesReceived:(r.bytesReceived-e.stats.inbound[r.mediaType].bytesReceived)/e.statsInterval,jitter:1e3*r.jitter,packetsReceived:(r.packetsReceived-e.stats.inbound[r.mediaType].packetsReceived)/e.statsInterval,packetsLost:(r.packetsLost-e.stats.inbound[r.mediaType].packetsLost)/e.statsInterval},s={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===r.mediaType&&(a.framesDecoded=(r.framesDecoded-e.stats.inbound.video.framesDecoded)/e.statsInterval,a.nackCount=(r.nackCount-e.stats.inbound.video.nackCount)/e.statsInterval,s.framesDecoded="frames",s.nackCount="packets",e.stats.inbound.video.framesDecoded=r.framesDecoded,e.stats.inbound.video.nackCount=r.nackCount),e.stats.inbound[r.mediaType].bytesReceived=r.bytesReceived,e.stats.inbound[r.mediaType].packetsReceived=r.packetsReceived,e.stats.inbound[r.mediaType].packetsLost=r.packetsLost,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(i))}else"outbound-rtp"===r.type&&!1===r.isRemote&&r.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+r.mediaType+"_"+r.ssrc,a={bytesSent:(r.bytesSent-e.stats.outbound[r.mediaType].bytesSent)/e.statsInterval,packetsSent:(r.packetsSent-e.stats.outbound[r.mediaType].packetsSent)/e.statsInterval},s={bytesSent:"bytes",packetsSent:"packets"},"video"===r.mediaType&&(a.framesEncoded=(r.framesEncoded-e.stats.outbound.video.framesEncoded)/e.statsInterval,s.framesEncoded="frames",e.stats.outbound.video.framesEncoded=r.framesEncoded),e.stats.outbound[r.mediaType].bytesSent=r.bytesSent,e.stats.outbound[r.mediaType].packetsSent=r.packetsSent,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(i)))}));else if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera"))for(var o=0,a=Object.keys(i);o<a.length;o++){var s=i[a[o]];if("ssrc"===s.type){var c={};if("bytesReceived"in s&&("audio"===s.mediaType&&"audioOutputLevel"in s||"video"===s.mediaType&&"qpSum"in s)){var u="webrtc_inbound_"+s.mediaType+"_"+s.ssrc,l={bytesReceived:(s.bytesReceived-e.stats.inbound[s.mediaType].bytesReceived)/e.statsInterval,jitter:s.googJitterBufferMs,packetsReceived:(s.packetsReceived-e.stats.inbound[s.mediaType].packetsReceived)/e.statsInterval,packetsLost:(s.packetsLost-e.stats.inbound[s.mediaType].packetsLost)/e.statsInterval},d={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===s.mediaType&&(l.framesDecoded=(s.framesDecoded-e.stats.inbound.video.framesDecoded)/e.statsInterval,l.nackCount=(s.googNacksSent-e.stats.inbound.video.nackCount)/e.statsInterval,d.framesDecoded="frames",d.nackCount="packets",e.stats.inbound.video.framesDecoded=s.framesDecoded,e.stats.inbound.video.nackCount=s.googNacksSent),e.stats.inbound[s.mediaType].bytesReceived=s.bytesReceived,e.stats.inbound[s.mediaType].packetsReceived=s.packetsReceived,e.stats.inbound[s.mediaType].packetsLost=s.packetsLost,(c={"@timestamp":new Date(s.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:u,stream_type:"composed_metrics",units:d})[u]=l,n(JSON.stringify(c))}else"bytesSent"in s&&(u="webrtc_outbound_"+s.mediaType+"_"+s.ssrc,l={bytesSent:(s.bytesSent-e.stats.outbound[s.mediaType].bytesSent)/e.statsInterval,packetsSent:(s.packetsSent-e.stats.outbound[s.mediaType].packetsSent)/e.statsInterval},d={bytesSent:"bytes",packetsSent:"packets"},"video"===s.mediaType&&(l.framesEncoded=(s.framesEncoded-e.stats.outbound.video.framesEncoded)/e.statsInterval,d.framesEncoded="frames",e.stats.outbound.video.framesEncoded=s.framesEncoded),e.stats.outbound[s.mediaType].bytesSent=s.bytesSent,e.stats.outbound[s.mediaType].packetsSent=s.packetsSent,(c={"@timestamp":new Date(s.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:u,stream_type:"composed_metrics",units:d})[u]=l,n(JSON.stringify(c)))}}}),(function(t){i.log(t)}))},t.prototype.standardizeReport=function(t){i.log(t);var e={};return-1!==r.name.indexOf("Firefox")?(Object.keys(t).forEach((function(e){i.log(t[e])})),t):(t.result().forEach((function(t){var n={id:t.id,timestamp:t.timestamp,type:t.type};t.names().forEach((function(e){n[e]=t.stat(e)})),e[n.id]=n})),e)},t.prototype.getStatsAgnostic=function(t,e,n){var i=this;return-1!==r.name.indexOf("Firefox")?t.getStats(null).then((function(t){var n=i.standardizeReport(t);e(n)})).catch(n):-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera")?t.getStats((function(t){var n=i.standardizeReport(t);e(n)}),null,n):void 0},t}();e.WebRtcStats=o},"+ig+":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,!1,e,n)||this;return i.data=r,i}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.FilterEvent=o},"/dLB":function(t,e,n){"use strict";var r;e.__esModule=!0,(r=e.VideoInsertMode||(e.VideoInsertMode={})).AFTER="AFTER",r.APPEND="APPEND",r.BEFORE="BEFORE",r.PREPEND="PREPEND",r.REPLACE="REPLACE"},"/u9M":function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("LXjW")),i=r.tokenize,o=r.options.Options;function a(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(t){return t.replace(/"/g,""")}function c(t){if(!t)return"";var e=[];for(var n in t)e.push(n+'="'+s(t[n]+"")+'"');return e.join(" ")}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=new o(e);for(var n=i(t),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&e.nl2br)r.push("<br>\n");else if(l.isLink&&e.check(l)){var d=e.resolve(l),p=d.formatted,h=d.formattedHref,f=d.tagName,m=d.className,g=d.target,v=d.attributes,y="<"+f+' href="'+s(h)+'"';m&&(y+=' class="'+s(m)+'"'),g&&(y+=' target="'+s(g)+'"'),v&&(y+=" "+c(v)),y+=">"+a(p)+"</"+f+">",r.push(y)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(t){return u(this,t)}}})}catch(l){String.prototype.linkify||(String.prototype.linkify=function(t){return u(this,t)})}e.default=u},0:function(t,e,n){t.exports=n("zUnb")},"0srX":function(t,e,n){"use strict";n.r(e),n.d(e,"v1",(function(){return h})),n.d(e,"v3",(function(){return w})),n.d(e,"v4",(function(){return S})),n.d(e,"v5",(function(){return x}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=[],s=0;s<256;++s)a[s]=(s+256).toString(16).substr(1);var c,u,l=function(t,e){var n=e||0;return[a[t[n++]],a[t[n++]],a[t[n++]],a[t[n++]],"-",a[t[n++]],a[t[n++]],"-",a[t[n++]],a[t[n++]],"-",a[t[n++]],a[t[n++]],"-",a[t[n++]],a[t[n++]],a[t[n++]],a[t[n++]],a[t[n++]],a[t[n++]]].join("")},d=0,p=0,h=function(t,e,n){var r=e&&n||0,i=e||[],a=(t=t||{}).node||c,s=void 0!==t.clockseq?t.clockseq:u;if(null==a||null==s){var h=t.random||(t.rng||o)();null==a&&(a=c=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==s&&(s=u=16383&(h[6]<<8|h[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:p+1,g=f-d+(m-p)/1e4;if(g<0&&void 0===t.clockseq&&(s=s+1&16383),(g<0||f>d)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=f,p=m,u=s;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;var y=f/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=a[b];return e||l(i)},f=function(t,e,n){var r=function(t,r,i,o){var a=i&&o||0;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(t)),"string"==typeof r&&(r=function(t){var e=[];return t.replace(/[a-fA-F0-9]{2}/g,(function(t){e.push(parseInt(t,16))})),e}(r)),!Array.isArray(t))throw TypeError("value must be an array of bytes");if(!Array.isArray(r)||16!==r.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var s=n(r.concat(t));if(s[6]=15&s[6]|e,s[8]=63&s[8]|128,i)for(var c=0;c<16;++c)i[a+c]=s[c];return i||l(s)};try{r.name=t}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function m(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(t,e,n,r,i,o){return m((a=m(m(e,t),m(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function v(t,e,n,r,i,o,a){return g(e&n|~e&r,t,e,i,o,a)}function y(t,e,n,r,i,o,a){return g(e&r|n&~r,t,e,i,o,a)}function b(t,e,n,r,i,o,a){return g(e^n^r,t,e,i,o,a)}function _(t,e,n,r,i,o,a){return g(n^(e|~r),t,e,i,o,a)}var w=f("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Array(e.length);for(var n=0;n<e.length;n++)t[n]=e.charCodeAt(n)}return function(t){var e,n,r,i=[],o=32*t.length;for(e=0;e<o;e+=8)n=t[e>>5]>>>e%32&255,r=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16),i.push(r);return i}(function(t,e){var n,r,i,o,a;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var s=1732584193,c=-271733879,u=-1732584194,l=271733878;for(n=0;n<t.length;n+=16)r=s,i=c,o=u,a=l,s=v(s,c,u,l,t[n],7,-680876936),l=v(l,s,c,u,t[n+1],12,-389564586),u=v(u,l,s,c,t[n+2],17,606105819),c=v(c,u,l,s,t[n+3],22,-1044525330),s=v(s,c,u,l,t[n+4],7,-176418897),l=v(l,s,c,u,t[n+5],12,1200080426),u=v(u,l,s,c,t[n+6],17,-1473231341),c=v(c,u,l,s,t[n+7],22,-45705983),s=v(s,c,u,l,t[n+8],7,1770035416),l=v(l,s,c,u,t[n+9],12,-1958414417),u=v(u,l,s,c,t[n+10],17,-42063),c=v(c,u,l,s,t[n+11],22,-1990404162),s=v(s,c,u,l,t[n+12],7,1804603682),l=v(l,s,c,u,t[n+13],12,-40341101),u=v(u,l,s,c,t[n+14],17,-1502002290),s=y(s,c=v(c,u,l,s,t[n+15],22,1236535329),u,l,t[n+1],5,-165796510),l=y(l,s,c,u,t[n+6],9,-1069501632),u=y(u,l,s,c,t[n+11],14,643717713),c=y(c,u,l,s,t[n],20,-373897302),s=y(s,c,u,l,t[n+5],5,-701558691),l=y(l,s,c,u,t[n+10],9,38016083),u=y(u,l,s,c,t[n+15],14,-660478335),c=y(c,u,l,s,t[n+4],20,-405537848),s=y(s,c,u,l,t[n+9],5,568446438),l=y(l,s,c,u,t[n+14],9,-1019803690),u=y(u,l,s,c,t[n+3],14,-187363961),c=y(c,u,l,s,t[n+8],20,1163531501),s=y(s,c,u,l,t[n+13],5,-1444681467),l=y(l,s,c,u,t[n+2],9,-51403784),u=y(u,l,s,c,t[n+7],14,1735328473),s=b(s,c=y(c,u,l,s,t[n+12],20,-1926607734),u,l,t[n+5],4,-378558),l=b(l,s,c,u,t[n+8],11,-2022574463),u=b(u,l,s,c,t[n+11],16,1839030562),c=b(c,u,l,s,t[n+14],23,-35309556),s=b(s,c,u,l,t[n+1],4,-1530992060),l=b(l,s,c,u,t[n+4],11,1272893353),u=b(u,l,s,c,t[n+7],16,-155497632),c=b(c,u,l,s,t[n+10],23,-1094730640),s=b(s,c,u,l,t[n+13],4,681279174),l=b(l,s,c,u,t[n],11,-358537222),u=b(u,l,s,c,t[n+3],16,-722521979),c=b(c,u,l,s,t[n+6],23,76029189),s=b(s,c,u,l,t[n+9],4,-640364487),l=b(l,s,c,u,t[n+12],11,-421815835),u=b(u,l,s,c,t[n+15],16,530742520),s=_(s,c=b(c,u,l,s,t[n+2],23,-995338651),u,l,t[n],6,-198630844),l=_(l,s,c,u,t[n+7],10,1126891415),u=_(u,l,s,c,t[n+14],15,-1416354905),c=_(c,u,l,s,t[n+5],21,-57434055),s=_(s,c,u,l,t[n+12],6,1700485571),l=_(l,s,c,u,t[n+3],10,-1894986606),u=_(u,l,s,c,t[n+10],15,-1051523),c=_(c,u,l,s,t[n+1],21,-2054922799),s=_(s,c,u,l,t[n+8],6,1873313359),l=_(l,s,c,u,t[n+15],10,-30611744),u=_(u,l,s,c,t[n+6],15,-1560198380),c=_(c,u,l,s,t[n+13],21,1309151649),s=_(s,c,u,l,t[n+4],6,-145523070),l=_(l,s,c,u,t[n+11],10,-1120210379),u=_(u,l,s,c,t[n+2],15,718787259),c=_(c,u,l,s,t[n+9],21,-343485551),s=m(s,r),c=m(c,i),u=m(u,o),l=m(l,a);return[s,c,u,l]}(function(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t[e/8])<<e%32;return n}(t),8*t.length))})),S=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var a=0;a<16;++a)e[r+a]=i[a];return e||l(i)};function C(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:return e^n^r;case 2:return e&n^e&r^n&r;case 3:return e^n^r}}function O(t,e){return t<<e|t>>>32-e}var x=f("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=new Array(r.length);for(var i=0;i<r.length;i++)t[i]=r.charCodeAt(i)}t.push(128);var o=Math.ceil((t.length/4+2)/16),a=new Array(o);for(i=0;i<o;i++){a[i]=new Array(16);for(var s=0;s<16;s++)a[i][s]=t[64*i+4*s]<<24|t[64*i+4*s+1]<<16|t[64*i+4*s+2]<<8|t[64*i+4*s+3]}for(a[o-1][14]=8*(t.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(t.length-1)&4294967295,i=0;i<o;i++){for(var c=new Array(80),u=0;u<16;u++)c[u]=a[i][u];for(u=16;u<80;u++)c[u]=O(c[u-3]^c[u-8]^c[u-14]^c[u-16],1);var l=n[0],d=n[1],p=n[2],h=n[3],f=n[4];for(u=0;u<80;u++){var m=Math.floor(u/20),g=O(l,5)+C(m,d,p,h)+f+e[m]+c[u]>>>0;f=h,h=p,p=O(d,30)>>>0,d=l,l=g}n[0]=n[0]+l>>>0,n[1]=n[1]+d>>>0,n[2]=n[2]+p>>>0,n[3]=n[3]+h>>>0,n[4]=n[4]+f>>>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]]}))},"0wxW":function(t,e,n){var r=n("de4E"),i=n("pLL0");e.JsonRPC=r,e.XmlRPC=i},"1Kca":function(t,e,n){"use strict";var r=n("dY/r");t.exports=function(t){var e,i={stun:(t||{}).stun||n("KFtI"),turn:(t||{}).turn||n("hw9W")},o=(t||{}).turnCount||0;function a(t,e){for(var n,o=[],a=[].concat(i[t]);a.length&&o.length<e;)n=Math.random()*a.length|0,o=o.concat(a.splice(n,1));return o.map((function(e){return"string"==typeof e||e instanceof String?r(t+":"+e):e}))}return e=[].concat(a("stun",(t||{}).stunCount||2)),o&&(e=e.concat(a("turn",o))),e}},"5kmN":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("1Kca"),a=n("0srX"),s=n("bDgZ"),c=n("9m68").OpenViduLogger.getInstance(),u=function(){function t(t){var e=this;this.configuration=t,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:o(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=t.id?t.id:this.generateUniqueId(),this.pc.onicecandidate=function(t){if(t.candidate){var n=t.candidate;n?(e.localCandidatesQueue.push({candidate:n.candidate}),e.candidategatheringdone=!1,e.configuration.onicecandidate(t.candidate)):e.candidategatheringdone||(e.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===e.pc.signalingState)for(;e.iceCandidateList.length>0;){var t=e.iceCandidateList.shift();e.pc.addIceCandidate(t)}},this.start()}return t.prototype.start=function(){var t=this;return new Promise((function(e,n){if("closed"===t.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),t.configuration.mediaStream){for(var r=0,i=t.configuration.mediaStream.getTracks();r<i.length;r++)t.pc.addTrack(i[r],t.configuration.mediaStream);e()}}))},t.prototype.dispose=function(){if(c.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},t.prototype.generateOffer=function(){var t=this;return new Promise((function(e,n){var r,i=!0;t.configuration.mediaConstraints&&(r="boolean"!=typeof t.configuration.mediaConstraints.audio||t.configuration.mediaConstraints.audio,i="boolean"!=typeof t.configuration.mediaConstraints.video||t.configuration.mediaConstraints.video);var o={offerToReceiveAudio:"sendonly"!==t.configuration.mode&&r,offerToReceiveVideo:"sendonly"!==t.configuration.mode&&i};c.debug("RTCPeerConnection constraints: "+JSON.stringify(o)),"Safari"===s.name&&-1!==s.ua.indexOf("Safari")?(r&&t.pc.addTransceiver("audio",{direction:t.configuration.mode}),i&&t.pc.addTransceiver("video",{direction:t.configuration.mode}),t.pc.createOffer().then((function(e){return c.debug("Created SDP offer"),t.pc.setLocalDescription(e)})).then((function(){var r=t.pc.localDescription;r?(c.debug("Local description set",r.sdp),e(r.sdp)):n("Local description is not defined")})).catch((function(t){return n(t)}))):t.pc.createOffer(o).then((function(e){return c.debug("Created SDP offer"),t.pc.setLocalDescription(e)})).then((function(){var r=t.pc.localDescription;r?(c.debug("Local description set",r.sdp),e(r.sdp)):n("Local description is not defined")})).catch((function(t){return n(t)}))}))},t.prototype.processAnswer=function(t,e){var n=this;return new Promise((function(r,i){var o={type:"answer",sdp:t};c.debug("SDP answer received, setting remote description"),"closed"===n.pc.signalingState&&i("RTCPeerConnection is closed"),n.setRemoteDescription(o,e,r,i)}))},t.prototype.setRemoteDescription=function(t,e,n,r){var i=this;s.isIonicIos?e?setTimeout((function(){c.info("setRemoteDescription run after timeout for Ionic iOS device"),i.pc.setRemoteDescription(new RTCSessionDescription(t)).then((function(){return n()})).catch((function(t){return r(t)}))}),250):this.pc.setRemoteDescription(new RTCSessionDescription(t)).then((function(){return n()})).catch((function(t){return r(t)})):this.pc.setRemoteDescription(t).then((function(){return n()})).catch((function(t){return r(t)}))},t.prototype.addIceCandidate=function(t){var e=this;return new Promise((function(n,r){switch(c.debug("Remote ICE candidate received",t),e.remoteCandidatesQueue.push(t),e.pc.signalingState){case"closed":r(new Error("PeerConnection object is closed"));break;case"stable":e.pc.remoteDescription?e.pc.addIceCandidate(t).then((function(){return n()})).catch((function(t){return r(t)})):(e.iceCandidateList.push(t),n());break;default:e.iceCandidateList.push(t),n()}}))},t.prototype.addIceConnectionStateChangeListener=function(t){var e=this;this.pc.oniceconnectionstatechange=function(){switch(e.pc.iceConnectionState){case"disconnected":c.warn("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "disconnected". Possible network disconnection');break;case"failed":c.error("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') to "failed"');break;case"closed":c.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "closed"');break;case"new":c.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "new"');break;case"checking":c.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "checking"');break;case"connected":c.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "connected"');break;case"completed":c.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "completed"')}}},t.prototype.generateUniqueId=function(){return a.v4()},t}();e.WebRtcPeer=u;var l=function(t){function e(e){return e.mode="recvonly",t.call(this,e)||this}return i(e,t),e}(u);e.WebRtcPeerRecvonly=l;var d=function(t){function e(e){return e.mode="sendonly",t.call(this,e)||this}return i(e,t),e}(u);e.WebRtcPeerSendonly=d;var p=function(t){function e(e){return e.mode="sendrecv",t.call(this,e)||this}return i(e,t),e}(u);e.WebRtcPeerSendrecv=p},"6+/i":function(t,e,n){var r;!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function s(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function c(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=c("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=c("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=s(i[r],e))&&i[r].splice(n,1);return this},o.off=c("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=c("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=c("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},void 0===(r=(function(){return i}).call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof window?window:this||{})},"74bm":function(t,e,n){"use strict";e.__esModule=!0;var r=n("BwMD"),i=n("Tt94"),o=n("9m68").OpenViduLogger.getInstance(),a=function(){function t(t,e){this.handlers={},this.type=t,this.options=e}return t.prototype.execMethod=function(t,e){var n=this;return new Promise((function(a,s){var c;if(o.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof e)try{c=JSON.stringify(e)}catch(l){var u="'params' property must be a JSON formatted object";o.error(u),s(u)}else c=e;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:t,params:c},(function(e,u){if(e)o.error("Error executing filter method for Stream "+n.stream.streamId,e),s(401===e.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):e);else{o.info("Filter method successfully executed on Stream "+n.stream.streamId);var l=Object.assign({},n.stream.filter);n.stream.filter.lastExecMethod={method:t,params:JSON.parse(c)},n.stream.session.emitEvent("streamPropertyChanged",[new r.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new r.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),a()}}))}))},t.prototype.addEventListener=function(t,e){var n=this;return new Promise((function(r,a){o.info("Adding filter event listener to event "+t+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:t},(function(s,c){s?(o.error("Error adding filter event listener to event "+t+"for Stream "+n.stream.streamId,s),a(401===s.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(n.handlers[t]=e,o.info("Filter event listener to event "+t+" successfully applied on Stream "+n.stream.streamId),r())}))}))},t.prototype.removeEventListener=function(t){var e=this;return new Promise((function(n,r){o.info("Removing filter event listener to event "+t+" to stream "+e.stream.streamId),e.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:e.stream.streamId,eventType:t},(function(a,s){a?(o.error("Error removing filter event listener to event "+t+"for Stream "+e.stream.streamId,a),r(401===a.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(delete e.handlers[t],o.info("Filter event listener to event "+t+" successfully removed on Stream "+e.stream.streamId),n())}))}))},t}();e.Filter=a},"8KVD":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.connection=i,a.reason=o,a}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.ConnectionEvent=o},"9m68":function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(){this.logger=window.console,this.LOG_FNS=[this.logger.log,this.logger.debug,this.logger.info,this.logger.warn,this.logger.error],this.isProdMode=!1}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isProdMode||this.LOG_FNS[0].apply(this.logger,arguments)},t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isProdMode||this.LOG_FNS[1].apply(this.logger,arguments)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isProdMode||this.LOG_FNS[2].apply(this.logger,arguments)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isProdMode||this.LOG_FNS[3].apply(this.logger,arguments)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOG_FNS[4].apply(this.logger,arguments)},t.prototype.enableProdMode=function(){this.isProdMode=!0},t}();e.OpenViduLogger=r},AeG9:function(t,e,n){var r=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(h){r=!0}Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i});var i=n("txJ/").EventEmitter,o=n("HgqT"),a=n("0wxW"),s=n("gUCu");function c(t){if(t){if(t instanceof Function)return{send:t};if(t.send instanceof Function)return t;if(t.postMessage instanceof Function)return t.send=t.postMessage,t;if(t.write instanceof Function)return t.send=t.write,t;if(void 0===t.onmessage&&!(t.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function u(t,e){r?(this.method=t,this.params=e):(Object.defineProperty(this,"method",{value:t,enumerable:!0}),Object.defineProperty(this,"params",{value:e,enumerable:!0}))}function l(t,e,n,a){var l=this;if(!t)throw new SyntaxError("Packer is not defined");if(!t.pack||!t.unpack)throw new SyntaxError("Packer is invalid");var d=function(t){if(!t)return{};for(var e in t){var n=t[e];"string"==typeof n&&(t[e]={response:n})}return t}(t.responseMethods);if(e instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");a=e,n=void 0,e=void 0}if(e&&e.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");a=n,n=e,e=void 0}if(n instanceof Function){if(null!=a)throw new SyntaxError("There can't be parameters after onRequest");a=n,n=void 0}if(n&&n.send instanceof Function&&a&&!(a instanceof Function))throw new SyntaxError("Only a function can be after transport");e=e||{},i.call(this),a&&this.on("request",a),r?this.peerID=e.peerID:Object.defineProperty(this,"peerID",{value:e.peerID});var p=e.max_retries||0;function f(t){l.decode(t.data||t)}this.getTransport=function(){return n},this.setTransport=function(t){n&&(n.removeEventListener?n.removeEventListener("message",f):n.removeListener&&n.removeListener("data",f)),t&&(t.addEventListener?t.addEventListener("message",f):t.addListener&&t.addListener("data",f)),n=c(t)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=e.request_timeout||5e3,g=e.ping_request_timeout||m,v=e.response_timeout||5e3,y=e.duplicates_timeout||5e3,b=0,_=new s,w=new s,S=new s,C={};function O(t,e){var n=setTimeout((function(){S.remove(t,e)}),y);S.set(n,t,e)}function x(e,n,i,o,a){u.call(this,e,n),this.getTransport=function(){return a},this.setTransport=function(t){a=c(t)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var s=w.get(i,o);a||l.getTransport()||(r?this.duplicated=Boolean(s):Object.defineProperty(this,"duplicated",{value:Boolean(s)}));var p=d[e];this.pack=t.pack.bind(t,this,i),this.reply=function(e,n,r){if(e instanceof Function||e&&e.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");r=e,n=null,e=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");r=n,n=null}var a;return r=c(r),s&&clearTimeout(s.timeout),null!=o&&(e&&(e.dest=o),n&&(n.dest=o)),e||null!=n?(null!=l.peerID&&(e?e.from=l.peerID:n.from=l.peerID),a=t.pack(a=p?null==p.error&&e?{error:e}:{method:e?p.error:p.response,params:e||n}:{error:e,result:n},i)):a=s?s.message:t.pack({result:null},i),function(t,e,n){var r={message:t,timeout:setTimeout((function(){w.remove(e,n)}),v)};w.set(r,e,n)}(a,i,o),(r=r||this.getTransport()||l.getTransport())?r.send(a):a}}function E(t){var e=C[t];if(e){delete C[t];var n=_.pop(e.id,e.dest);n&&(clearTimeout(n.timeout),O(e.id,e.dest))}}o(x,u),this.cancel=function(t){if(t)return E(t);for(var t in C)E(t)},this.close=function(){var t=this.getTransport();t&&t.close&&t.close(4003,"Cancel request"),this.cancel(),S.forEach(clearTimeout),w.forEach((function(t){clearTimeout(t.timeout)}))},this.encode=function(e,n,r,i,o){if(n instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=n,i=void 0,r=void 0,n=void 0}else if(r instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=r,i=void 0,r=void 0}else if(i instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=i,i=void 0}null!=l.peerID&&((n=n||{}).from=l.peerID),null!=r&&((n=n||{}).dest=r);var a={method:e,params:n};if(o){var s=b++,u=0;function h(t,e){l.cancel(a),o(t,e)}var f={message:a=t.pack(a,s),callback:h,responseMethods:d[e]||{}},v=c(i);function y(t){return f.timeout=setTimeout(O,("ping"===e?g:m)*Math.pow(2,u++)),C[a]={id:s,dest:r},_.set(f,s,r),(t=t||v||l.getTransport())?t.send(a):a}function w(t){t=c(t),console.warn(u+" retry for request message:",a);var e=S.pop(s,r);return clearTimeout(e),y(t)}function O(){if(u<p)return w(i);var t=new Error("Request has timed out");t.request=a,t.retry=w,h(t)}return y(i)}return a=t.pack(a),(i=i||this.getTransport())?i.send(a):a},this.decode=function(e,n){if(!e)throw new TypeError("Message is not defined");try{e=t.unpack(e)}catch(h){return console.debug(h,e)}var r=e.id,i=e.ack,o=e.method,a=e.params||{},s=a.from,d=a.dest;if(null==l.peerID||s!=l.peerID){if(null==r&&null==i){var p=new u(o,a);if(l.emit("request",p))return;return p}if(o){if(null==d||d==l.peerID){if(v=_.get(i,s)){var f=v.responseMethods;return o==f.error?C(v,a):o==f.response?C(v,null,a):b()}if(y=S.get(i,s))return E(y)}return b()}var m=e.error,g=e.result;if(!(m&&m.dest&&m.dest!=l.peerID||g&&g.dest&&g.dest!=l.peerID)){var v,y;if(!(v=_.get(i,s)))return(y=S.get(i,s))?E(y):console.warn("No callback was defined for this message",e);C(v,m,g)}}function b(){if(n=c(n)||l.getTransport()){var t=w.get(r,s);if(t)return n.send(t.message)}var e=new x(o,a,null!=r?r:i,s,n);if(!l.emit("request",e))return e}function C(t,e,n){t.callback(e,n)}function E(t){console.warn("Response already processed",e),clearTimeout(t),O(i,s)}}}o(l,i),l.RpcNotification=u,t.exports=l;var d=n("SYuc"),p=n("ee8k");(l.clients=d).transports=p,l.packers=a},BwMD:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i,o,a){var s=t.call(this,!1,e,"streamPropertyChanged")||this;return s.stream=n,s.changedProperty=r,s.newValue=i,s.oldValue=o,s.reason=a,s}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.StreamPropertyChangedEvent=o},DPKQ:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("74bm"),a=n("bk74"),s=n("Dztv"),c=n("5kmN"),u=n("+FKC"),l=n("e8ps"),d=n("HxXY"),p=n("BwMD"),h=n("Tt94"),f=n("ttXH"),m=n("bDgZ"),g=n("9m68").OpenViduLogger.getInstance(),v=function(t){function e(e,n){var r=t.call(this)||this;return r.isSubscribeToRemote=!1,r.isLocalStreamReadyToPublish=!1,r.isLocalStreamPublished=!1,r.publishedOnce=!1,r.publisherStartSpeakingEventEnabled=!1,r.publisherStartSpeakingEventEnabledOnce=!1,r.publisherStopSpeakingEventEnabled=!1,r.publisherStopSpeakingEventEnabledOnce=!1,r.volumeChangeEventEnabled=!1,r.volumeChangeEventEnabledOnce=!1,r.session=e,n.hasOwnProperty("id")?(r.inboundStreamOpts=n,r.streamId=r.inboundStreamOpts.id,r.creationTime=r.inboundStreamOpts.createdAt,r.hasAudio=r.inboundStreamOpts.hasAudio,r.hasVideo=r.inboundStreamOpts.hasVideo,r.hasAudio&&(r.audioActive=r.inboundStreamOpts.audioActive),r.hasVideo&&(r.videoActive=r.inboundStreamOpts.videoActive,r.typeOfVideo=r.inboundStreamOpts.typeOfVideo?r.inboundStreamOpts.typeOfVideo:void 0,r.frameRate=-1===r.inboundStreamOpts.frameRate?void 0:r.inboundStreamOpts.frameRate,r.videoDimensions=r.inboundStreamOpts.videoDimensions),r.inboundStreamOpts.filter&&Object.keys(r.inboundStreamOpts.filter).length>0&&(r.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(r.inboundStreamOpts.filter.lastExecMethod).length&&delete r.inboundStreamOpts.filter.lastExecMethod,r.filter=r.inboundStreamOpts.filter)):(r.outboundStreamOpts=n,r.hasAudio=r.isSendAudio(),r.hasVideo=r.isSendVideo(),r.hasAudio&&(r.audioActive=!!r.outboundStreamOpts.publisherProperties.publishAudio),r.hasVideo&&(r.videoActive=!!r.outboundStreamOpts.publisherProperties.publishVideo,r.frameRate=r.outboundStreamOpts.publisherProperties.frameRate,r.typeOfVideo="undefined"!=typeof MediaStreamTrack&&r.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":r.isSendScreen()?"SCREEN":"CAMERA"),r.outboundStreamOpts.publisherProperties.filter&&(r.filter=r.outboundStreamOpts.publisherProperties.filter)),r.ee.on("mediastream-updated",(function(){r.streamManager.updateMediaStream(r.mediaStream),g.debug("Video srcObject ["+r.mediaStream+"] updated in stream ["+r.streamId+"]")})),r}return i(e,t),e.prototype.on=function(e,n){return t.prototype.onAux.call(this,e,"Event '"+e+"' triggered by stream '"+this.streamId+"'",n),this},e.prototype.once=function(e,n){return t.prototype.onceAux.call(this,e,"Event '"+e+"' triggered once by stream '"+this.streamId+"'",n),this},e.prototype.off=function(e,n){return t.prototype.off.call(this,e,n),this},e.prototype.applyFilter=function(t,e){var n=this;return new Promise((function(r,i){g.info("Applying filter to stream "+n.streamId),"string"!=typeof(e=e||{})&&(e=JSON.stringify(e)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:t,options:e},(function(a,s){if(a)g.error("Error applying filter for Stream "+n.streamId,a),i(401===a.code?new h.OpenViduError(h.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):a);else{g.info("Filter successfully applied on Stream "+n.streamId);var c=n.filter;n.filter=new o.Filter(t,e),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,c,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,c,"applyFilter")]),r(n.filter)}}))}))},e.prototype.removeFilter=function(){var t=this;return new Promise((function(e,n){g.info("Removing filter of stream "+t.streamId),t.session.openvidu.sendRequest("removeFilter",{streamId:t.streamId},(function(r,i){if(r)g.error("Error removing filter for Stream "+t.streamId,r),n(401===r.code?new h.OpenViduError(h.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):r);else{g.info("Filter successfully removed from Stream "+t.streamId);var o=t.filter;delete t.filter,t.session.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(t.session,t,"filter",t.filter,o,"applyFilter")]),t.streamManager.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(t.streamManager,t,"filter",t.filter,o,"applyFilter")]),e()}}))}))},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(t){this.mediaStream=t},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.subscribeToMyRemote=function(t){this.isSubscribeToRemote=t},e.prototype.setOutboundStreamOptions=function(t){this.outboundStreamOpts=t},e.prototype.subscribe=function(){var t=this;return new Promise((function(e,n){t.initWebRtcPeerReceive(!1).then((function(){e()})).catch((function(t){n(t)}))}))},e.prototype.publish=function(){var t=this;return new Promise((function(e,n){t.isLocalStreamReadyToPublish?t.initWebRtcPeerSend(!1).then((function(){e()})).catch((function(t){n(t)})):t.ee.once("stream-ready-to-publish",(function(){t.publish().then((function(){e()})).catch((function(t){n(t)}))}))}))},e.prototype.disposeWebRtcPeer=function(){this.webRtcPeer&&(this.webRtcPeer.dispose(),this.stopWebRtcStats()),g.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach((function(t){t.stop()})),this.mediaStream.getVideoTracks().forEach((function(t){t.stop()})),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach((function(t){t.stop()})),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach((function(t){t.stop()})),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),g.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},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 t="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return"Electron"===m.name&&(t="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&t},e.prototype.enableStartSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabled||(this.publisherStartSpeakingEventEnabled=!0,this.speechEvent.on("speaking",(function(){t.session.emitEvent("publisherStartSpeaking",[new l.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)]),t.publisherStartSpeakingEventEnabledOnce=!1})))},e.prototype.enableOnceStartSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabledOnce||(this.publisherStartSpeakingEventEnabledOnce=!0,this.speechEvent.once("speaking",(function(){t.publisherStartSpeakingEventEnabledOnce&&t.session.emitEvent("publisherStartSpeaking",[new l.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)]),t.disableStartSpeakingEvent(!0)})))},e.prototype.disableStartSpeakingEvent=function(t){if(this.speechEvent){if(this.publisherStartSpeakingEventEnabledOnce=!1,t){if(this.publisherStartSpeakingEventEnabled)return}else this.publisherStartSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},e.prototype.enableStopSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabled||(this.publisherStopSpeakingEventEnabled=!0,this.speechEvent.on("stopped_speaking",(function(){t.session.emitEvent("publisherStopSpeaking",[new l.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)]),t.publisherStopSpeakingEventEnabledOnce=!1})))},e.prototype.enableOnceStopSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabledOnce||(this.publisherStopSpeakingEventEnabledOnce=!0,this.speechEvent.once("stopped_speaking",(function(){t.publisherStopSpeakingEventEnabledOnce&&t.session.emitEvent("publisherStopSpeaking",[new l.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)]),t.disableStopSpeakingEvent(!0)})))},e.prototype.disableStopSpeakingEvent=function(t){if(this.speechEvent){if(this.publisherStopSpeakingEventEnabledOnce=!1,t){if(this.publisherStopSpeakingEventEnabled)return}else this.publisherStopSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},e.prototype.enableVolumeChangeEvent=function(t){var e=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabled&&!t||(this.volumeChangeEventEnabled=!0,this.speechEvent.on("volume_change",(function(t){var n={newValue:t,oldValue:e.speechEvent.oldVolumeValue};e.speechEvent.oldVolumeValue=t,e.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(e.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabled=!0},e.prototype.enableOnceVolumeChangeEvent=function(t){var e=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabledOnce&&!t||(this.volumeChangeEventEnabledOnce=!0,this.speechEvent.once("volume_change",(function(t){var n={newValue:t,oldValue:e.speechEvent.oldVolumeValue};e.speechEvent.oldVolumeValue=t,e.disableVolumeChangeEvent(!0),e.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(e.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabledOnce=!0},e.prototype.disableVolumeChangeEvent=function(t){if(this.speechEvent){if(this.volumeChangeEventEnabledOnce=!1,t){if(this.volumeChangeEventEnabled)return}else this.volumeChangeEventEnabled=!1;this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var t=this;return new Promise((function(e,n){t.webRtcStats.getSelectedIceCandidateInfo().then((function(t){return e(t)})).catch((function(t){return n(t)}))}))},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 g.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Publisher stream '+this.streamId+"will force a reconnection"),!0;var t=this.getRTCPeerConnection().iceConnectionState;return"disconnected"===t||"failed"===t},e.prototype.setSpeechEventIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var t=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};t.interval="number"==typeof t.interval?t.interval:100,t.threshold="number"==typeof t.threshold?t.threshold:-50,this.speechEvent=f(this.mediaStream,t)}return!0}return!1},e.prototype.initWebRtcPeerSend=function(t){var e=this;return new Promise((function(n,r){t||e.initHarkEvents();var i={audio:e.isSendAudio(),video:e.isSendVideo()},o={mediaStream:e.mediaStream,mediaConstraints:i,onicecandidate:e.connection.sendIceCandidate.bind(e.connection),iceServers:e.getIceServersConf(),simulcast:!1};t&&e.disposeWebRtcPeer(),e.webRtcPeer=e.displayMyRemote()?new c.WebRtcPeerSendrecv(o):new c.WebRtcPeerSendonly(o),e.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+e.connection.connectionId),e.webRtcPeer.generateOffer().then((function(i){!function(i){g.debug("Sending SDP offer to publish as "+e.streamId,i);var o,a=t?"reconnectStream":"publishVideo";if(t)o={stream:e.streamId};else{var s="";e.isSendVideo()&&(s="undefined"!=typeof MediaStreamTrack&&e.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":e.isSendScreen()?"SCREEN":"CAMERA"),o={doLoopback:e.displayMyRemote()||!1,hasAudio:e.isSendAudio(),hasVideo:e.isSendVideo(),audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:s,frameRate:e.frameRate?e.frameRate:-1,videoDimensions:JSON.stringify(e.videoDimensions),filter:e.outboundStreamOpts.publisherProperties.filter}}o.sdpOffer=i,e.session.openvidu.sendRequest(a,o,(function(i,o){i?r(401===i.code?new h.OpenViduError(h.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(i)):e.webRtcPeer.processAnswer(o.sdpAnswer,!1).then((function(){e.streamId=o.id,e.creationTime=o.createdAt,e.isLocalStreamPublished=!0,e.publishedOnce=!0,e.displayMyRemote()&&(e.localMediaStreamWhenSubscribedToRemote=e.mediaStream,e.remotePeerSuccessfullyEstablished()),e.ee.emitEvent(t?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),e.initWebRtcStats(),g.info("'Publisher' ("+e.streamId+") successfully "+(t?"reconnected":"published")+" to session"),n()})).catch((function(t){r(t)}))}))}(i)})).catch((function(t){r(new Error("(publish) SDP offer error: "+JSON.stringify(t)))}))}))},e.prototype.initWebRtcPeerReceive=function(t){var e=this;return new Promise((function(n,r){var i={audio:e.inboundStreamOpts.hasAudio,video:e.inboundStreamOpts.hasVideo};g.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",i);var o={onicecandidate:e.connection.sendIceCandidate.bind(e.connection),mediaConstraints:i,iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=new c.WebRtcPeerRecvonly(o),e.webRtcPeer.addIceConnectionStateChangeListener(e.streamId),e.webRtcPeer.generateOffer().then((function(i){!function(i){g.debug("Sending SDP offer to subscribe to "+e.streamId,i);var o=t?"reconnectStream":"receiveVideoFrom",a={sdpOffer:i};a[t?"stream":"sender"]=e.streamId,e.session.openvidu.sendRequest(o,a,(function(i,o){i?r(new Error("Error on recvVideoFrom: "+JSON.stringify(i))):(e.session.isFirstIonicIosSubscriber&&(e.session.isFirstIonicIosSubscriber=!1,setTimeout((function(){e.session.countDownForIonicIosSubscribersActive=!1}),400)),e.webRtcPeer.processAnswer(o.sdpAnswer,e.session.countDownForIonicIosSubscribersActive).then((function(){g.info("'Subscriber' ("+e.streamId+") successfully "+(t?"reconnected":"subscribed")),e.remotePeerSuccessfullyEstablished(),e.initWebRtcStats(),n()})).catch((function(t){r(t)})))}))}(i)})).catch((function(t){r(new Error("(subscribe) SDP offer error: "+JSON.stringify(t)))}))}))},e.prototype.remotePeerSuccessfullyEstablished=function(){var t;this.mediaStream=new MediaStream;for(var e=0,n=this.webRtcPeer.pc.getReceivers();e<n.length;e++)(t=n[e]).track&&this.mediaStream.addTrack(t.track);if(g.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof a.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var r=!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=r}this.mediaStream.getVideoTracks()[0]&&(r=!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=r)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},e.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.streamManager.remote&&(this.session.startSpeakingEventsEnabled&&this.enableStartSpeakingEvent(),this.session.startSpeakingEventsEnabledOnce&&this.enableOnceStartSpeakingEvent(),this.session.stopSpeakingEventsEnabled&&this.enableStopSpeakingEvent(),this.session.stopSpeakingEventsEnabledOnce&&this.enableOnceStopSpeakingEvent()),this.volumeChangeEventEnabled&&this.enableVolumeChangeEvent(!0),this.volumeChangeEventEnabledOnce&&this.enableOnceVolumeChangeEvent(!0))},e.prototype.initWebRtcStats=function(){this.webRtcStats=new u.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 t=this;return new Promise((function(e,n){t.isLocal()?t.getRTCPeerConnection().getSenders().forEach((function(e){return e.getStats().then((function(e){e.forEach((function(e){if(t.isReportWanted(e)){var n={};n.type=e.type,n.timestamp=e.timestamp,n.id=e.id,"outbound-rtp"===e.type&&(n.ssrc=e.ssrc,n.firCount=e.firCount,n.pliCount=e.pliCount,n.nackCount=e.nackCount,n.qpSum=e.qpSum,n.mediaType=e.kind?e.kind:e.mediaType?e.mediaType:-1!==e.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesEncoded=e.framesEncoded),n.packetsSent=e.packetsSent,n.bytesSent=e.bytesSent),"candidate-pair"===e.type&&void 0!==e.totalRoundTripTime&&(n.availableOutgoingBitrate=e.availableOutgoingBitrate,n.rtt=e.currentRoundTripTime,n.averageRtt=e.totalRoundTripTime/e.responsesReceived),g.log(n)}}))}))})):t.getRTCPeerConnection().getReceivers().forEach((function(e){return e.getStats().then((function(e){e.forEach((function(e){if(t.isReportWanted(e)){var n={};n.type=e.type,n.timestamp=e.timestamp,n.id=e.id,"inbound-rtp"===e.type&&(n.ssrc=e.ssrc,n.firCount=e.firCount,n.pliCount=e.pliCount,n.nackCount=e.nackCount,n.qpSum=e.qpSum,n.mediaType=e.kind?e.kind:e.mediaType?e.mediaType:-1!==e.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesDecoded=e.framesDecoded),n.packetsReceived=e.packetsReceived,n.packetsLost=e.packetsLost,n.jitter=e.jitter,n.bytesReceived=e.bytesReceived),"candidate-pair"===e.type&&void 0!==e.totalRoundTripTime&&(n.availableIncomingBitrate=e.availableIncomingBitrate,n.rtt=e.currentRoundTripTime,n.averageRtt=e.totalRoundTripTime/e.responsesReceived),g.log(n)}}))}))}))}))},e.prototype.isReportWanted=function(t){return"inbound-rtp"===t.type&&!this.isLocal()||"outbound-rtp"===t.type&&this.isLocal()||"candidate-pair"===t.type&&t.nominated&&t.bytesSent>0},e}(s.EventDispatcher);e.Stream=v},Dztv:function(t,e,n){"use strict";e.__esModule=!0;var r=n("6+/i"),i=n("9m68").OpenViduLogger.getInstance(),o=function(){function t(){this.userHandlerArrowHandler=new WeakMap,this.ee=new r}return t.prototype.off=function(t,e){if(e){var n=this.userHandlerArrowHandler.get(e);n&&this.ee.off(t,n),this.userHandlerArrowHandler.delete(e)}else this.ee.removeAllListeners(t);return this},t.prototype.onAux=function(t,e,n){var r=function(t){t?i.info(e,t):i.info(e),n(t)};return this.userHandlerArrowHandler.set(n,r),this.ee.on(t,r),this},t.prototype.onceAux=function(t,e,n){var r=this,o=function(t){t?i.info(e,t):i.info(e),n(t),r.userHandlerArrowHandler.delete(n)};return this.userHandlerArrowHandler.set(n,o),this.ee.once(t,o),this},t}();e.EventDispatcher=o},EDod:function(t,e,n){var r=n("AeG9"),i=n("cUzU");Date.now=Date.now||function(){return+new Date};var o=console;t.exports=function(t){var e,n=this,a=t.ws,s=-1,c=0,u=!0,l=!1,d="DISCONNECTED",p=a.onreconnecting,h=a.onreconnected,f=a.onconnected,m=a.onerror;t.rpc.pull=function(t,e){e.reply(null,"push")},a.onreconnecting=function(){o.debug("--------- ONRECONNECTING -----------"),"RECONNECTING"!==d?(w(),d="RECONNECTING",p&&p()):o.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},a.onreconnected=function(){o.debug("--------- ONRECONNECTED -----------"),"CONNECTED"!==d?(d="CONNECTED",y(),h&&h()):o.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},a.onconnected=function(){o.debug("--------- ONCONNECTED -----------"),"CONNECTED"!==d?(d="CONNECTED",u=!0,_(),f&&f()):o.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},a.onerror=function(t){o.debug("--------- ONERROR -----------"),d="DISCONNECTED",w(),m&&m(t)};var g=new i(a);o.debug("Connecting websocket to URI: "+a.uri);var v=new r(r.packers.JsonRPC,{request_timeout:t.rpc.requestTimeout,ping_request_timeout:t.rpc.heartbeatRequestTimeout},g,(function(e){o.debug("Received request: "+JSON.stringify(e));try{var n=t.rpc[e.method];void 0===n?o.error("Method "+e.method+" not registered in client"):n(e.params,e)}catch(r){o.error("Exception processing request: "+JSON.stringify(e)),o.error(r)}}));function y(){o.debug("notReconnectIfNumLessThan = "+c+" (old="+s+")"),s=c}function b(){if(u){var e=null;0!=c&&c!=s||(e={interval:t.heartbeat||5e3}),c++,n.send("ping",e,(r=c,function(t,e){t&&(o.debug("Error in ping request #"+r+" ("+t.message+")"),r>s&&(u=!1,y(),o.debug("Server did not respond to ping message #"+r+". Reconnecting... "),g.reconnectWs()))}))}else o.debug("Trying to send ping, but ping is not enabled");var r}function _(){l||(o.debug("Starting ping (if configured)"),l=!0,null!=t.heartbeat&&(e=setInterval(b,t.heartbeat),b()))}function w(){clearInterval(e),l=!1,u=!1,c=-1,v.cancel()}this.send=function(t,e,n){"ping"!==t&&o.debug("Request: method:"+t+" params:"+JSON.stringify(e));var r=Date.now();v.encode(t,e,(function(i,a){if(i){try{o.error("ERROR:"+i.message+" in Request: method:"+t+" params:"+JSON.stringify(e)+" request:"+i.request),i.data&&o.error("ERROR DATA:"+JSON.stringify(i.data))}catch(s){}i.requestTime=r}n&&(null!=a&&"pong"!==a.value&&o.debug("Response: "+JSON.stringify(a)),n(i,a))}))},this.close=function(n,r){o.debug("Closing with code: "+n+" because: "+r),null!=e&&(o.debug("Clearing ping interval"),clearInterval(e)),l=!1,u=!1,t.sendCloseMessage?(o.debug("Sending close message"),this.send("closeSession",null,(function(t,e){t&&o.error("Error sending close message: "+JSON.stringify(t)),g.close(n,r)}))):g.close(n,r)},this.forceClose=function(t){g.forceClose(t)},this.reconnect=function(){g.reconnectWs()},this.resetPing=function(){u=!0,c=0,_()}}},EcWD:function(t,e){var n,r,i="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(t){t.origin==window.location.origin&&function(t){if("PermissionDeniedError"==t){if(r)return r("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==t&&(i="desktop"),t.sourceId&&r&&r(n=t.sourceId,!0===t.canRequestAudioTrack)}(t.data)}))}function a(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);r=t,window.postMessage("get-sourceId","*")}function s(t,e){if(n="",o)return t(null,{mozMediaSource:"window",mediaSource:"window"});var s={mandatory:{chromeMediaSource:i,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=i||n?("desktop"==i&&(s.mandatory.chromeMediaSourceId=n),t(null,s)):e?function(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);r=t,window.postMessage("audio-plus-tab","*")}((function(e,n){s.mandatory.chromeMediaSourceId=e,n&&(s.canRequestAudioTrack=!0),t("PermissionDeniedError"==e?e:null,s)})):a((function(e){s.mandatory.chromeMediaSourceId=e,t("PermissionDeniedError"==e?e:null,s)}))}e.getScreenConstraints=s,e.getScreenConstraintsWithAudio=function(t){s(t,!0)},e.isChromeExtensionAvailable=function(t){if(t){if("desktop"==i)return t(!0);window.postMessage("are-you-there","*"),setTimeout((function(){t("screen"!=i)}),2e3)}},e.getChromeExtensionStatus=function(t,e){if(o)return e("not-chrome");2!=arguments.length&&(e=t,t="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+t+"/icon.png",n.onload=function(){i="screen",window.postMessage("are-you-there","*"),setTimeout((function(){e("screen"==i?"installed-disabled":"installed-enabled")}),2e3)},n.onerror=function(){e("not-installed")}},e.getSourceId=a},FlKs:function(t,e,n){"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var r=n("JUw6"),i=function(t){this.j=[],this.T=t||null};i.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],r=n[1];if(this.test(t,n[0]))return r}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var o=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),a=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=o,e.TokenState=a,e.stateify=function(t,e,n,r){for(var i=0,a=t.length,s=e,c=[],u=void 0;i<a&&(u=s.next(t[i]));)s=u,i++;if(i>=a)return[];for(;i<a-1;)u=new o(r),c.push(u),s.on(t[i],u),s=u,i++;return u=new o(n),c.push(u),s.on(t[a-1],u),c}},HgqT:function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},HxXY:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,!1,e,n)||this;return i.value=r,i}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.StreamManagerEvent=o},IXxz:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=t.scanner.TOKENS,n=t.parser,r=n.State,i=t.parser.start,o=e.DOMAIN,a=e.LOCALHOST,s=e.NUM,c=e.SLASH,u=e.TLD,l=e.UNDERSCORE,d=e.DOT,p=e.AT;function h(t){this.v=t}t.inherits(n.TOKENS.Base,h,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var f=i.jump(e.AT),m=new r,g=new r(h),v=new r,y=new r;f.on(l,m),m.on(l,m).on(d,m),f.on(o,g).on(a,g).on(u,g).on(s,g),m.on(o,g).on(a,g).on(u,g).on(s,g),g.on(o,g).on(a,g).on(u,g).on(s,g).on(l,g),g.on(c,v).on(d,v).on(p,v),v.on(l,y),y.on(l,y),v.on(o,g).on(a,g).on(u,g).on(s,g),y.on(o,g).on(a,g).on(u,g).on(s,g)}},JTMn:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("ryRr"),a=n("74bm"),s=n("bk74"),c=n("Dztv"),u=n("8KVD"),l=n("+ig+"),d=n("rUL0"),p=n("ksJj"),h=n("suHS"),f=n("Te8r"),m=n("BwMD"),g=n("Tt94"),v=n("/dLB"),y=n("bDgZ"),b=n("9m68").OpenViduLogger.getInstance(),_=function(t){function e(e){var n=t.call(this)||this;return n.streamManagers=[],n.remoteStreamsCreated={},n.isFirstIonicIosSubscriber=!0,n.countDownForIonicIosSubscribersActive=!0,n.remoteConnections={},n.startSpeakingEventsEnabled=!1,n.startSpeakingEventsEnabledOnce=!1,n.stopSpeakingEventsEnabled=!1,n.stopSpeakingEventsEnabledOnce=!1,n.openvidu=e,n}return i(e,t),e.prototype.connect=function(t,e){var n=this;return new Promise((function(r,i){n.processToken(t),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:t,metadata:e?n.stringClientMetadata(e):""},n.connectAux(t).then((function(){r()})).catch((function(t){i(t)}))):i(new g.OpenViduError(g.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+y.name+" (version "+y.version+") for "+y.os.family+" is not supported in OpenVidu"))}))},e.prototype.disconnect=function(){this.leave(!1,"disconnect")},e.prototype.subscribe=function(t,e,n,r){var i,o={};o=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?v.VideoInsertMode[n.insertMode]:o.insertMode:v.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:v.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0},n&&"function"==typeof n?i=n:r&&(i=r),b.info("Subscribing to "+t.connection.connectionId),t.subscribe().then((function(){b.info("Subscribed correctly to "+t.connection.connectionId),void 0!==i&&i(void 0)})).catch((function(t){void 0!==i&&i(t)}));var a=new s.Subscriber(t,e,o);return a.targetElement&&t.streamManager.createVideoElement(a.targetElement,o.insertMode),a},e.prototype.subscribeAsync=function(t,e,n){var r=this;return new Promise((function(i,o){var a,s=function(t){t?o(t):i(a)};a=n?r.subscribe(t,e,n,s):r.subscribe(t,e,s)}))},e.prototype.unsubscribe=function(t){var e=t.stream.connection.connectionId;b.info("Unsubscribing from "+e),this.openvidu.sendRequest("unsubscribeFromVideo",{sender:t.stream.connection.connectionId},(function(n,r){n?b.error("Error unsubscribing from "+e,n):b.info("Unsubscribed correctly from "+e),t.stream.disposeWebRtcPeer(),t.stream.disposeMediaStream()})),t.stream.streamManager.removeAllVideos()},e.prototype.publish=function(t){var e=this;return new Promise((function(n,r){t.session=e,t.stream.session=e,t.stream.publishedOnce?t.initialize().then((function(){e.connection.addStream(t.stream),t.reestablishStreamPlayingEvent(),t.stream.publish().then((function(){n()})).catch((function(t){r(t)}))})).catch((function(t){r(t)})):(e.connection.addStream(t.stream),t.stream.publish().then((function(){n()})).catch((function(t){r(t)})))}))},e.prototype.unpublish=function(t){var e=t.stream;if(e.connection)if(e.connection===this.connection){b.info("Unpublishing local media ("+e.connection.connectionId+")"),this.openvidu.sendRequest("unpublishVideo",(function(t,e){t?b.error(t):b.info("Media unpublished correctly")})),e.disposeWebRtcPeer(),delete e.connection.stream;var n=new f.StreamEvent(!0,t,"streamDestroyed",t.stream,"unpublish");t.emitEvent("streamDestroyed",[n]),n.callDefaultBehavior()}else b.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);else b.error("The associated Connection object of this Publisher is null",e)},e.prototype.forceDisconnect=function(t){var e=this;return new Promise((function(n,r){b.info("Forcing disconnect for connection "+t.connectionId),e.openvidu.sendRequest("forceDisconnect",{connectionId:t.connectionId},(function(e,i){e?(b.error("Error forcing disconnect for Connection "+t.connectionId,e),r(401===e.code?new g.OpenViduError(g.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):e)):(b.info("Forcing disconnect correctly for Connection "+t.connectionId),n())}))}))},e.prototype.forceUnpublish=function(t){var e=this;return new Promise((function(n,r){b.info("Forcing unpublish for stream "+t.streamId),e.openvidu.sendRequest("forceUnpublish",{streamId:t.streamId},(function(e,i){e?(b.error("Error forcing unpublish for Stream "+t.streamId,e),r(401===e.code?new g.OpenViduError(g.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):e)):(b.info("Forcing unpublish correctly for Stream "+t.streamId),n())}))}))},e.prototype.signal=function(t){var e=this;return new Promise((function(n,r){var i={};if(t.to&&t.to.length>0){var o=[];t.to.forEach((function(t){t.connectionId&&o.push(t.connectionId)})),i.to=o}else i.to=[];i.data=t.data?t.data:"";var a=t.type?t.type:"signal";a&&"signal:"!==a.substring(0,7)&&(a="signal:"+a),i.type=a,e.openvidu.sendRequest("sendMessage",{message:JSON.stringify(i)},(function(t,e){t?r(t):n()}))}))},e.prototype.on=function(e,n){if(t.prototype.onAux.call(this,e,"Event '"+e+"' triggered by 'Session'",n),"publisherStartSpeaking"===e)for(var r in this.startSpeakingEventsEnabled=!0,this.remoteConnections)(i=this.remoteConnections[r].stream)&&i.hasAudio&&i.enableStartSpeakingEvent();if("publisherStopSpeaking"===e)for(var r in this.stopSpeakingEventsEnabled=!0,this.remoteConnections){var i;(i=this.remoteConnections[r].stream)&&i.hasAudio&&i.enableStopSpeakingEvent()}return this},e.prototype.once=function(e,n){if(t.prototype.onceAux.call(this,e,"Event '"+e+"' triggered once by 'Session'",n),"publisherStartSpeaking"===e)for(var r in this.startSpeakingEventsEnabledOnce=!0,this.remoteConnections)(i=this.remoteConnections[r].stream)&&i.hasAudio&&i.enableOnceStartSpeakingEvent();if("publisherStopSpeaking"===e)for(var r in this.stopSpeakingEventsEnabledOnce=!0,this.remoteConnections){var i;(i=this.remoteConnections[r].stream)&&i.hasAudio&&i.enableOnceStopSpeakingEvent()}return this},e.prototype.off=function(e,n){if(t.prototype.off.call(this,e,n),"publisherStartSpeaking"===e&&0===this.ee.getListeners(e).length)for(var r in this.startSpeakingEventsEnabled=!1,this.remoteConnections)(i=this.remoteConnections[r].stream)&&i.disableStartSpeakingEvent(!1);if("publisherStopSpeaking"===e&&0===this.ee.getListeners(e).length)for(var r in this.stopSpeakingEventsEnabled=!1,this.remoteConnections){var i;(i=this.remoteConnections[r].stream)&&i.disableStopSpeakingEvent(!1)}return this},e.prototype.onParticipantJoined=function(t){var e=this;this.getConnection(t.id,"").then((function(e){b.warn("Connection "+t.id+" already exists in connections list")})).catch((function(n){var r=new o.Connection(e,t);e.remoteConnections[t.id]=r,e.ee.emitEvent("connectionCreated",[new u.ConnectionEvent(!1,e,"connectionCreated",r,"")])}))},e.prototype.onParticipantLeft=function(t){var e=this;this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){if(n.stream){var r=n.stream,i=new f.StreamEvent(!0,e,"streamDestroyed",r,t.reason);e.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior(),delete e.remoteStreamsCreated[r.streamId],0===Object.keys(e.remoteStreamsCreated).length&&(e.isFirstIonicIosSubscriber=!0,e.countDownForIonicIosSubscribersActive=!0)}delete e.remoteConnections[n.connectionId],e.ee.emitEvent("connectionDestroyed",[new u.ConnectionEvent(!1,e,"connectionDestroyed",n,t.reason)])})).catch((function(t){b.error(t)}))},e.prototype.onParticipantPublished=function(t){var e,n=this,r=function(t){n.remoteConnections[t.connectionId]=t,n.remoteStreamsCreated[t.stream.streamId]||n.ee.emitEvent("streamCreated",[new f.StreamEvent(!1,n,"streamCreated",t.stream,"")]),n.remoteStreamsCreated[t.stream.streamId]=!0};this.getRemoteConnection(t.id,"Remote connection '"+t.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){e=n,t.metadata=n.data,e.options=t,e.initRemoteStreams(t.streams),r(e)})).catch((function(i){e=new o.Connection(n,t),r(e)}))},e.prototype.onParticipantUnpublished=function(t){var e=this;t.connectionId===this.connection.connectionId?this.stopPublisherStream(t.reason):this.getRemoteConnection(t.connectionId,"Remote connection '"+t.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){var r=new f.StreamEvent(!0,e,"streamDestroyed",n.stream,t.reason);e.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior();var i=n.stream.streamId;delete e.remoteStreamsCreated[i],0===Object.keys(e.remoteStreamsCreated).length&&(e.isFirstIonicIosSubscriber=!0,e.countDownForIonicIosSubscribersActive=!0),n.removeStream(i)})).catch((function(t){b.error(t)}))},e.prototype.onParticipantEvicted=function(t){t.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,t.reason)},e.prototype.onNewMessage=function(t){var e=this;b.info("New signal: "+JSON.stringify(t));var n=t.type?t.type.replace(/^(signal:)/,""):void 0;t.from?this.getConnection(t.from,"Connection '"+t.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then((function(r){e.ee.emitEvent("signal",[new h.SignalEvent(e,n,t.data,r)]),"signal"!==t.type&&e.ee.emitEvent(t.type,[new h.SignalEvent(e,n,t.data,r)])})).catch((function(t){b.error(t)})):(this.ee.emitEvent("signal",[new h.SignalEvent(this,n,t.data,void 0)]),"signal"!==t.type&&this.ee.emitEvent(t.type,[new h.SignalEvent(this,n,t.data,void 0)]))},e.prototype.onStreamPropertyChanged=function(t){var e=this,n=function(n){if(n.stream&&n.stream.streamId===t.streamId){var r=n.stream,i=void 0;switch(t.property){case"audioActive":i=r.audioActive,t.newValue="true"===t.newValue,r.audioActive=t.newValue;break;case"videoActive":i=r.videoActive,t.newValue="true"===t.newValue,r.videoActive=t.newValue;break;case"videoDimensions":i=r.videoDimensions,t.newValue=JSON.parse(JSON.parse(t.newValue)),r.videoDimensions=t.newValue;break;case"filter":i=r.filter,t.newValue=Object.keys(t.newValue).length>0?t.newValue:void 0,void 0!==t.newValue?(r.filter=new a.Filter(t.newValue.type,t.newValue.options),r.filter.stream=r,t.newValue.lastExecMethod&&(r.filter.lastExecMethod=t.newValue.lastExecMethod)):delete r.filter,t.newValue=r.filter}e.ee.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(e,r,t.property,t.newValue,i,t.reason)]),r.streamManager&&r.streamManager.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(r.streamManager,r,t.property,t.newValue,i,t.reason)])}else b.error("No stream with streamId '"+t.streamId+"' found for connection '"+t.connectionId+"' on 'streamPropertyChanged' event")};t.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(t){n(t)})).catch((function(t){b.error(t)}))},e.prototype.recvIceCandidate=function(t){var e={candidate:t.candidate,component:t.component,foundation:t.foundation,port:t.port,priority:t.priority,protocol:t.protocol,relatedAddress:t.relatedAddress,relatedPort:t.relatedPort,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex,tcpType:t.tcpType,usernameFragment:t.usernameFragment,type:t.type,toJSON:function(){return{candidate:t.candidate}}};this.getConnection(t.senderConnectionId,"Connection not found for connectionId "+t.senderConnectionId+" owning endpoint "+t.endpointName+". Ice candidate will be ignored: "+e).then((function(n){var r=n.stream;r.getWebRtcPeer().addIceCandidate(e).catch((function(e){b.error("Error adding candidate for "+r.streamId+" stream of endpoint "+t.endpointName+": "+e)}))})).catch((function(t){b.error(t)}))},e.prototype.onSessionClosed=function(t){b.info("Session closed: "+JSON.stringify(t));var e=t.sessionId;void 0!==e?this.ee.emitEvent("session-closed",[{session:e}]):b.warn("Session undefined on session closed",t)},e.prototype.onLostConnection=function(t){b.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,t)},e.prototype.onRecoveredConnection=function(){b.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},e.prototype.onMediaError=function(t){b.error("Media error: "+JSON.stringify(t));var e=t.error;e?this.ee.emitEvent("error-media",[{error:e}]):b.warn("Received undefined media error. Params:",t)},e.prototype.onRecordingStarted=function(t){this.ee.emitEvent("recordingStarted",[new d.RecordingEvent(this,"recordingStarted",t.id,t.name)])},e.prototype.onRecordingStopped=function(t){this.ee.emitEvent("recordingStopped",[new d.RecordingEvent(this,"recordingStopped",t.id,t.name,t.reason)])},e.prototype.onFilterEventDispatched=function(t){var e=t.connectionId;this.getConnection(e,"No connection found for connectionId "+e).then((function(e){b.info("Filter event dispatched");var n=e.stream;n.filter.handlers[t.eventType](new l.FilterEvent(n.filter,t.eventType,t.data))}))},e.prototype.reconnectBrokenStreams=function(){b.info("Re-establishing media connections...");var t=!1;this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(b.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),t=!0);for(var e=0,n=Object.values(this.remoteConnections);e<n.length;e++){var r=n[e];r.stream&&r.stream.streamIceConnectionStateBroken()&&(b.warn("Re-establishing Subscriber "+r.stream.streamId),r.stream.initWebRtcPeerReceive(!0),t=!0)}t||b.info("There were no media streams in need of a reconnection")},e.prototype.emitEvent=function(t,e){this.ee.emitEvent(t,e)},e.prototype.leave=function(t,e){var n=this;if(b.info("Leaving Session (forced="+(t=!!t)+")"),this.connection){if(this.connection.disposed||t?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",(function(t,e){t&&b.error(t),n.openvidu.closeWs()})),this.stopPublisherStream(e),!this.connection.disposed){var r=new p.SessionDisconnectedEvent(this,e);this.ee.emitEvent("sessionDisconnected",[r]),r.callDefaultBehavior()}}else b.warn("You were not connected to the session "+this.sessionId)},e.prototype.initializeParams=function(t){return{token:t||"",session:this.sessionId,platform:y.description?y.description:"unknown",metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},e.prototype.connectAux=function(t){var e=this;return new Promise((function(n,r){e.openvidu.startWs((function(i){if(i)r(i);else{var a=e.initializeParams(t);e.openvidu.sendRequest("joinRoom",a,(function(t,i){if(t)r(t);else{e.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==e.openvidu.role,forceUnpublish:"MODERATOR"===e.openvidu.role,forceDisconnect:"MODERATOR"===e.openvidu.role},e.connection=new o.Connection(e),e.connection.connectionId=i.id,e.connection.creationTime=i.createdAt,e.connection.data=i.metadata,e.connection.rpcSessionId=i.sessionId;var a={connections:new Array,streams:new Array};i.value.forEach((function(t){var n=new o.Connection(e,t);e.remoteConnections[n.connectionId]=n,a.connections.push(n),n.stream&&(e.remoteStreamsCreated[n.stream.streamId]=!0,a.streams.push(n.stream))})),e.ee.emitEvent("connectionCreated",[new u.ConnectionEvent(!1,e,"connectionCreated",e.connection,"")]),a.connections.forEach((function(t){e.ee.emitEvent("connectionCreated",[new u.ConnectionEvent(!1,e,"connectionCreated",t,"")])})),a.streams.forEach((function(t){e.ee.emitEvent("streamCreated",[new f.StreamEvent(!1,e,"streamCreated",t,"")])})),n()}}))}}))}))},e.prototype.stopPublisherStream=function(t){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[t]))},e.prototype.stringClientMetadata=function(t){return"string"!=typeof t?JSON.stringify(t):t},e.prototype.getConnection=function(t,e){var n=this;return new Promise((function(r,i){var o=n.remoteConnections[t];o?r(o):n.connection.connectionId===t?r(n.connection):i(new g.OpenViduError(g.OpenViduErrorName.GENERIC_ERROR,e))}))},e.prototype.getRemoteConnection=function(t,e){var n=this;return new Promise((function(r,i){var o=n.remoteConnections[t];o?r(o):i(new g.OpenViduError(g.OpenViduErrorName.GENERIC_ERROR,e))}))},e.prototype.processToken=function(t){var e=t.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(e){var n={protocol:e[1],host:e[2],hostname:e[3],port:e[4],pathname:e[5],search:e[6],hash:e[7]},r=t.split("?"),i=decodeURI(r[1]).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){return t[e[0]]=e[1],t}),{});this.sessionId=i.sessionId;var o=i.secret,a=i.recorder,s=i.coturnIp,c=i.turnUsername,u=i.turnCredential,l=i.role,d=i.webrtcStatsInterval,p=i.version;if(o&&(this.openvidu.secret=o),a&&(this.openvidu.recorder=!0),c&&u){var h="turn:"+s+":3478";this.openvidu.iceServers=[{urls:["stun:"+s+":3478"]},{urls:[h,h+"?transport=tcp"],username:c,credential:u}],b.log("STUN/TURN server IP: "+s),b.log("TURN temp credentials ["+c+":"+u+"]")}l&&(this.openvidu.role=l),d&&(this.openvidu.webrtcStatsInterval=+d),p&&(b.info("openvidu-server version: "+p),p!==this.openvidu.libraryVersion&&b.error("OpenVidu Server ("+p+") and OpenVidu Browser ("+this.openvidu.libraryVersion+") versions do NOT match. There may be incompatibilities")),this.openvidu.wsUri="wss://"+n.host+"/openvidu",this.openvidu.httpUri="https://"+n.host}else b.error('Token "'+t+'" is not valid')},e}(c.EventDispatcher);e.Session=_},JUw6:function(t,e,n){"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var i in n)r[i]=n[i];return r.constructor=e,e.prototype=r,e}},KFtI:function(t){t.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"]')},LXjW:function(t,e,n){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var r=n("JUw6"),i=s(n("MW5i")),o=s(n("t/6/")),a=s(n("QSjB"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var c=function(t){return a.run(o.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||e&&o.type!==e||r.push(o.toObject())}return r},e.inherits=r.inherits,e.options=i,e.parser=a,e.scanner=o,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=c},MW5i:function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(t){this.defaultProtocol=(t=t||{}).hasOwnProperty("defaultProtocol")?t.defaultProtocol:i.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:i.events,this.format=t.hasOwnProperty("format")?t.format:i.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:i.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:i.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:i.tagName,this.target=t.hasOwnProperty("target")?t.target:i.target,this.validate=t.hasOwnProperty("validate")?t.validate:i.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||i.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||i.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:i.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=i,e.Options=o,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},o.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var o=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:i[t])?o(e,n.type):o}return a},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},P3vI:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("Dztv"),a=n("HxXY"),s=n("oIG1"),c=n("/dLB"),u=n("bDgZ"),l=n("9m68").OpenViduLogger.getInstance(),d=function(t){function e(e,n){var r=t.call(this)||this;if(r.videos=[],r.lazyLaunchVideoElementCreatedEvent=!1,r.stream=e,r.stream.streamManager=r,r.remote=!r.stream.isLocal(),n){var i=void 0;"string"==typeof n?i=document.getElementById(n):n instanceof HTMLElement&&(i=n),i&&(r.firstVideoElement={targetElement:i,video:document.createElement("video"),id:"",canplayListenerAdded:!1},"Safari"===u.name&&r.firstVideoElement.video.setAttribute("playsinline","true"),r.targetElement=i,r.element=i)}return r.canPlayListener=function(){r.stream.isLocal()?r.stream.displayMyRemote()?(l.info("Your own remote 'Stream' with id ["+r.stream.streamId+"] video is now playing"),r.ee.emitEvent("remoteVideoPlaying",[new s.VideoElementEvent(r.videos[0].video,r,"remoteVideoPlaying")])):(l.info("Your local 'Stream' with id ["+r.stream.streamId+"] video is now playing"),r.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(r.videos[0].video,r,"videoPlaying")])):(l.info("Remote 'Stream' with id ["+r.stream.streamId+"] video is now playing"),r.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(r.videos[0].video,r,"videoPlaying")])),r.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(r,"streamPlaying",void 0)])},r}return i(e,t),e.prototype.on=function(e,n){return t.prototype.onAux.call(this,e,"Event '"+e+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==e&&"videoPlaying"!==e||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===e&&this.stream.hasAudio&&this.stream.enableVolumeChangeEvent(!1),this},e.prototype.once=function(e,n){return t.prototype.onceAux.call(this,e,"Event '"+e+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==e&&"videoPlaying"!==e||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===e&&this.stream.hasAudio&&this.stream.enableOnceVolumeChangeEvent(!1),this},e.prototype.off=function(e,n){return t.prototype.off.call(this,e,n),"streamAudioVolumeChange"===e&&0===this.ee.getListeners(e).length&&this.stream.disableVolumeChangeEvent(!1),this},e.prototype.addVideoElement=function(t){this.initializeVideoProperties(t),this.stream.isLocal()&&this.stream.displayMyRemote()&&t.srcObject!==this.stream.getMediaStream()&&(t.srcObject=this.stream.getMediaStream());for(var e=0,n=this.videos;e<n.length;e++)if(n[e].video===t)return 0;for(var r=1,i=0,o=this.stream.session.streamManagers;i<o.length;i++)if(o[i].disassociateVideo(t)){r=-1;break}return this.stream.session.streamManagers.forEach((function(e){e.disassociateVideo(t)})),this.pushNewStreamManagerVideo({video:t,id:t.id,canplayListenerAdded:!1}),l.info("New video element associated to ",this),r},e.prototype.createVideoElement=function(t,e){var n;if("string"==typeof t){if(!(n=document.getElementById(t)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+t)}else{if(!(t instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+t);n=t}var r=this.createVideo();this.initializeVideoProperties(r);var i=e||c.VideoInsertMode.APPEND;switch(i){case c.VideoInsertMode.AFTER:n.parentNode.insertBefore(r,n.nextSibling);break;case c.VideoInsertMode.APPEND:n.appendChild(r);break;case c.VideoInsertMode.BEFORE:n.parentNode.insertBefore(r,n);break;case c.VideoInsertMode.PREPEND:n.insertBefore(r,n.childNodes[0]);break;case c.VideoInsertMode.REPLACE:n.parentNode.replaceChild(r,n);break;default:i=c.VideoInsertMode.APPEND,n.appendChild(r)}var o={targetElement:n,video:r,insertMode:i,id:r.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(o),this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(o.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,r},e.prototype.updatePublisherSpeakingEventsOptions=function(t){var e=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},n="number"==typeof t.interval?t.interval:"number"==typeof e.interval?e.interval:100,r="number"==typeof t.threshold?t.threshold:"number"==typeof e.threshold?e.threshold:-50;this.stream.harkOptions={interval:n,threshold:r},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(n),this.stream.speechEvent.setThreshold(r))},e.prototype.initializeVideoProperties=function(t){this.stream.isLocal()&&this.stream.displayMyRemote()||t.srcObject!==this.stream.getMediaStream()&&(t.srcObject=this.stream.getMediaStream()),t.autoplay=!0,t.controls=!1,"Safari"===u.name&&t.setAttribute("playsinline","true"),t.id||(t.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=t.id)),this.remote||this.stream.displayMyRemote()||(t.muted=!0,"rotateY(180deg)"!==t.style.transform||this.stream.outboundStreamOpts.publisherProperties.mirror?this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(t):this.removeMirrorVideo(t))},e.prototype.removeAllVideos=function(){for(var t=this,e=this.stream.session.streamManagers.length-1;e>=0;--e)this.stream.session.streamManagers[e]===this&&this.stream.session.streamManagers.splice(e,1);this.videos.forEach((function(e){e.video&&e.video.removeEventListener&&e.video.removeEventListener("canplay",t.canPlayListener),e.canplayListenerAdded=!1,e.targetElement&&(e.video.parentNode.removeChild(e.video),t.ee.emitEvent("videoElementDestroyed",[new s.VideoElementEvent(e.video,t,"videoElementDestroyed")])),t.removeSrcObject(e),t.videos.filter((function(t){return!t.targetElement}))}))},e.prototype.disassociateVideo=function(t){for(var e=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===t){this.videos[n].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(n,1),e=!0,l.info("Video element disassociated from ",this);break}return e},e.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},e.prototype.updateMediaStream=function(t){this.videos.forEach((function(e){if(e.video.srcObject=t,u.isIonicIos){var n=e.video;e.video.parentElement.replaceChild(n,e.video),e.video=n}}))},e.prototype.emitEvent=function(t,e){this.ee.emitEvent(t,e)},e.prototype.createVideo=function(){return document.createElement("video")},e.prototype.removeSrcObject=function(t){t.video.srcObject=null},e.prototype.pushNewStreamManagerVideo=function(t){this.videos.push(t),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},e.prototype.mirrorVideo=function(t){u.isIonicIos||(t.style.transform="rotateY(180deg)",t.style.webkitTransform="rotateY(180deg)")},e.prototype.removeMirrorVideo=function(t){t.style.transform="unset",t.style.webkitTransform="unset"},e}(o.EventDispatcher);e.StreamManager=d},PEz1:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("JTMn"),a=n("DPKQ"),s=n("P3vI"),c=n("Te8r"),u=n("BwMD"),l=n("oIG1"),d=n("Tt94"),p=n("bDgZ"),h=n("9m68").OpenViduLogger.getInstance(),f=function(t){function e(e,n,r){var i=t.call(this,new a.Stream(r.session?r.session:new o.Session(r),{publisherProperties:n,mediaConstraints:{}}),e)||this;return i.accessAllowed=!1,i.isSubscribedToRemote=!1,i.accessDenied=!1,i.properties=n,i.openvidu=r,i.stream.ee.on("local-stream-destroyed",(function(t){i.stream.isLocalStreamPublished=!1;var e=new c.StreamEvent(!0,i,"streamDestroyed",i.stream,t);i.emitEvent("streamDestroyed",[e]),e.callDefaultBehavior()})),i}return i(e,t),e.prototype.publishAudio=function(t){var e=this;this.stream.audioActive!==t&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach((function(e){e.enabled=t})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:t,reason:"publishAudio"},(function(n,r){n?h.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"audioActive",t,!t,"publishAudio")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"audioActive",t,!t,"publishAudio")]))})),this.stream.audioActive=t,h.info("'Publisher' has "+(t?"published":"unpublished")+" its audio stream"))},e.prototype.publishVideo=function(t){var e=this;this.stream.videoActive!==t&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getVideoTracks().forEach((function(e){e.enabled=t})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:t,reason:"publishVideo"},(function(n,r){n?h.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"videoActive",t,!t,"publishVideo")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"videoActive",t,!t,"publishVideo")]))})),this.stream.videoActive=t,h.info("'Publisher' has "+(t?"published":"unpublished")+" its video stream"))},e.prototype.subscribeToRemote=function(t){this.isSubscribedToRemote=t=void 0===t||t,this.stream.subscribeToMyRemote(t)},e.prototype.on=function(e,n){var r=this;return t.prototype.on.call(this,e,n),"streamCreated"===e&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new c.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",(function(){r.emitEvent("streamCreated",[new c.StreamEvent(!1,r,"streamCreated",r.stream,"")])}))),"remoteVideoPlaying"===e&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.once=function(e,n){var r=this;return t.prototype.once.call(this,e,n),"streamCreated"===e&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new c.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",(function(){r.emitEvent("streamCreated",[new c.StreamEvent(!1,r,"streamCreated",r.stream,"")])}))),"remoteVideoPlaying"===e&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.replaceTrack=function(t){var e=this,n=function(){var n,r=e.stream.displayMyRemote()?e.stream.localMediaStreamWhenSubscribedToRemote:e.stream.getMediaStream();n="video"===t.kind?r.getVideoTracks()[0]:r.getAudioTracks()[0],r.removeTrack(n),n.stop(),r.addTrack(t)};return new Promise((function(r,i){if(e.stream.isLocalStreamPublished){var o=e.stream.getRTCPeerConnection().getSenders(),a=void 0;"video"===t.kind?(a=o.find((function(t){return!!t.track&&"video"===t.track.kind})))||i(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):"audio"===t.kind?(a=o.find((function(t){return!!t.track&&"audio"===t.track.kind})))||i(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):i(new Error("Unknown track kind "+t.kind)),a.replaceTrack(t).then((function(){n(),r()})).catch((function(t){i(t)}))}else n(),r()}))},e.prototype.initialize=function(){var t=this;return new Promise((function(e,n){var r,i={},o={},a=function(e){t.accessDenied=!0,t.accessAllowed=!1,n(e)},s=function(n){if(t.accessAllowed=!0,t.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&t.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(t.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&t.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(t.properties.videoSource)),n.getAudioTracks()[0]){var r=null!=t.stream.audioActive?t.stream.audioActive:!!t.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=r}if(n.getVideoTracks()[0]&&(r=null!=t.stream.videoActive?t.stream.videoActive:!!t.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=r),t.initializeVideoReference(n),t.stream.displayMyRemote()||t.stream.updateMediaStreamInVideos(),delete t.firstVideoElement,t.stream.isSendVideo())if(t.stream.isSendScreen())t.videoReference.addEventListener("loadedmetadata",(function(){t.stream.videoDimensions={width:t.videoReference.videoWidth,height:t.videoReference.videoHeight},t.screenShareResizeInterval=setInterval((function(){var e=n.getVideoTracks()[0].getSettings(),r="Chrome"===p.name||"Opera"===p.name?t.videoReference.videoWidth:e.width,i="Chrome"===p.name||"Opera"===p.name?t.videoReference.videoHeight:e.height;if(t.stream.isLocalStreamPublished&&(r!==t.stream.videoDimensions.width||i!==t.stream.videoDimensions.height)){var o={width:t.stream.videoDimensions.width,height:t.stream.videoDimensions.height};t.stream.videoDimensions={width:r||0,height:i||0},t.session.openvidu.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"screenResized"},(function(e,n){e?h.error("Error sending 'streamPropertyChanged' event",e):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]))}))}}),500),t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])}));else if(p.isIonicIos||"Safari"===p.name){t.videoReference.style.display="none",document.body.appendChild(t.videoReference);var i,o=function(){t.stream.videoDimensions={width:t.videoReference.videoWidth,height:t.videoReference.videoHeight},t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[]),document.body.removeChild(t.videoReference)};t.videoReference.addEventListener("loadedmetadata",(function(){0===t.videoReference.videoWidth?i=setInterval((function(){0!==t.videoReference.videoWidth&&(clearInterval(i),o())}),40):o()}))}else{var a=t.getVideoDimensions(n),s=a.width,c=a.height;t.stream.videoDimensions=("iOS"===p.os.family||"Android"===p.os.family)&&window.innerHeight>window.innerWidth?{width:c||0,height:s||0}:{width:s||0,height:c||0},t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])}else t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[]);e()},c=function(e,n){t.clearPermissionDialogTimer(r,1250),t.stream.isSendScreen()&&t.stream.isSendAudio()?(o.audio=n,o.video=!1,r=Date.now(),t.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then((function(n){t.clearPermissionDialogTimer(r,1250),e.addTrack(n.getAudioTracks()[0]),s(e)})).catch((function(n){t.clearPermissionDialogTimer(r,1250),e.getAudioTracks().forEach((function(t){t.stop()})),e.getVideoTracks().forEach((function(t){t.stop()})),a(t.openvidu.generateAudioDeviceError(n,i))}))):s(e)},l=function(e){var n,o;switch(h.error(e),t.clearPermissionDialogTimer(r,1250),"Error"===e.name&&(e.name=e.constructor.name),e.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:i.video}).then((function(t){t.getVideoTracks().forEach((function(t){t.stop()})),n=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=e.toString(),a(new d.OpenViduError(n,o))})).catch((function(t){n=d.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=e.toString(),a(new d.OpenViduError(n,o))}));break;case"notallowederror":n=t.stream.isSendScreen()?d.OpenViduErrorName.SCREEN_CAPTURE_DENIED:d.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=e.toString(),a(new d.OpenViduError(n,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:i.video}).then((function(t){t.getVideoTracks().forEach((function(t){t.stop()})),"deviceid"===e.constraint.toLowerCase()?(n=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+i.audio.deviceId.exact+"' not found"):(n=d.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+e.constraint+"'"),a(new d.OpenViduError(n,o))})).catch((function(t){"deviceid"===e.constraint.toLowerCase()?(n=d.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+i.video.deviceId.exact+"' not found"):(n=d.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+e.constraint+"'"),a(new d.OpenViduError(n,o))}));break;case"aborterror":case"notreadableerror":n=d.OpenViduErrorName.DEVICE_ALREADY_IN_USE,o=e.toString(),a(new d.OpenViduError(n,o));break;default:n=d.OpenViduErrorName.GENERIC_ERROR,o=e.toString(),a(new d.OpenViduError(n,o))}};t.openvidu.generateMediaConstraints(t.properties).then((function(e){var n,a;if(e.videoTrack&&e.audioTrack||e.audioTrack&&!1===(null===(n=e.constraints)||void 0===n?void 0:n.video)||e.videoTrack&&!1===(null===(a=e.constraints)||void 0===a?void 0:a.audio))s(t.openvidu.addAlreadyProvidedTracks(e,new MediaStream));else{t.stream.setOutboundStreamOptions({mediaConstraints:i=e.constraints,publisherProperties:t.properties});var u=void 0===i.audio||i.audio;o.audio=!t.stream.isSendScreen()&&u,o.video=i.video,r=Date.now(),t.setPermissionDialogTimer(1250),t.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&"Electron"!==p.name?navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(n){t.openvidu.addAlreadyProvidedTracks(e,n),c(n,u)})).catch((function(t){l(t)})):navigator.mediaDevices.getUserMedia(o).then((function(n){t.openvidu.addAlreadyProvidedTracks(e,n),c(n,u)})).catch((function(t){l(t)}))}})).catch((function(t){a(t)}))}))},e.prototype.getVideoDimensions=function(t){return t.getVideoTracks()[0].getSettings()},e.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},e.prototype.initializeVideoReference=function(t){this.videoReference=document.createElement("video"),"Safari"===p.name&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(t),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=t},e.prototype.setPermissionDialogTimer=function(t){var e=this;this.permissionDialogTimeout=setTimeout((function(){e.emitEvent("accessDialogOpened",[])}),t)},e.prototype.clearPermissionDialogTimer=function(t,e){clearTimeout(this.permissionDialogTimeout),Date.now()-t>e&&this.emitEvent("accessDialogClosed",[])},e}(s.StreamManager);e.Publisher=f},PPcv:function(t,e,n){"use strict";e.__esModule=!0;var r=n("tInm"),i=n("PEz1"),o=n("JTMn"),a=n("BwMD"),s=n("Tt94"),c=n("/dLB"),u=n("9m68"),l=n("+27z"),d=n("EcWD"),p=n("6+/i"),h=n("AeG9"),f=n("bDgZ");f.isIonicIos=("iPhone"===f.product||"iPad"===f.product)&&-1===f.ua.indexOf("Safari"),f.isIonicAndroid="Android"===f.os.family&&"Android Browser"==f.name;var m=n("vqFl"),g=u.OpenViduLogger.getInstance(),v=function(){function t(){var t=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},this.webrtcStatsInterval=0,this.ee=new p,this.libraryVersion=m.version,"iOS"!==f.os.family&&"Android"!==f.os.family||window.addEventListener("orientationchange",(function(){t.publishers.forEach((function(e){if(e.stream.isLocalStreamPublished&&e.stream&&e.stream.hasVideo&&e.stream.streamManager.videos[0])var n=0,r=e.stream.videoDimensions.width,i=e.stream.videoDimensions.height,o=setInterval((function(){new Promise((function(t,n){if(f.isIonicIos)t({newWidth:e.stream.streamManager.videos[0].video.videoWidth,newHeight:e.stream.streamManager.videos[0].video.videoHeight});else{var r=e.stream.getMediaStream().getVideoTracks()[0].getSettings();t({newWidth:-1!==f.name.toLowerCase().indexOf("firefox")?r.width:e.videoReference.videoWidth,newHeight:-1!==f.name.toLowerCase().indexOf("firefox")?r.height:e.videoReference.videoHeight})}})).then((function(t){s(r,i,t.newWidth,t.newHeight)}))}),75),s=function(r,i,s,c){++n>10&&clearTimeout(o),s===r&&c===i||(e.stream.videoDimensions={width:s||0,height:c||0},t.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"deviceRotated"},(function(n,o){n?g.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(t.session,e.stream,"videoDimensions",e.stream.videoDimensions,{width:r,height:i},"deviceRotated")]),e.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,{width:r,height:i},"deviceRotated")]))})),clearTimeout(o))}}))}))}return t.prototype.initSession=function(){return this.session=new o.Session(this),this.session},t.prototype.initPublisher=function(t,e,n){var r;r=e&&"function"!=typeof e?{audioSource:void 0!==(r=e).audioSource?r.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.frameRate?r.frameRate:void 0,insertMode:void 0!==r.insertMode?"string"==typeof r.insertMode?c.VideoInsertMode[r.insertMode]:r.insertMode:c.VideoInsertMode.APPEND,mirror:void 0===r.mirror||r.mirror,publishAudio:void 0===r.publishAudio||r.publishAudio,publishVideo:void 0===r.publishVideo||r.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.resolution?r.resolution:"640x480",videoSource:void 0!==r.videoSource?r.videoSource:void 0,filter:r.filter}:{insertMode:c.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,a=new i.Publisher(t,r,this);return e&&"function"==typeof e?o=e:n&&(o=n),a.initialize().then((function(){void 0!==o&&o(void 0),a.emitEvent("accessAllowed",[])})).catch((function(t){void 0!==o&&o(t),a.emitEvent("accessDenied",[t])})),this.publishers.push(a),a},t.prototype.initPublisherAsync=function(t,e){var n=this;return new Promise((function(r,i){var o,a=function(t){t?i(t):r(o)};o=e?n.initPublisher(t,e,a):n.initPublisher(t,a)}))},t.prototype.initLocalRecorder=function(t){return new r.LocalRecorder(t)},t.prototype.checkSystemRequirements=function(){var t=f.name,e=f.ua?f.ua:navigator.userAgent;return this.isIPhoneOrIPad(e)?this.isIOSWithSafari(e)?1:0:"Safari"===t||"Chrome"===t||"Chrome Mobile"===t||"Firefox"===t||"Firefox Mobile"===t||"Opera"===t||"Opera Mobile"===t||"Android Browser"===t||"Electron"===t||"Samsung Internet Mobile"===t||"Samsung Internet"===t?1:0},t.prototype.checkScreenSharingCapabilities=function(){var t=f.name,e=(null==f?void 0:f.version)?parseFloat(f.version):-1,n=f.os.family;return"iOS"===n||"Android"===n||"Chrome"!==t&&"Firefox"!==t&&"Opera"!==t&&"Electron"!==t&&"Safari"===t&&e<13?0:1},t.prototype.getDevices=function(){return new Promise((function(t,e){navigator.mediaDevices.enumerateDevices().then((function(e){var n,r=[];f.isIonicAndroid&&"undefined"!=typeof cordova&&(null===(n=null===cordova||void 0===cordova?void 0:cordova.plugins)||void 0===n?void 0:n.EnumerateDevicesPlugin)?cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then((function(n){var i=[],o=[],a=[];i=n.filter((function(t){return"audioinput"===t.kind})),o=e.filter((function(t){return"videoinput"===t.kind})),a=e.filter((function(t){return"audioinput"===t.kind})),o.forEach((function(t,e){r.push(t.label?{kind:t.kind,deviceId:t.deviceId,label:t.label}:{kind:t.kind,deviceId:t.deviceId,label:0===e?"Front Camera":1===e?"Back Camera":"Unknown Camera"})})),a.forEach((function(t,e){if(t.label)r.push({kind:t.kind,deviceId:t.deviceId,label:t.label});else{var n="";switch(e){case 0:n="Default";break;case 1:var o=i.filter((function(t){return t.label.includes("Built")}))[0];n=o?o.label:"Built-in Microphone";break;case 2:var a=i.filter((function(t){return t.label.includes("Wired")}))[0];n=a?a.label:"Headset earpiece";break;case 3:var s=i.filter((function(t){return t.label.includes("Bluetooth")}))[0];n=s?s.label:"Wireless";break;default:n="Unknown Microphone"}r.push({kind:t.kind,deviceId:t.deviceId,label:n})}})),t(r)})):(e.forEach((function(t){"audioinput"!==t.kind&&"videoinput"!==t.kind||r.push({kind:t.kind,deviceId:t.deviceId,label:t.label})})),t(r))})).catch((function(t){g.error("Error getting devices",t),e(t)}))}))},t.prototype.getUserMedia=function(t){var e=this;return new Promise((function(n,r){var i=function(t,i){var o={audio:void 0===i.audio||i.audio,video:!1};navigator.mediaDevices.getUserMedia(o).then((function(e){t.addTrack(e.getAudioTracks()[0]),n(t)})).catch((function(n){t.getAudioTracks().forEach((function(t){t.stop()})),t.getVideoTracks().forEach((function(t){t.stop()})),r(e.generateAudioDeviceError(n,o))}))};e.generateMediaConstraints(t).then((function(o){var a,c;if(o.videoTrack&&o.audioTrack||o.audioTrack&&!1===(null===(a=o.constraints)||void 0===a?void 0:a.video)||o.videoTrack&&!1===(null===(c=o.constraints)||void 0===c?void 0:c.audio))n(e.addAlreadyProvidedTracks(o,new MediaStream));else{o.videoTrack&&delete o.constraints.video,o.audioTrack&&delete o.constraints.audio;var u=!1;if("string"==typeof t.videoSource&&("screen"===t.videoSource||"window"===t.videoSource||"Electron"===f.name&&t.videoSource.startsWith("screen:"))&&(u=!o.audioTrack&&null!==t.audioSource&&!1!==t.audioSource,navigator.mediaDevices.getDisplayMedia&&"Electron"!==f.name))return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(t){e.addAlreadyProvidedTracks(o,t),u?i(t,o.constraints):n(t)})).catch((function(t){var e=s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n=t.toString();r(new s.OpenViduError(e,n))}));navigator.mediaDevices.getUserMedia(u?{video:o.constraints.video}:o.constraints).then((function(t){e.addAlreadyProvidedTracks(o,t),u?i(t,o.constraints):n(t)})).catch((function(e){var n=e.toString();r(new s.OpenViduError("screen"!==t.videoSource?s.OpenViduErrorName.DEVICE_ACCESS_DENIED:s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))}))}})).catch((function(t){r(t)}))}))},t.prototype.enableProdMode=function(){g.enableProdMode()},t.prototype.setAdvancedConfiguration=function(t){this.advancedConfiguration=t},t.prototype.generateMediaConstraints=function(t){var e=this;return new Promise((function(n,r){var i={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},o=t.audioSource,a=t.videoSource;if(null!==o&&!1!==o||(i.constraints.audio=!1),null!==a&&!1!==a||(i.constraints.video=!1),!1===i.constraints.audio&&!1===i.constraints.video&&r(new s.OpenViduError(s.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&&(i.audioTrack=o),"undefined"!=typeof MediaStreamTrack&&a instanceof MediaStreamTrack&&(i.videoTrack=a),void 0===o&&(i.constraints.audio=!0),void 0===a&&(i.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==a&&!1!==a){if(t.resolution){var c=t.resolution.toLowerCase().split("x"),u=Number(c[0]),l=Number(c[1]);i.constraints.video={width:{ideal:u},height:{ideal:l}}}t.frameRate&&(i.constraints.video.frameRate={ideal:t.frameRate})}e.configureDeviceIdOrScreensharing(i,t,n,r),n(i)}))},t.prototype.startWs=function(t){var e={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,onconnected:t,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new h.clients.JsonRpcClient(e)},t.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},t.prototype.sendRequest=function(t,e,n){e&&e instanceof Function&&(n=e,e={}),g.debug('Sending request: {method:"'+t+'", params: '+JSON.stringify(e)+"}"),this.jsonRpcClient.send(t,e,n)},t.prototype.getWsUri=function(){return this.wsUri},t.prototype.getSecret=function(){return this.secret},t.prototype.getRecorder=function(){return this.recorder},t.prototype.generateAudioDeviceError=function(t,e){var n,r;switch("Error"===t.name&&(t.name=t.constructor.name),t.name.toLowerCase()){case"notfounderror":return n=s.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,r=t.toString(),new s.OpenViduError(n,r);case"notallowederror":return n=s.OpenViduErrorName.DEVICE_ACCESS_DENIED,r=t.toString(),new s.OpenViduError(n,r);case"overconstrainederror":return"deviceid"===t.constraint.toLowerCase()?(n=s.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,r="Audio input device with deviceId '"+e.audio.deviceId.exact+"' not found"):(n=s.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,r="Audio input device doesn't support the value passed for constraint '"+t.constraint+"'"),new s.OpenViduError(n,r);case"notreadableerror":return n=s.OpenViduErrorName.DEVICE_ALREADY_IN_USE,r=t.toString(),new s.OpenViduError(n,r);default:return new s.OpenViduError(s.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,t.toString())}},t.prototype.addAlreadyProvidedTracks=function(t,e){return t.videoTrack&&e.addTrack(t.videoTrack),t.audioTrack&&e.addTrack(t.audioTrack),e},t.prototype.configureDeviceIdOrScreensharing=function(t,e,n,r){var i=this,o=e.audioSource,a=e.videoSource;if("string"==typeof o&&(t.constraints.audio={deviceId:{exact:o}}),"string"==typeof a)if(this.isScreenShare(a))if(this.checkScreenSharingCapabilities())if("Electron"===f.name){var c=a.substr(a.indexOf("screen:")+"screen:".length);t.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:c}},n(t)}else{if(this.advancedConfiguration.screenShareChromeExtension&&-1===f.name.indexOf("Firefox")&&!navigator.mediaDevices.getDisplayMedia)return void d.getScreenConstraints((function(e,o){if(e||o.mandatory&&"screen"===o.mandatory.chromeMediaSource){if("permission-denied"!==e&&"PermissionDeniedError"!==e){var a=i.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();return void d.getChromeExtensionStatus(a,(function(t){if("installed-disabled"===t){var e=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");g.error(e),r(e)}if("not-installed"===t){var n=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,i.advancedConfiguration.screenShareChromeExtension);g.error(n),r(n)}}))}var c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");g.error(c),r(c)}else t.constraints.video=o,n(t)}));if(!navigator.mediaDevices.getDisplayMedia){var u=-1!==f.name.indexOf("Firefox")?e.videoSource:void 0;return void l.getScreenId(u,(function(e,o,a){if(e)if("not-installed"===e){var c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,i.advancedConfiguration.screenShareChromeExtension?i.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");g.error(c),r(c)}else"installed-disabled"===e?(c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),g.error(c),r(c)):"permission-denied"===e?(c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),g.error(c),r(c)):(c=new s.OpenViduError(s.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),g.error(c),g.error(e),r(c));else t.constraints.video=a.video,n(t)}))}n(t)}else{var p=new s.OpenViduError(s.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0) or Electron. Detected client: "+f.name);g.error(p),r(p)}else this.setVideoSource(t,a)},t.prototype.setVideoSource=function(t,e){t.constraints.video||(t.constraints.video={}),t.constraints.video.deviceId={exact:e}},t.prototype.disconnectCallback=function(){g.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},t.prototype.reconnectingCallback=function(){g.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},t.prototype.reconnectedCallback=function(){var t=this;g.warn("Websocket reconnected"),this.isRoomAvailable()?this.sendRequest("connect",{sessionId:this.session.connection.rpcSessionId},(function(e,n){e?(g.error(e),g.warn("Websocket was able to reconnect to OpenVidu Server, but your Connection was already destroyed due to timeout. You are no longer a participant of the Session and your media streams have been destroyed"),t.session.onLostConnection("networkDisconnect"),t.jsonRpcClient.close(4101,"Reconnection fault")):(t.jsonRpcClient.resetPing(),t.session.onRecoveredConnection())})):alert("Connection error. Please reload page.")},t.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(g.warn("Session instance not found"),!1)},t.prototype.isScreenShare=function(t){return"screen"===t||"window"===t||"Electron"===f.name&&t.startsWith("screen:")},t.prototype.isIPhoneOrIPad=function(t){var e="ontouchend"in document,n=/\b(\w*Macintosh\w*)\b/.test(t)&&e,r=/\b(\w*iPhone\w*)\b/.test(t)&&/\b(\w*Mobile\w*)\b/.test(t)&&e;return n||r},t.prototype.isIOSWithSafari=function(t){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(t)&&!/\b(\w*CriOS\w*)\b/.test(t)&&!/\b(\w*FxiOS\w*)\b/.test(t)},t}();e.OpenVidu=v},PZzU:function(t,e,n){"use strict";e.__esModule=!0;var r=n("PPcv");e.OpenVidu=r.OpenVidu;var i=n("JTMn");e.Session=i.Session;var o=n("PEz1");e.Publisher=o.Publisher;var a=n("bk74");e.Subscriber=a.Subscriber;var s=n("P3vI");e.StreamManager=s.StreamManager;var c=n("DPKQ");e.Stream=c.Stream;var u=n("ryRr");e.Connection=u.Connection;var l=n("tInm");e.LocalRecorder=l.LocalRecorder;var d=n("74bm");e.Filter=d.Filter;var p=n("Yn0Z");e.LocalRecorderState=p.LocalRecorderState;var h=n("Tt94");e.OpenViduError=h.OpenViduError;var f=n("/dLB");e.VideoInsertMode=f.VideoInsertMode;var m=n("hzOQ");e.Event=m.Event;var g=n("8KVD");e.ConnectionEvent=g.ConnectionEvent;var v=n("e8ps");e.PublisherSpeakingEvent=v.PublisherSpeakingEvent;var y=n("rUL0");e.RecordingEvent=y.RecordingEvent;var b=n("ksJj");e.SessionDisconnectedEvent=b.SessionDisconnectedEvent;var _=n("suHS");e.SignalEvent=_.SignalEvent;var w=n("Te8r");e.StreamEvent=w.StreamEvent;var S=n("HxXY");e.StreamManagerEvent=S.StreamManagerEvent;var C=n("oIG1");e.VideoElementEvent=C.VideoElementEvent;var O=n("BwMD");e.StreamPropertyChangedEvent=O.StreamPropertyChangedEvent;var x=n("+ig+");e.FilterEvent=x.FilterEvent;var E=n("Dztv");e.EventDispatcher=E.EventDispatcher},QSjB:function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n("FlKs"),i=n("vqGb"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),a=n("dlaP"),s=function(t){return new r.TokenState(t)},c=s(),u=s(),l=s(),d=s(),p=s(),h=s(),f=s(),m=s(i.URL),g=s(),v=s(i.URL),y=s(i.URL),b=s(),_=s(),w=s(),S=s(),C=s(),O=s(i.URL),x=s(i.URL),E=s(i.URL),k=s(i.URL),P=s(),T=s(),M=s(),A=s(),I=s(),R=s(),D=s(i.EMAIL),N=s(),L=s(i.EMAIL),V=s(i.MAILTOEMAIL),j=s(),F=s(),B=s(),U=s(),z=s(i.NL);c.on(a.NL,z).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,d),u.on(a.SLASH,d),d.on(a.SLASH,p),c.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,m).on(a.NUM,h),p.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),h.on(a.DOT,f),I.on(a.DOT,R),f.on(a.TLD,m).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),R.on(a.TLD,D).on(a.DOMAIN,I).on(a.NUM,I).on(a.LOCALHOST,I),m.on(a.DOT,f),D.on(a.DOT,R),m.on(a.COLON,g).on(a.SLASH,y),g.on(a.NUM,v),v.on(a.SLASH,y),D.on(a.COLON,N),N.on(a.NUM,L);var H=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,_).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),_.on(a.CLOSEBRACE,y),w.on(a.CLOSEBRACKET,y),S.on(a.CLOSEANGLEBRACKET,y),C.on(a.CLOSEPAREN,y),O.on(a.CLOSEBRACE,y),x.on(a.CLOSEBRACKET,y),E.on(a.CLOSEANGLEBRACKET,y),k.on(a.CLOSEPAREN,y),P.on(a.CLOSEBRACE,y),T.on(a.CLOSEBRACKET,y),M.on(a.CLOSEANGLEBRACKET,y),A.on(a.CLOSEPAREN,y),_.on(H,O),w.on(H,x),S.on(H,E),C.on(H,k),_.on(W,P),w.on(W,T),S.on(W,M),C.on(W,A),O.on(H,O),x.on(H,x),E.on(H,E),k.on(H,k),O.on(W,O),x.on(W,x),E.on(W,E),k.on(W,k),P.on(H,O),T.on(H,x),M.on(H,E),A.on(H,k),P.on(W,P),T.on(W,T),M.on(W,M),A.on(W,A),y.on(H,y),b.on(H,y),y.on(W,b),b.on(W,b),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(H,V).on(W,j),j.on(H,V).on(W,j);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(G,F).on(a.AT,B),m.on(G,F).on(a.AT,B),f.on(G,F),F.on(G,F).on(a.AT,B).on(a.DOT,U),U.on(G,F),B.on(a.TLD,I).on(a.DOMAIN,I).on(a.LOCALHOST,D),e.State=r.TokenState,e.TOKENS=o,e.run=function(t){for(var e=t.length,n=0,r=[],o=[];n<e;){for(var a=c,s=null,u=null,l=0,d=null,p=-1;n<e&&!(s=a.next(t[n]));)o.push(t[n++]);for(;n<e&&(u=s||a.next(t[n]));)s=null,(a=u).accepts()?(p=0,d=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)o.push(t[h]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var f=d.emit();r.push(new f(t.slice(n-l,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},e.start=c},RvMX:function(t,e,n){"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},SYuc:function(t,e,n){var r=n("EDod");e.JsonRpcClient=r},TDwH:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=t.scanner.TOKENS,n=t.parser.start;function r(t){this.v=t}t.inherits(t.parser.TOKENS.Base,r,{type:"hashtag",isLink:!0});var i=n.jump(e.POUND),o=new t.parser.State(r);i.on(e.DOMAIN,o),i.on(e.TLD,o),i.on(e.LOCALHOST,o)}},Te8r:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("hzOQ"),a=n("PEz1"),s=n("JTMn"),c=n("9m68").OpenViduLogger.getInstance(),u=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.stream=i,a.reason=o,a}return i(e,t),e.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)c.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof a.Publisher){c.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var t=this.target.openvidu.publishers,e=0;e<t.length;e++)if(t[e]===this.target){t.splice(e,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),delete this.stream.session.remoteStreamsCreated[this.stream.streamId];var n=this.stream.session.remoteConnections[this.stream.connection.connectionId];if(n&&n.options){var r=n.options.streams;for(e=r.length-1;e>=0;--e)r[e].id===this.stream.streamId&&r.splice(e,1)}}},e}(o.Event);e.StreamEvent=u},Tt94:function(t,e,n){"use strict";var r;e.__esModule=!0,(r=e.OpenViduErrorName||(e.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",r.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",r.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",r.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",r.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",r.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",r.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",r.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",r.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",r.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",r.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",r.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",r.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",r.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",r.GENERIC_ERROR="GENERIC_ERROR",e.OpenViduError=function(t,e){this.name=t,this.message=e}},Yn0Z:function(t,e,n){"use strict";var r;e.__esModule=!0,(r=e.LocalRecorderState||(e.LocalRecorderState={})).READY="READY",r.RECORDING="RECORDING",r.PAUSED="PAUSED",r.FINISHED="FINISHED"},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},bDgZ:function(t,e,n){(function(t){var r;(function(){"use strict";var i={function:!0,object:!0},o=i[typeof window]&&window||this,a=i[typeof e]&&e&&i[typeof t]&&t&&!t.nodeType&&t&&"object"==typeof global&&global;!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a);var s=Math.pow(2,53)-1,c=/\bOpera/,u=Object.prototype,l=u.hasOwnProperty,d=u.toString;function p(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function h(t){return t=y(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:p(t)}function f(t,e){for(var n in t)l.call(t,n)&&e(t[n],n,t)}function m(t){return null==t?p(t):d.call(t).slice(8,-1)}function g(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function v(t,e){var n=null;return function(t,e){var n=-1,r=t?t.length:0;if("number"==typeof r&&r>-1&&r<=s)for(;++n<r;)e(t[n],n);else f(t,e)}(t,(function(r,i){n=e(n,r,i,t)})),n}function y(t){return String(t).replace(/^ +| +$/g,"")}var b=function t(e){var n=o,r=e&&"object"==typeof e&&"String"!=m(e);r&&(n=e,e=null);var i=n.navigator||{},a=i.userAgent||"";e||(e=a);var s,u,l,p,b=r?!!i.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(d.toString()),_=r?"Object":"ScriptBridgingProxyObject",w=r?"Object":"Environment",S=r&&n.java?"JavaPackage":m(n.java),C=r?"Object":"RuntimeObject",O=/\bJava/.test(S)&&n.java,x=O&&m(n.environment)==w,E=O?"a":"\u03b1",k=O?"b":"\u03b2",P=n.document||{},T=n.operamini||n.opera,M=c.test(M=r&&T?T["[[Class]]"]:m(T))?M:T=null,A=e,I=[],R=null,D=e==a,N=D&&T&&"function"==typeof T.version&&T.version(),L=v([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(t,n){return t||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(e)&&(n.label||n)})),V=v(["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"},"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","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{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(t,n){return t||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(e)&&(n.label||n)})),j=U([{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"]),F=v({Apple:{iPad:1,iPhone:1,iPod:1},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:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}},(function(t,n,r){return t||(n[j]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(j)]||RegExp("\\b"+g(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r})),B=v(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","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(t,n){var r=n.pattern||g(n);return!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=function(t,e,n){var r={"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 e&&n&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(r=r[/[\d.]+$/.exec(t)])&&(t="Windows "+r),t=String(t),e&&n&&(t=t.replace(RegExp(e,"i"),n)),h(t.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])}(t,r,n.label||n)),t}));function U(t){return v(t,(function(t,n){var r=n.pattern||g(n);return!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=h(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t}))}if(L&&(L=[L]),F&&!j&&(j=U([F])),(s=/\bGoogle TV\b/.exec(j))&&(j=s[0]),/\bSimulator\b/i.test(e)&&(j=(j?j+" ":"")+"Simulator"),"Opera Mini"==V&&/\bOPiOS\b/.test(e)&&I.push("running in Turbo/Uncompressed mode"),"IE"==V&&/\blike iPhone OS\b/.test(e)?(F=(s=t(e.replace(/like iPhone OS/,""))).manufacturer,j=s.product):/^iP/.test(j)?(V||(V="Safari"),B="iOS"+((s=/ OS ([\d_]+)/i.exec(e))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"!=V||/buntu/i.test(B)?F&&"Google"!=F&&(/Chrome/.test(V)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(j))||/\bAndroid\b/.test(B)&&/^Chrome/.test(V)&&/\bVersion\//i.test(e)?(V="Android Browser",B=/\bAndroid\b/.test(B)?B:"Android"):"Silk"==V?(/\bMobi/i.test(e)||(B="Android",I.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&I.unshift("accelerated")):"PaleMoon"==V&&(s=/\bFirefox\/([\d.]+)\b/.exec(e))?I.push("identifying as Firefox "+s[1]):"Firefox"==V&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(B||(B="Firefox OS"),j||(j=s[1])):!V||(s=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(V))?(V&&!j&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(s+"/")+8))&&(V=null),(s=j||F||B)&&(j||F||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(B))&&(V=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(B)?B:s)+" Browser")):"Electron"==V&&(s=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&I.push("Chromium "+s):B="Kubuntu",N||(N=v(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(V),"(?:Firefox|Minefield|NetFront)"],(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))),(s=("iCab"==L&&parseFloat(N)>3?"WebKit":/\bOpera\b/.test(V)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(L)&&"WebKit"||!L&&/\bMSIE\b/i.test(e)&&("Mac OS"==B?"Tasman":"Trident")||"WebKit"==L&&/\bPlayStation\b(?! Vita\b)/i.test(V)&&"NetFront")&&(L=[s]),"IE"==V&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(V+=" Mobile",B="Windows Phone "+(/\+$/.test(s)?s:s+".x"),I.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(V="IE Mobile",B="Windows Phone 8.x",I.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=V&&"Trident"==L&&(s=/\brv:([\d.]+)/.exec(e))&&(V&&I.push("identifying as "+V+(N?" "+N:"")),V="IE",N=s[1]),D){if(/^(?:boolean|number|string|undefined)$/.test(p=null!=(l=n)?typeof l.global:"number")||"object"==p&&!l.global)m(s=n.runtime)==_?(V="Adobe AIR",B=s.flash.system.Capabilities.os):m(s=n.phantom)==C?(V="PhantomJS",N=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof P.documentMode&&(s=/\bTrident\/(\d+)/i.exec(e))?((s=+s[1]+4)!=(N=[N,P.documentMode])[1]&&(I.push("IE "+N[1]+" mode"),L&&(L[1]=""),N[1]=s),N="IE"==V?String(N[1].toFixed(1)):N[0]):"number"==typeof P.documentMode&&/^(?:Chrome|Firefox)\b/.test(V)&&(I.push("masking as "+V+" "+N),V="IE",N="11.0",L=["Trident"],B="Windows");else if(O&&(A=(s=O.lang.System).getProperty("os.arch"),B=B||s.getProperty("os.name")+" "+s.getProperty("os.version")),x){try{N=n.require("ringo/engine").version.join("."),V="RingoJS"}catch(H){(s=n.system)&&s.global.system==n.system&&(V="Narwhal",B||(B=s[0].os||null))}V||(V="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(I.push("Node "+s.versions.node),V="Electron",N=s.versions.electron):"string"==typeof s.versions.nw&&(I.push("Chromium "+N,"Node "+s.versions.node),V="NW.js",N=s.versions.nw)),V||(V="Node.js",A=s.arch,B=s.platform,N=(N=/[\d.]+/.exec(s.version))?N[0]:null));B=B&&h(B)}if(N&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(D&&i.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(R=/b/i.test(s)?"beta":"alpha",N=N.replace(RegExp(s+"\\+?$"),"")+("beta"==R?k:E)+(/\d+\+?/.exec(s)||"")),"Fennec"==V||"Firefox"==V&&/\b(?:Android|Firefox OS)\b/.test(B))V="Firefox Mobile";else if("Maxthon"==V&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))"Xbox 360"==j&&(B=null),"Xbox 360"==j&&/\bIEMobile\b/.test(e)&&I.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(V)&&(!V||j||/Browser|Mobi/.test(V))||"Windows CE"!=B&&!/Mobi/i.test(e))if("IE"==V&&D)try{null===n.external&&I.unshift("platform preview")}catch(H){I.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(e))&&(s=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||N)?(B=((s=[s,/BB10/.test(e)])[1]?(j=null,F="BlackBerry"):"Device Software")+" "+s[0],N=null):this!=f&&"Wii"!=j&&(D&&T||/Opera/.test(V)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==V&&/\bOS X (?:\d+\.){2,}/.test(B)||"IE"==V&&(B&&!/^Win/.test(B)&&N>5.5||/\bWindows XP\b/.test(B)&&N>8||8==N&&!/\bTrident\b/.test(e)))&&!c.test(s=t.call(f,e.replace(c,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),c.test(V)?(/\bIE\b/.test(s)&&"Mac OS"==B&&(B=null),s="identify"+s):(s="mask"+s,V=M?h(M.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(B=null),D||(N=null)),L=["Presto"],I.push(s));else V+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==V&&"+"==s[1].slice(-1)?(V="WebKit Nightly",R="alpha",N=s[1].slice(0,-1)):N!=s[1]&&N!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(N=null),s[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==L&&(L=["Blink"]),D&&(b||s[1])?(L&&(L[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=L?"27":"28")):(L&&(L[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:"8"),L&&(L[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==V&&(!N||parseInt(N)>45)&&(N=s)),"Opera"==V&&(s=/\bzbov|zvav$/.exec(B))?(V+=" ",I.unshift("desktop mode"),"zvav"==s?(V+="Mini",N=null):V+="Mobile",B=B.replace(RegExp(" *"+s+"$"),"")):"Safari"==V&&/\bChrome\b/.exec(L&&L[1])&&(I.unshift("desktop mode"),V="Chrome Mobile",N=null,/\bOS X\b/.test(B)?(F="Apple",B="iOS 4.3+"):B=null),N&&0==N.indexOf(s=/[\d.]+$/.exec(B))&&e.indexOf("/"+s+"-")>-1&&(B=y(B.replace(s,""))),L&&!/\b(?:Avant|Nook)\b/.test(V)&&(/Browser|Lunascape|Maxthon/.test(V)||"Safari"!=V&&/^iOS/.test(B)&&/\bSafari\b/.test(L[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(V)&&L[1])&&(s=L[L.length-1])&&I.push(s),I.length&&(I=["("+I.join("; ")+")"]),F&&j&&j.indexOf(F)<0&&I.push("on "+F),j&&I.push((/^on /.test(I[I.length-1])?"":"on ")+j),B&&(s=/ ([\d.+]+)$/.exec(B),u=s&&"/"==B.charAt(B.length-s[0].length-1),B={architecture:32,family:s&&!u?B.replace(s[0],""):B,version:s?s[1]:null,toString:function(){var t=this.version;return this.family+(t&&!u?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(B&&(B.architecture=64,B.family=B.family.replace(RegExp(" *"+s),"")),V&&(/\bWOW64\b/i.test(e)||D&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(e))&&I.unshift("32-bit")):B&&/^OS X/.test(B.family)&&"Chrome"==V&&parseFloat(N)>=39&&(B.architecture=64),e||(e=null);var z={};return z.description=e,z.layout=L&&L[0],z.manufacturer=F,z.name=V,z.prerelease=R,z.product=j,z.ua=e,z.version=V&&N,z.os=B||{architecture:null,family:null,version:null,toString:function(){return"null"}},z.parse=t,z.toString=function(){return this.description||""},z.version&&I.unshift(N),z.name&&I.unshift(V),B&&V&&(B!=String(B).split(" ")[0]||B!=V.split(" ")[0]&&!j)&&I.push(j?"("+B+")":"on "+B),I.length&&(z.description=I.join(" ")),z}();o.platform=b,void 0===(r=(function(){return b}).call(e,n,e,t))||(t.exports=r)}).call(this)}).call(this,n("YuTi")(t))},bGVd:function(t,e,n){t.exports=n("IXxz").default},bk74:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("P3vI"),a=n("9m68").OpenViduLogger.getInstance(),s=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.element=i.targetElement,i.stream=e,i.properties=r,i}return i(e,t),e.prototype.subscribeToAudio=function(t){return this.stream.getMediaStream().getAudioTracks().forEach((function(e){e.enabled=t})),this.stream.audioActive=t,a.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its audio stream"),this},e.prototype.subscribeToVideo=function(t){return this.stream.getMediaStream().getVideoTracks().forEach((function(e){e.enabled=t})),this.stream.videoActive=t,a.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its video stream"),this},e}(o.StreamManager);e.Subscriber=s},cUzU:function(t,e,n){"use strict";var r=console;t.exports=function(t){var e,n=!1,i=t.uri,o=!1,a=new WebSocket(i);a.onopen=function(){r.debug("WebSocket connected to "+i),t.onconnected&&t.onconnected()},a.onerror=function(e){r.error("Could not connect to "+i+" (invoking onerror if defined)",e),t.onerror&&t.onerror(e)};var s=function(){3===a.readyState?n?r.debug("Connection closed by user"):(r.debug("Connection closed unexpectecly. Reconnecting..."),c(2e3,1)):r.debug("Close callback from previous websocket. Ignoring it")};function c(n,u){if(r.debug("reconnect (attempt #"+u+", max="+n+")"),1===u){if(o)return void r.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");o=!0,t.onreconnecting&&t.onreconnecting()}!function(n,u){r.debug("Reconnection attempt #"+u),a.close(),(a=new WebSocket(i)).onopen=function(){r.debug("Reconnected to "+i+" after "+u+" attempts..."),o=!1,e(),t.onreconnected()&&t.onreconnected(),a.onclose=s},a.onerror=function(e){r.warn("Reconnection error: ",e),u===n?t.ondisconnect&&t.ondisconnect():setTimeout((function(){c(n,u+1)}),3e3)}}(n,u)}a.onclose=s,this.close=function(){n=!0,a.close()},this.reconnectWs=function(){r.debug("reconnectWs"),c(2e3,1)},this.send=function(t){a.send(t)},this.addEventListener=function(t,n){(e=function(){a.addEventListener(t,n)})()}}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},dP7y:function(t,e,n){t.exports=n("LXjW")},"dY/r":function(t,e){var n=["stun:","turn:"];t.exports=function(t){var e,r,i=(t||{}).url||t,o={};return"string"==typeof i||i instanceof String?(i=i.trim(),(e=n[n.indexOf(i.slice(0,5))])?(r=(i=i.slice(5)).split("@"),o.username=t.username,o.credential=t.credential,r.length>1&&(i=r[1],r=r[0].split(":"),o.username=r[0],o.credential=(t||{}).credential||r[1]||""),o.url=e+i,o.urls=[o.url],o):t):t}},de4E:function(t,e){e.pack=function(t,e){var n={jsonrpc:"2.0"};if(t.method)n.method=t.method,t.params&&(n.params=t.params),null!=e&&(n.id=e);else if(null!=e){if(t.error){if(void 0!==t.result)throw new TypeError("Both result and error are defined");n.error=t.error}else{if(void 0===t.result)throw new TypeError("No result or error is defined");n.result=t.result}n.id=e}return JSON.stringify(n)},e.unpack=function(t){var e=t;("string"==typeof t||t instanceof String)&&(e=JSON.parse(t));var n=e.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+t);if(null==e.method){if(null==e.id)throw new TypeError("Invalid message: "+t);var r=void 0!==e.result,i=void 0!==e.error;if(r&&i)throw new TypeError("Both result and error are defined: "+t);if(!r&&!i)throw new TypeError("No result or error is defined: "+t);e.ack=e.id,delete e.id}return e}},dlaP:function(t,e,n){"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var r=n("RvMX"),i=n("JUw6"),o=(0,r.createTokenClass)();function a(t){var e=t?{v:t}:{};return(0,i.inherits)(o,(0,r.createTokenClass)(),e)}o.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),u=a(":"),l=a("."),d=a(),p=a(),h=a("\n"),f=a(),m=a("+"),g=a("#"),v=a(),y=a("mailto:"),b=a("?"),_=a("/"),w=a("_"),S=a(),C=a(),O=a(),x=a("{"),E=a("["),k=a("<"),P=a("("),T=a("}"),M=a("]"),A=a(">"),I=a(")"),R=a("&");e.Base=o,e.DOMAIN=s,e.AT=c,e.COLON=u,e.DOT=l,e.PUNCTUATION=d,e.LOCALHOST=p,e.NL=h,e.NUM=f,e.PLUS=m,e.POUND=g,e.QUERY=b,e.PROTOCOL=v,e.MAILTO=y,e.SLASH=_,e.UNDERSCORE=w,e.SYM=S,e.TLD=C,e.WS=O,e.OPENBRACE=x,e.OPENBRACKET=E,e.OPENANGLEBRACKET=k,e.OPENPAREN=P,e.CLOSEBRACE=T,e.CLOSEBRACKET=M,e.CLOSEANGLEBRACKET=A,e.CLOSEPAREN=I,e.AMPERSAND=R},e8ps:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i){var o=t.call(this,!1,e,n)||this;return o.type=n,o.connection=r,o.streamId=i,o}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.PublisherSpeakingEvent=o},ee8k:function(t,e,n){var r=n("cUzU");e.WebSocketWithReconnection=r},gUCu:function(t,e){function n(){var t={};this.forEach=function(e){for(var n in t){var r=t[n];for(var i in r)e(r[i])}},this.get=function(e,n){var r=t[n];if(null!=r)return r[e]},this.remove=function(e,n){var r=t[n];if(null!=r){for(var i in delete r[e],r)return!1;delete t[n]}},this.set=function(e,n,r){if(null==e)return this.remove(n,r);var i=t[r];null==i&&(t[r]=i={}),i[n]=e}}n.prototype.pop=function(t,e){var n=this.get(t,e);if(null!=n)return this.remove(t,e),n},t.exports=n},hw9W:function(t){t.exports=JSON.parse("[]")},hzOQ:function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(t,e,n){this.hasBeenPrevented=!1,this.cancelable=t,this.target=e,this.type=n}return t.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},t.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},t}();e.Event=r},joaK:function(t,e,n){t.exports=n("TDwH").default},kiQV:function(t){t.exports=JSON.parse('{"dependencies":{"@angular/animations":"9.1.11","@angular/cdk":"9.2.4","@angular/common":"9.1.11","@angular/compiler":"9.1.11","@angular/core":"9.1.11","@angular/elements":"9.1.11","@angular/flex-layout":"9.0.0-beta.31","@angular/forms":"9.1.11","@angular/material":"9.2.4","@angular/platform-browser":"9.1.11","@angular/platform-browser-dynamic":"9.1.11","@angular/router":"9.1.11","core-js":"3.1.4","jquery":"3.5.1","ngx-linkifyjs":"1.3.0","openvidu-browser":"2.15.0","rxjs":"6.5.5","unique-names-generator":"4.2.0","zone.js":"0.10.3"},"devDependencies":{"@angular-devkit/build-angular":"0.901.7","@angular-devkit/build-ng-packagr":"0.901.7","@angular/cli":"9.1.7","@angular/compiler-cli":"9.1.11","@angular/language-service":"9.1.11","@types/jasmine":"3.5.10","@types/jasminewd2":"2.0.8","@types/jquery":"3.3.38","@types/node":"14.0.13","@webcomponents/webcomponentsjs":"2.2.10","codelyzer":"5.2.2","concat":"1.0.3","document-register-element":"1.13.2","elements-zone-strategy":"8.0.0","fs-extra":"8.1.0","jasmine-core":"3.5.0","jasmine-spec-reporter":"5.0.2","karma":"5.0.9","karma-chrome-launcher":"3.1.0","karma-coverage-istanbul-reporter":"3.0.3","karma-jasmine":"3.3.1","karma-jasmine-html-reporter":"1.5.4","karma-junit-reporter":"2.0.1","karma-mocha-reporter":"2.2.5","karma-notify-reporter":"1.2.0","ng-packagr":"9.0.3","protractor":"7.0.0","ts-node":"8.10.2","tslib":"1.11.1","tslint":"6.1.2","typedoc":"0.17.7","typescript":"3.7.5"},"name":"openvidu-call","private":true,"scripts":{"build":"./node_modules/@angular/cli/bin/ng build && npm run copy:backend","build-prod":"func() { ./node_modules/@angular/cli/bin/ng build --prod --base-href=\\"${1:-/}\\" && npm run copy:backend-prod; }; func","build:openvidu-angular":"node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod","build:openvidu-webcomponent":"node -e \\"require(\'./openvidu-webcomponent-build.js\').prepareWebcomponent()\\" && ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none && node -e \\"require(\'./openvidu-webcomponent-build.js\').buildWebcomponent()\\"","copy:backend":"cp -a dist/openvidu-call/. ../openvidu-call-back/public/","copy:backend-prod":"mkdir -p ../openvidu-call-back/dist/public && cp -a dist/openvidu-call/. ../openvidu-call-back/dist/public/","e2e":"ng e2e","lint":"ng lint","pack:openvidu-angular":"cd dist/openvidu-angular && npm pack","start":"ng serve","test":"ng test openvidu-call --watch=false --code-coverage"},"version":"2.15.0"}')},ksJj:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("hzOQ"),a=n("9m68").OpenViduLogger.getInstance(),s=function(t){function e(e,n){var r=t.call(this,!0,e,"sessionDisconnected")||this;return r.reason=n,r}return i(e,t),e.prototype.callDefaultBehavior=function(){a.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var t=this.target;for(var e in t.remoteConnections)t.remoteConnections[e].stream&&(t.remoteConnections[e].stream.disposeWebRtcPeer(),t.remoteConnections[e].stream.disposeMediaStream(),t.remoteConnections[e].stream.streamManager&&t.remoteConnections[e].stream.streamManager.removeAllVideos(),delete t.remoteStreamsCreated[t.remoteConnections[e].stream.streamId],t.remoteConnections[e].dispose()),delete t.remoteConnections[e]},e}(o.Event);e.SessionDisconnectedEvent=s},mgp7:function(t,e,n){t.exports=n("/u9M").default},oIG1:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r){var i=t.call(this,!1,n,r)||this;return i.element=e,i}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.VideoElementEvent=o},pLL0:function(t,e){e.pack=function(t){throw new TypeError("Not yet implemented")},e.unpack=function(t){throw new TypeError("Not yet implemented")}},rUL0:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i,o){var a=t.call(this,!1,e,n)||this;return a.id=r,i!==r&&(a.name=i),a.reason=o,a}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.RecordingEvent=o},ryRr:function(t,e,n){"use strict";e.__esModule=!0;var r=n("DPKQ"),i=n("9m68").OpenViduLogger.getInstance(),o=function(){function t(t,e){this.session=t,this.disposed=!1;var n="'Connection' created ";e?(n+="(remote) with 'connectionId' ["+e.id+"]",this.options=e,this.connectionId=e.id,this.creationTime=e.createdAt,e.metadata&&(this.data=e.metadata),e.streams&&this.initRemoteStreams(e.streams)):n+="(local)",i.info(n)}return t.prototype.sendIceCandidate=function(t){i.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,t),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:t.candidate,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex},(function(t,e){t&&i.error("Error sending ICE candidate: "+JSON.stringify(t))}))},t.prototype.initRemoteStreams=function(t){var e=this;t.forEach((function(t){var n={id:t.id,createdAt:t.createdAt,connection:e,hasAudio:t.hasAudio,hasVideo:t.hasVideo,audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:t.typeOfVideo,frameRate:t.frameRate,videoDimensions:t.videoDimensions?JSON.parse(t.videoDimensions):void 0,filter:t.filter?t.filter:void 0},i=new r.Stream(e.session,n);e.addStream(i)})),i.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},t.prototype.addStream=function(t){t.connection=this,this.stream=t},t.prototype.removeStream=function(t){delete this.stream},t.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},t}();e.Connection=o},suHS:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,r,i){var o=t.call(this,!1,e,"signal")||this;return n&&(o.type="signal:"+n),o.data=r,o.from=i,o}return i(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.SignalEvent=o},"t/6/":function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n("FlKs"),i=n("dlaP"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v","\xa0","\u1680","\u180e"],l=[],d=function(t){return new r.CharacterState(t)},p=d(),h=d(i.NUM),f=d(i.DOMAIN),m=d(),g=d(i.WS);p.on("@",d(i.AT)).on(".",d(i.DOT)).on("+",d(i.PLUS)).on("#",d(i.POUND)).on("?",d(i.QUERY)).on("/",d(i.SLASH)).on("_",d(i.UNDERSCORE)).on(":",d(i.COLON)).on("{",d(i.OPENBRACE)).on("[",d(i.OPENBRACKET)).on("<",d(i.OPENANGLEBRACKET)).on("(",d(i.OPENPAREN)).on("}",d(i.CLOSEBRACE)).on("]",d(i.CLOSEBRACKET)).on(">",d(i.CLOSEANGLEBRACKET)).on(")",d(i.CLOSEPAREN)).on("&",d(i.AMPERSAND)).on([",",";","!",'"',"'"],d(i.PUNCTUATION)),p.on("\n",d(i.NL)).on(u,g),g.on(u,g);for(var v=0;v<a.length;v++){var y=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,y)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,b),l.push.apply(l,_),l.push.apply(l,w),l.push.apply(l,S);var C=b.pop(),O=_.pop(),x=w.pop(),E=S.pop(),k=d(i.DOMAIN),P=d(i.PROTOCOL),T=d(i.MAILTO);O.on("s",k).on(":",P),x.on("s",k).on(":",P),l.push(k),C.on(":",P),k.on(":",P),E.on(":",T);var M=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,M),p.on(s,h),h.on("-",m).on(s,h).on(c,f),f.on("-",m).on(c,f);for(var A=0;A<l.length;A++)l[A].on("-",m).on(c,f);m.on("-",m).on(s,f).on(c,f),p.defaultTransition=d(i.SYM);var I=p;e.State=r.CharacterState,e.TOKENS=o,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],i=0;i<n;){for(var o=p,a=null,s=0,c=null,u=-1;i<n&&(a=o.next(e[i]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,i++;if(!(u<0)){i-=u,s-=u;var l=c.emit();r.push(new l(t.substr(i-s,s)))}}return r},e.start=I},tInm:function(t,e,n){"use strict";e.__esModule=!0;var r=n("Yn0Z"),i=n("bDgZ"),o=n("9m68").OpenViduLogger.getInstance(),a=function(){function t(t){this.stream=t,this.chunks=[],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 t.prototype.record=function(t){var e=this;return new Promise((function(n,i){try{if("undefined"==typeof MediaRecorder)throw o.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(e.state!==r.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+e.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");o.log("Starting local recording of stream '"+e.stream.streamId+"' of connection '"+e.connectionId+"'");var a={};"function"==typeof MediaRecorder.isTypeSupported?t?(MediaRecorder.isTypeSupported(t)||i(new Error('mimeType "'+t+'" is not supported')),a={mimeType:t}):o.log("No mimeType parameter provided. Using default codecs"):o.warn("MediaRecorder#isTypeSupported is not supported. Using default codecs"),e.mediaRecorder=new MediaRecorder(e.stream.getMediaStream(),a),e.mediaRecorder.start(10)}catch(s){i(s)}e.mediaRecorder.ondataavailable=function(t){e.chunks.push(t.data)},e.mediaRecorder.onerror=function(t){o.error("MediaRecorder error: ",t)},e.mediaRecorder.onstart=function(){o.log("MediaRecorder started (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onstop=function(){e.onStopDefault()},e.mediaRecorder.onpause=function(){o.log("MediaRecorder paused (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onresume=function(){o.log("MediaRecorder resumed (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onwarning=function(t){o.log("MediaRecorder warning: "+t)},e.state=r.LocalRecorderState.RECORDING,n()}))},t.prototype.stop=function(){var t=this;return new Promise((function(e,n){try{if(t.state===r.LocalRecorderState.READY||t.state===r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' before");t.mediaRecorder.onstop=function(){t.onStopDefault(),e()},t.mediaRecorder.stop()}catch(i){n(i)}}))},t.prototype.pause=function(){var t=this;return new Promise((function(e,n){try{t.state!==r.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),t.mediaRecorder.pause(),t.state=r.LocalRecorderState.PAUSED}catch(i){n(i)}}))},t.prototype.resume=function(){var t=this;return new Promise((function(e,n){try{if(t.state!==r.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.pause()' before");t.mediaRecorder.resume(),t.state=r.LocalRecorderState.RECORDING}catch(i){n(i)}}))},t.prototype.preview=function(t){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,"Safari"===i.name&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof t){var e=document.getElementById(t);e&&(this.videoPreview=e.appendChild(this.videoPreview))}else this.videoPreview=t.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},t.prototype.clean=function(){var t=this,e=function(){delete t.blob,t.chunks=[],delete t.mediaRecorder,t.state=r.LocalRecorderState.READY};this.state===r.LocalRecorderState.RECORDING||this.state===r.LocalRecorderState.PAUSED?this.stop().then((function(){return e()})).catch((function(){return e()})):e()},t.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 t=document.createElement("a");t.style.display="none",document.body.appendChild(t);var e=window.URL.createObjectURL(this.blob);t.href=e,t.download=this.id+".webm",t.click(),window.URL.revokeObjectURL(e),document.body.removeChild(t)},t.prototype.getBlob=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},t.prototype.uploadAsBinary=function(t,e){var n=this;return new Promise((function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",t,!0),"object"==typeof e)for(var s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];a.setRequestHeader(u,e[u])}a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status))},a.send(n.blob)}}))},t.prototype.uploadAsMultipartfile=function(t,e){var n=this;return new Promise((function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",t,!0),"object"==typeof e)for(var s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];a.setRequestHeader(u,e[u])}var l=new FormData;l.append("file",n.blob,n.id+".webm"),a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status))},a.send(l)}}))},t.prototype.onStopDefault=function(){o.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},t}();e.LocalRecorder=a},tMSY:function(t,e){function n(){}t.exports=n,n.mixin=function(t){var e=t.prototype||t;e.isWildEmitter=!0,e.on=function(t,e,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[1]:void 0,o=r?arguments[2]:arguments[1];return o._groupName=i,(this.callbacks[t]=this.callbacks[t]||[]).push(o),this},e.once=function(t,e,n){var r=this,i=3===arguments.length,o=i?arguments[1]:void 0,a=i?arguments[2]:arguments[1];function s(){r.off(t,s),a.apply(this,arguments)}return this.on(t,o,s),this},e.releaseGroup=function(t){var e,n,r,i;for(e in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[e]).length;n<r;n++)i[n]._groupName===t&&(i.splice(n,1),n--,r--);return this},e.off=function(t,e){this.callbacks=this.callbacks||{};var n,r=this.callbacks[t];return r?1===arguments.length?(delete this.callbacks[t],this):(-1!==(n=r.indexOf(e))&&(r.splice(n,1),0===r.length&&delete this.callbacks[t]),this):this},e.emit=function(t){this.callbacks=this.callbacks||{};var e,n,r,i=[].slice.call(arguments,1),o=this.callbacks[t],a=this.getWildcardCallbacks(t);if(o)for(e=0,n=(r=o.slice()).length;e<n&&r[e];++e)r[e].apply(this,i);if(a)for(n=a.length,e=0,n=(r=a.slice()).length;e<n&&r[e];++e)r[e].apply(this,[t].concat(i));return this},e.getWildcardCallbacks=function(t){this.callbacks=this.callbacks||{};var e,n,r=[];for(e in this.callbacks)n=e.split("*"),("*"===e||2===n.length&&t.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[e]));return r}},n.mixin(n)},ttXH:function(t,e,n){var r,i=n("tMSY");"undefined"!=typeof window&&(r=window.AudioContext||window.webkitAudioContext);var o=null;t.exports=function(t,e){var n=new i;if(!r)return n;var a,s,c,u=(e=e||{}).smoothing||.1,l=e.interval||50,d=e.threshold,p=e.play,h=e.history||10,f=!0;o=e.audioContext||o||new r,(c=o.createAnalyser()).fftSize=512,c.smoothingTimeConstant=u,s=new Float32Array(c.frequencyBinCount),t.jquery&&(t=t[0]),t instanceof HTMLAudioElement||t instanceof HTMLVideoElement?(a=o.createMediaElementSource(t),void 0===p&&(p=!0),d=d||-50):(a=o.createMediaStreamSource(t),d=d||-50),a.connect(c),p&&c.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(t){d=t},n.setInterval=function(t){l=t},n.stop=function(){f=!1,n.emit("volume_change",-100,d),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),c.disconnect(),a.disconnect()},n.speakingHistory=[];for(var m=0;m<h;m++)n.speakingHistory.push(0);var g=function(){setTimeout((function(){if(f){var t=function(t,e){var n=-1/0;t.getFloatFrequencyData(e);for(var r=4,i=e.length;r<i;r++)e[r]>n&&e[r]<0&&(n=e[r]);return n}(c,s);n.emit("volume_change",t,d);var e=0;if(t>d&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)e+=n.speakingHistory[r];e>=2&&(n.speaking=!0,n.emit("speaking"))}else if(t<d&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)e+=n.speakingHistory[r];0==e&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(t>d)),g()}}),l)};return g(),n}},"txJ/":function(t,e){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},r=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return n},i=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var a,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),a=0===c.x}catch(w){a=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,n){if(e)t.call(n);else for(var r=t.length,i=_(t,r),o=0;o<r;++o)i[o].call(n)}function d(t,e,n,r){if(e)t.call(n,r);else for(var i=t.length,o=_(t,i),a=0;a<i;++a)o[a].call(n,r)}function p(t,e,n,r,i){if(e)t.call(n,r,i);else for(var o=t.length,a=_(t,o),s=0;s<o;++s)a[s].call(n,r,i)}function h(t,e,n,r,i,o){if(e)t.call(n,r,i,o);else for(var a=t.length,s=_(t,a),c=0;c<a;++c)s[c].call(n,r,i,o)}function f(t,e,n,r){if(e)t.apply(n,r);else for(var i=t.length,o=_(t,i),a=0;a<i;++a)o[a].apply(n,r)}function m(t,e,r,i){var o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),s=a[e]):(a=t._events=n(null),t._eventsCount=0),s){if("function"==typeof s?s=a[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(o=u(t))&&o>0&&s.length>o){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else s=a[e]=r,++t._eventsCount;return t}function g(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function v(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=i.call(g,r);return o.listener=n,r.wrapFn=o,o}function y(t,e,n){var r=t._events;if(!r)return[];var i=r[e];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):_(i,i.length):[]}function b(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function _(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}a?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):o.defaultMaxListeners=s,o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){var e,n,r,i,o,a,s="error"===t;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var c=new Error('Unhandled "error" event. ('+e+")");throw c.context=e,c}if(!(n=a[t]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:l(n,u,this);break;case 2:d(n,u,this,arguments[1]);break;case 3:p(n,u,this,arguments[1],arguments[2]);break;case 4:h(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];f(n,u,this,i)}return!0},o.prototype.on=o.prototype.addListener=function(t,e){return m(this,t,e,!1)},o.prototype.prependListener=function(t,e){return m(this,t,e,!0)},o.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,v(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,v(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,i,o,a,s;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=n(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===e||r[a].listener===e){s=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}(r,o),1===r.length&&(i[t]=r[0]),i.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.removeAllListeners=function(t){var e,i,o;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):i[t]&&(0==--this._eventsCount?this._events=n(null):delete i[t]),this;if(0===arguments.length){var a,s=r(i);for(o=0;o<s.length;++o)"removeListener"!==(a=s[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(e)for(o=e.length-1;o>=0;o--)this.removeListener(t,e[o]);return this},o.prototype.listeners=function(t){return y(this,t,!0)},o.prototype.rawListeners=function(t){return y(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},vqFl:function(t){t.exports=JSON.parse('{"_args":[["openvidu-browser@2.15.0","/home/carlos/CODEURJC/openvidu-call/openvidu-call-front"]],"_from":"openvidu-browser@2.15.0","_id":"openvidu-browser@2.15.0","_inBundle":false,"_integrity":"sha512-agnyeYIf1ze5ynGqNw32zFedlov9JZzjoFQHNMwuAoFYc2/24Aajs9cyw3j0m7v8xmMkqWSOYvsu7kGc8z1mZg==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.15.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.15.0","saveSpec":null,"fetchSpec":"2.15.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.15.0.tgz","_spec":"2.15.0","_where":"/home/carlos/CODEURJC/openvidu-call/openvidu-call-front","author":{"name":"OpenVidu"},"bugs":{"url":"https://github.com/OpenVidu/openvidu/issues"},"dependencies":{"@types/node":"13.13.2","@types/platform":"1.3.2","freeice":"2.2.2","hark":"1.2.3","platform":"1.3.5","uuid":"7.0.3","wolfy87-eventemitter":"5.2.9"},"description":"OpenVidu Browser","devDependencies":{"browserify":"16.5.1","grunt":"1.1.0","grunt-cli":"1.3.2","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"1.0.0","grunt-contrib-uglify":"4.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":"4.6.11","tsify":"4.0.1","tslint":"6.1.1","typedoc":"0.17.4","typescript":"3.8.3"},"homepage":"https://github.com/OpenVidu/openvidu#readme","license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu.git"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --lib dom,es5,es2015.promise,scripthost","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","version":"2.15.0"}')},vqGb:function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n("RvMX"),i=n("JUw6"),o=n("dlaP");function a(t){return t instanceof o.DOMAIN||t instanceof o.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var c=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),d=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,i=[],s=0;r[s]instanceof o.PROTOCOL;)e=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),e||n||(i=t+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});e.Base=s,e.MAILTOEMAIL=c,e.EMAIL=u,e.NL=d,e.TEXT=l,e.URL=p},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}function u(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var l=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function d(t){return null!==t&&"object"==typeof t}function p(t){return"function"==typeof t}var h=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),f=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(p(r))try{r.call(this)}catch(c){e=c instanceof h?m(c.errors):[c]}if(l(i)){o=-1;for(var a=i.length;++o<a;){var s=i[o];if(d(s))try{s.unsubscribe()}catch(c){e=e||[],c instanceof h?e=e.concat(m(c.errors)):e.push(c)}}}if(e)throw new h(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function m(t){return t.reduce((function(t,e){return t.concat(e instanceof h?e.errors:e)}),[])}var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function v(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=!1,b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){y=t},get useDeprecatedSynchronousErrorHandling(){return y}};function _(t){setTimeout((function(){throw t}),0)}var w={closed:!0,next:function(t){},error:function(t){if(b.useDeprecatedSynchronousErrorHandling)throw t;_(t)},complete:function(){}},S=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),C=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=w;break;case 1:if(!n){o.destination=w;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new O(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new O(o,n,r,i)}return o}return v(e,t),e.prototype[S]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(f),O=function(t){function e(e,n,r,i){var o,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return p(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==w&&(p((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return v(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;b.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=b.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):_(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;_(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};b.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),b.useDeprecatedSynchronousErrorHandling)throw n;_(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!b.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return b.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(_(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(C),x=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function E(t){return t}function k(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return P(t)}function P(t){return 0===t.length?E:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var T=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof C)return t;if(t[S])return t[S]()}return t||e||n?new C(t,e,n):new C(w)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||b.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),b.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){b.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof C?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=M(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[x]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:P(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=M(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function M(t){if(t||(t=b.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var A=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),I=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return v(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(f),R=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return v(e,t),e}(C),D=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return v(e,t),e.prototype[S]=function(){return new R(this)},e.prototype.lift=function(t){var e=new N(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new A;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new A;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new A;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new A;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new A;return this.hasError?(t.error(this.thrownError),f.EMPTY):this.isStopped?(t.complete(),f.EMPTY):(this.observers.push(t),new I(this,t))},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,e){return new N(t,e)},e}(T),N=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return v(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):f.EMPTY},e}(D);function L(t){return t&&"function"==typeof t.schedule}var V=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return v(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(C),j=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function F(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var B=F(),U=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var H=function(t){if(t&&"function"==typeof t[x])return r=t,function(t){var e=r[x]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(U(t))return j(t);if(z(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,_),t};if(t&&"function"==typeof t[B])return e=t,function(t){for(var n=e[B]();;){var r=n.next();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};var e,n,r,i=d(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function W(t,e,n,r,i){if(void 0===i&&(i=new V(t,n,r)),!i.closed)return e instanceof T?e.subscribe(i):H(e)(i)}var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(C);function q(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Z(t,e))}}var Z=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Q(t,this.project,this.thisArg))},t}(),Q=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return v(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(C);function Y(t,e){return new T((function(n){var r=new f,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function K(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[x]}(t))return function(t,e){return new T((function(n){var r=new f;return r.add(e.schedule((function(){var i=t[x]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(z(t))return function(t,e){return new T((function(n){var r=new f;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(U(t))return Y(t,e);if(function(t){return t&&"function"==typeof t[B]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new T((function(n){var r,i=new f;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[B](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof T?t:new T(H(t))}function J(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(J((function(n,r){return K(t(n,r)).pipe(q((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new X(t,n))})}var X=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.project,this.concurrent))},t}(),tt=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return v(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new V(this,e,n),i=this.destination;i.add(r);var o=W(this,t,void 0,void 0,r);o!==r&&i.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(G);function et(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),J(E,t)}function nt(t,e){return e?Y(t,e):new T(j(t))}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return L(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof T?t[0]:et(n)(nt(t,r))}function it(){return function(t){return t.lift(new ot(t))}}var ot=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new at(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),at=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return v(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(C),st=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return v(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new f).add(this.source.subscribe(new ut(this.getSubject(),this))),t.closed&&(this._connection=null,t=f.EMPTY)),t},e.prototype.refCount=function(){return it()(this)},e}(T),ct=function(){var t=st.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),ut=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return v(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(R);function lt(){return new D}function dt(){return function(t){return it()((e=lt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ct);return r.source=t,r.subjectFactory=n,r})(t));var e}}function pt(t){return{toString:t}.toString()}var ht="__parameters__";function ft(t,e,n){return pt((function(){var r=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,c(e));for(var i in r)this[i]=r[i]}}}(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,c([void 0],e)));return a.annotation=o,a;function a(t,e,n){for(var r=t.hasOwnProperty(ht)?t[ht]:Object.defineProperty(t,ht,{value:[]})[ht];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}))}var mt=ft("Inject",(function(t){return{token:t}})),gt=ft("Optional"),vt=ft("Self"),yt=ft("SkipSelf"),bt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function _t(t){for(var e in t)if(t[e]===_t)return e;throw Error("Could not find renamed property on target object.")}function wt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function St(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ct(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function Ot(t){return xt(t,t[kt])||xt(t,t[Mt])}function xt(t,e){return e&&e.token===t?e:null}function Et(t){return t&&(t.hasOwnProperty(Pt)||t.hasOwnProperty(At))?t[Pt]:null}var kt=_t({"\u0275prov":_t}),Pt=_t({"\u0275inj":_t}),Tt=_t({"\u0275provFallback":_t}),Mt=_t({ngInjectableDef:_t}),At=_t({ngInjectorDef:_t});function It(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(It).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Rt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Dt=_t({__forward_ref__:_t});function Nt(t){return t.__forward_ref__=Nt,t.toString=function(){return It(this())},t}function Lt(t){return Vt(t)?t():t}function Vt(t){return"function"==typeof t&&t.hasOwnProperty(Dt)&&t.__forward_ref__===Nt}var jt,Ft="undefined"!=typeof globalThis&&globalThis,Bt="undefined"!=typeof window&&window,Ut="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,zt="undefined"!=typeof global&&global,Ht=Ft||zt||Bt||Ut,Wt=_t({"\u0275cmp":_t}),Gt=_t({"\u0275dir":_t}),qt=_t({"\u0275pipe":_t}),Zt=_t({"\u0275mod":_t}),Qt=_t({"\u0275loc":_t}),Yt=_t({"\u0275fac":_t}),Kt=_t({__NG_ELEMENT_ID__:_t}),Jt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=St({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Xt=new Jt("INJECTOR",-1),$t={},te=/\n/gm,ee=_t({provide:String,useValue:_t}),ne=void 0;function re(t){var e=ne;return ne=t,e}function ie(t){var e=jt;return jt=t,e}function oe(t,e){if(void 0===e&&(e=bt.Default),void 0===ne)throw new Error("inject() must be called from an injection context");return null===ne?ce(t,void 0,e):ne.get(t,e&bt.Optional?null:void 0,e)}function ae(t,e){return void 0===e&&(e=bt.Default),(jt||oe)(Lt(t),e)}var se=ae;function ce(t,e,n){var r=Ot(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&bt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+It(t)+"]")}function ue(t){for(var e=[],n=0;n<t.length;n++){var r=Lt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=bt.Default,a=0;a<r.length;a++){var s=r[a];s instanceof gt||"Optional"===s.ngMetadataName||s===gt?o|=bt.Optional:s instanceof yt||"SkipSelf"===s.ngMetadataName||s===yt?o|=bt.SkipSelf:s instanceof vt||"Self"===s.ngMetadataName||s===vt?o|=bt.Self:i=s instanceof mt||s===mt?s.token:s}e.push(ae(i,o))}else e.push(ae(r))}return e}var le=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=$t),e===$t){var n=new Error("NullInjectorError: No provider for "+It(t)+"!");throw n.name="NullInjectorError",n}return e},t}();var de=function(){return function(){}}(),pe=function(){return function(){}}();function he(t,e){t.forEach((function(t){return Array.isArray(t)?he(t,e):e(t)}))}function fe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function me(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ge(t,e){for(var n=[],r=0;r<t;r++)n.push(e);return n}function ve(t,e,n){var r=be(t,e);return r>=0?t[1|r]=n:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r=~r,e,n),r}function ye(t,e){var n=be(t,e);if(n>=0)return t[1|n]}function be(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var _e=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),we=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Se={},Ce=[],Oe=0;function xe(t){return pt((function(){var e=t.type,n=e.prototype,r={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===_e.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||we.Emulated,id:"c",styles:t.styles||Ce,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return i.id+=Oe++,i.inputs=Me(t.inputs,r),i.outputs=Me(t.outputs),a&&a.forEach((function(t){return t(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(Ee)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(ke)}:null,i}))}function Ee(t){return Re(t)||function(t){return t[Gt]||null}(t)}function ke(t){return function(t){return t[qt]||null}(t)}var Pe={};function Te(t){var e={type:t.type,bootstrap:t.bootstrap||Ce,declarations:t.declarations||Ce,imports:t.imports||Ce,exports:t.exports||Ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&pt((function(){Pe[t.id]=t.type})),e}function Me(t,e){if(null==t)return Se;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var Ae=xe;function Ie(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Re(t){return t[Wt]||null}function De(t,e){return t.hasOwnProperty(Yt)?t[Yt]:null}function Ne(t,e){var n=t[Zt]||null;if(!n&&!0===e)throw new Error("Type "+It(t)+" does not have '\u0275mod' property.");return n}function Le(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ve(t){return Array.isArray(t)&&!0===t[1]}function je(t){return 0!=(8&t.flags)}function Fe(t){return 2==(2&t.flags)}function Be(t){return 1==(1&t.flags)}function Ue(t){return null!==t.template}function ze(t){return 0!=(512&t[2])}var He=void 0;function We(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function Ge(t){return!!t.listen}var qe={createRenderer:function(t,e){return We()}};function Ze(t){for(;Array.isArray(t);)t=t[0];return t}function Qe(t,e){return Ze(e[t+20])}function Ye(t,e){return Ze(e[t.index])}function Ke(t,e){return t.data[e+20]}function Je(t,e){return t[e+20]}function Xe(t,e){var n=e[t];return Le(n)?n:n[0]}function $e(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function tn(t){return 4==(4&t[2])}function en(t){return 128==(128&t[2])}function nn(t,e){return null===t||null==e?null:t[e]}function rn(t){t[18]=0}function on(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var an={lFrame:Pn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function sn(){return an.bindingsEnabled}function cn(){return an.lFrame.lView}function un(){return an.lFrame.tView}function ln(t){an.lFrame.contextLView=t}function dn(){return an.lFrame.previousOrParentTNode}function pn(t,e){an.lFrame.previousOrParentTNode=t,an.lFrame.isParent=e}function hn(){return an.lFrame.isParent}function fn(){an.lFrame.isParent=!1}function mn(){return an.checkNoChangesMode}function gn(t){an.checkNoChangesMode=t}function vn(){var t=an.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function yn(){return an.lFrame.bindingIndex++}function bn(t){var e=an.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function _n(t,e){var n=an.lFrame;n.bindingIndex=n.bindingRootIndex=t,wn(e)}function wn(t){an.lFrame.currentDirectiveIndex=t}function Sn(t){var e=an.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Cn(){return an.lFrame.currentQueryIndex}function On(t){an.lFrame.currentQueryIndex=t}function xn(t,e){var n=kn();an.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function En(t,e){var n=kn(),r=t[1];an.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function kn(){var t=an.lFrame,e=null===t?null:t.child;return null===e?Pn(t):e}function Pn(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Tn(){var t=an.lFrame;return an.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var Mn=Tn;function An(){var t=Tn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function In(){return an.lFrame.selectedIndex}function Rn(t){an.lFrame.selectedIndex=t}function Dn(){var t=an.lFrame;return Ke(t.tView,t.selectedIndex)}function Nn(){an.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ln(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n<r;n++){var i=t.data[n];i.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,i.afterContentInit),i.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,i.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i.afterContentChecked)),i.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,i.afterViewInit),i.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,i.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,i.afterViewChecked)),null!=i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i.onDestroy)}}function Vn(t,e,n){Bn(t,e,3,n)}function jn(t,e,n,r){(3&t[2])===n&&Bn(t,e,n,r)}function Fn(t,e){var n=t[2];(3&n)===e&&(n&=2047,t[2]=n+=1)}function Bn(t,e,n,r){for(var i=null!=r?r:-1,o=0,a=void 0!==r?65535&t[18]:0;a<e.length;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=r&&o>=r)break}else e[a]<0&&(t[18]+=65536),(o<i||-1==i)&&(Un(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Un(t,e,n,r){var i=n[r]<0,o=n[r+1],a=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var zn=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}();function Hn(t,e,n){for(var r=Ge(t),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],s=n[i++],c=n[i++];r?t.setAttribute(e,s,c,a):e.setAttributeNS(a,s,c)}else c=n[++i],Gn(s=o)?r&&t.setProperty(e,s,c):r?t.setAttribute(e,s,c):e.setAttribute(s,c),i++}return i}function Wn(t){return 3===t||4===t||6===t}function Gn(t){return 64===t.charCodeAt(0)}function qn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var n=-1,r=0;r<e.length;r++){var i=e[r];"number"==typeof i?n=i:0===n||Zn(t,n,i,null,-1===n||2===n?e[++r]:null)}return t}function Zn(t,e,n,r,i){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var s=t[o++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=o-1;break}}}for(;o<t.length;){var c=t[o];if("number"==typeof c)break;if(c===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function Qn(t){return-1!==t}function Yn(t){return 32767&t}function Kn(t){return t>>16}function Jn(t,e){for(var n=Kn(t),r=e;n>0;)r=r[15],n--;return r}function Xn(t){return"string"==typeof t?t:null==t?"":""+t}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Xn(t)}var tr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ht)}();function er(t){return{name:"window",target:t.ownerDocument.defaultView}}function nr(t){return{name:"document",target:t.ownerDocument}}function rr(t){return{name:"body",target:t.ownerDocument.body}}function ir(t){return t instanceof Function?t():t}var or=!0;function ar(t){var e=or;return or=t,e}var sr=0;function cr(t,e){var n=lr(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,ur(r.data,t),ur(e,null),ur(r.blueprint,null));var i=dr(t,e),o=t.injectorIndex;if(Qn(i))for(var a=Yn(i),s=Jn(i,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=i,o}function ur(t,e){t.push(0,0,0,0,0,0,0,0,e)}function lr(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function dr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],r=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function pr(t,e,n){!function(t,e,n){var r="string"!=typeof n?n[Kt]:n.charCodeAt(0)||0;null==r&&(r=n[Kt]=sr++);var i=255&r,o=1<<i,a=64&i,s=32&i,c=e.data;128&i?a?s?c[t+7]|=o:c[t+6]|=o:s?c[t+5]|=o:c[t+4]|=o:a?s?c[t+3]|=o:c[t+2]|=o:s?c[t+1]|=o:c[t]|=o}(t,e,n)}function hr(t,e,n,r,i){if(void 0===r&&(r=bt.Default),null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Kt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){xn(e,t);try{var a=o();if(null!=a||r&bt.Optional)return a;throw new Error("No provider for "+$n(n)+"!")}finally{Mn()}}else if("number"==typeof o){if(-1===o)return new _r(t,e);var s=null,c=lr(t,e),u=-1,l=r&bt.Host?e[16][6]:null;for((-1===c||r&bt.SkipSelf)&&(u=-1===c?dr(t,e):e[c+8],br(r,!1)?(s=e[1],c=Yn(u),e=Jn(u,e)):c=-1);-1!==c;){u=e[c+8];var d=e[1];if(yr(o,c,d.data)){var p=mr(c,e,n,s,r,l);if(p!==fr)return p}br(r,e[1].data[c+8]===l)&&yr(o,c,e)?(s=d,c=Yn(u),e=Jn(u,e)):c=-1}}}if(r&bt.Optional&&void 0===i&&(i=null),0==(r&(bt.Self|bt.Host))){var h=e[9],f=ie(void 0);try{return h?h.get(n,i,r&bt.Optional):ce(n,i,r&bt.Optional)}finally{ie(f)}}if(r&bt.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+$n(n)+"]")}var fr={};function mr(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],c=gr(s,a,n,null==r?Fe(s)&&or:r!=a&&3===s.type,i&bt.Host&&o===s);return null!==c?vr(e,a,c,s):fr}function gr(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=65535&o,c=t.directiveStart,u=o>>16,l=i?s+u:t.directiveEnd,d=r?s:s+u;d<l;d++){var p=a[d];if(d<c&&n===p||d>=c&&p.type===n)return d}if(i){var h=a[c];if(h&&Ue(h)&&h.type===n)return c}return null}function vr(t,e,n,r){var i=t[n],o=e.data;if(i instanceof zn){var a=i;if(a.resolving)throw new Error("Circular dep for "+$n(o[n]));var s=ar(a.canSeeViewProviders);a.resolving=!0;var c=void 0;a.injectImpl&&(c=ie(a.injectImpl)),xn(t,r);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.onChanges,i=e.onInit,o=e.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&ie(c),ar(s),a.resolving=!1,Mn()}}return i}function yr(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<<t)}function br(t,e){return!(t&bt.Self||t&bt.Host&&e)}var _r=function(){function t(t,e){this._tNode=t,this._lView=e}return t.prototype.get=function(t,e){return hr(this._tNode,this._lView,t,void 0,e)},t}();function wr(t){return pt((function(){var e=Object.getPrototypeOf(t.prototype).constructor,n=e[Yt]||function t(e){var n=e;if(Vt(e))return function(){var e=t(Lt(n));return e?e():null};var r=De(n);if(null===r){var i=Et(n);r=i&&i.factory}return r||null}(e);return null!==n?n:function(t){return new t}}))}function Sr(t){return t.ngDebugContext}function Cr(t){return t.ngOriginalError}function Or(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,c(e))}var xr=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Or}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Sr(t)?Sr(t):this._findContext(Cr(t)):null},t.prototype._findOriginalError=function(t){for(var e=Cr(t);e&&Cr(e);)e=Cr(e);return e},t}(),Er=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),kr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Er),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Er),Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Er),Mr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Er),Ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Er);function Ir(t){return t instanceof Er?t.changingThisBreaksApplicationSecurity:t}function Rr(t,e){var n=Dr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe "+e+", got a "+n+" (see http://g.co/ng/security#xss)")}return n===e}function Dr(t){return t instanceof Er&&t.getTypeName()||null}var Nr=!0,Lr=!1;function Vr(){return Lr=!0,Nr}var jr=function(){function t(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var e=this.inertDocument.body;if(null==e){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n),e=this.inertDocument.createElement("body"),n.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},t}(),Fr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Br=/^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 Ur(t){return(t=String(t)).match(Fr)||t.match(Br)?t:(Vr()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function zr(t){var e,n,r={};try{for(var i=a(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Hr(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=a(n),s=o.next();!s.done;s=o.next()){var c=s.value;for(var u in c)c.hasOwnProperty(u)&&(i[u]=!0)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}var Wr,Gr=zr("area,br,col,hr,img,wbr"),qr=zr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Zr=zr("rp,rt"),Qr=Hr(Zr,qr),Yr=Hr(Gr,Hr(qr,zr("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(Zr,zr("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")),Qr),Kr=zr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jr=zr("srcset"),Xr=Hr(Kr,Jr,zr("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"),zr("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")),$r=zr("script,style,template"),ti=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e,n=t.nodeName.toLowerCase();if(!Yr.hasOwnProperty(n))return this.sanitizedSomething=!0,!$r.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(Xr.hasOwnProperty(s)){var c=o.value;Kr[s]&&(c=Ur(c)),Jr[s]&&(e=c,c=(e=String(e)).split(",").map((function(t){return Ur(t.trim())})).join(", ")),this.buf.push(" ",a,'="',ri(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Yr.hasOwnProperty(e)&&!Gr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(ri(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ri(t){return t.replace(/&/g,"&").replace(ei,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ni,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function ii(t,e){var n=null;try{Wr=Wr||new jr(t);var r=e?String(e):"";n=Wr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Wr.getInertBodyElement(r)}while(r!==o);var a=new ti,s=a.sanitizeChildren(oi(n)||n);return Vr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=oi(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function oi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ai=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),si=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ci=/^url\(([^)]+)\)$/;function ui(t){if(!(t=String(t).trim()))return"";var e=t.match(ci);return e&&Ur(e[1])===e[1]||t.match(si)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(Vr()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function li(t){var e=fi();return e?e.sanitize(ai.HTML,t)||"":Rr(t,"HTML")?Ir(t):ii(We(),Xn(t))}function di(t){var e=fi();return e?e.sanitize(ai.STYLE,t)||"":Rr(t,"Style")?Ir(t):ui(Xn(t))}function pi(t){var e=fi();return e?e.sanitize(ai.URL,t)||"":Rr(t,"URL")?Ir(t):Ur(Xn(t))}var hi=function(t,e,n){if(void 0===e&&void 0===n)return di(t);var r=!0;return 1&(n=n||3)&&(r=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?r?di(e):Ir(e):r};function fi(){var t=cn();return t&&t[12]}function mi(t,e){t.__ngContext__=e}function gi(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function vi(){throw new Error("Cannot mix multi providers and regular providers")}function yi(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function bi(t,e,n){for(var r=0;r<t.length;){var i=t[r++];if(n&&"class"===i){if(-1!==yi((i=t[r]).toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function _i(t){return 0===t.type&&"ng-template"!==t.tagName}function wi(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Si(t,e,n){for(var r=4,i=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(Wn(t[e]))return e;return t.length}(i),a=!1,s=0;s<e.length;s++){var c=e[s];if("number"!=typeof c){if(!a)if(4&r){if(r=2|1&r,""!==c&&!wi(t,c,n)||""===c&&1===e.length){if(Ci(r))return!1;a=!0}}else{var u=8&r?c:e[++s];if(8&r&&null!==t.attrs){if(!bi(t.attrs,u,n)){if(Ci(r))return!1;a=!0}continue}var l=Oi(8&r?"class":c,i,_i(t),n);if(-1===l){if(Ci(r))return!1;a=!0;continue}if(""!==u){var d;d=l>o?"":i[l+1].toLowerCase();var p=8&r?d:null;if(p&&-1!==yi(p,u,0)||2&r&&u!==d){if(Ci(r))return!1;a=!0}}}}else{if(!a&&!Ci(r)&&!Ci(c))return!1;if(a&&Ci(c))continue;a=!1,r=c|1&r}}return Ci(r)||a}function Ci(t){return 0==(1&t)}function Oi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i<e.length;){var a=e[i];if(a===t)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=e[++i];"string"==typeof s;)s=e[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function xi(t,e,n){void 0===n&&(n=!1);for(var r=0;r<e.length;r++)if(Si(t,e[r],n))return!0;return!1}function Ei(t,e){t:for(var n=0;n<e.length;n++){var r=e[n];if(t.length===r.length){for(var i=0;i<t.length;i++)if(t[i]!==r[i])continue t;return!0}}return!1}function ki(t,e){return t?":not("+e.trim()+")":e}function Pi(t){for(var e=t[0],n=1,r=2,i="",o=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&r){var s=t[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Ci(a)||(e+=ki(o,i),i=""),r=a,o=o||!Ci(r);n++}return""!==i&&(e+=ki(o,i)),e}var Ti={};function Mi(t){var e=t[3];return Ve(e)?e[3]:e}function Ai(t){return Ri(t[13])}function Ii(t){return Ri(t[4])}function Ri(t){for(;null!==t&&!Ve(t);)t=t[4];return t}function Di(t){Ni(un(),cn(),In()+t,mn())}function Ni(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Vn(e,i,n)}else{var o=t.preOrderHooks;null!==o&&jn(e,o,0,n)}Rn(n)}function Li(t,e){return t<<17|e<<2}function Vi(t){return t>>17&32767}function ji(t){return 2|t}function Fi(t){return(131068&t)>>2}function Bi(t,e){return-131069&t|e<<2}function Ui(t){return 1|t}function zi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r+1];if(-1!==i){var o=t.data[i];On(n[r]),o.contentQueries(2,e[i],i)}}}function Hi(t,e,n){return Ge(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Wi(t,e,n,r,i,o,a,s,c,u){var l=e.blueprint.slice();return l[0]=i,l[2]=140|r,rn(l),l[3]=l[15]=t,l[8]=n,l[10]=a||t&&t[10],l[11]=s||t&&t[11],l[12]=c||t&&t[12]||null,l[9]=u||t&&t[9]||null,l[6]=o,l[16]=2==e.type?t[16]:l,l}function Gi(t,e,n,r,i,o){var a=n+20,s=t.data[a]||function(t,e,n,r,i,o){var a=dn(),s=hn(),c=s?a:a&&a.parent,u=t.data[n]=eo(0,c&&c!==e?c:null,r,n,i,o);return null===t.firstChild&&(t.firstChild=u),a&&(!s||null!=a.child||null===u.parent&&2!==a.type?s||(a.next=u):a.child=u),u}(t,e,a,r,i,o);return pn(s,!0),s}function qi(t,e,n){En(e,e[6]);try{var r=t.viewQuery;null!==r&&Oo(1,r,n);var i=t.template;null!==i&&Yi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&zi(t,e),t.staticViewQueries&&Oo(2,t.viewQuery,n);var o=t.components;null!==o&&function(t,e){for(var n=0;n<e.length;n++)bo(t,e[n])}(e,o)}catch(a){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),a}finally{e[2]&=-5,An()}}function Zi(t,e,n,r){var i=e[2];if(256!=(256&i)){En(e,e[6]);var o=mn();try{rn(e),an.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Yi(t,e,n,2,r);var a=3==(3&i);if(!o)if(a){var s=t.preOrderCheckHooks;null!==s&&Vn(e,s,null)}else{var c=t.preOrderHooks;null!==c&&jn(e,c,0,null),Fn(e,0)}if(function(t){for(var e=Ai(t);null!==e;e=Ii(e))if(e[2])for(var n=e[9],r=0;r<n.length;r++){var i=n[r];0==(1024&i[2])&&on(i[3],1),i[2]|=1024}}(e),function(t){for(var e=Ai(t);null!==e;e=Ii(e))for(var n=10;n<e.length;n++){var r=e[n],i=r[1];en(r)&&Zi(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&zi(t,e),!o)if(a){var u=t.contentCheckHooks;null!==u&&Vn(e,u)}else{var l=t.contentHooks;null!==l&&jn(e,l,1),Fn(e,1)}!function(t,e){try{var n=t.expandoInstructions;if(null!==n)for(var r=t.expandoStartIndex,i=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(Rn(0-a),i=r+=9+n[++o]):r+=a:(null!==a&&(_n(r,i),a(2,e[i])),i++)}}finally{Rn(-1)}}(t,e);var d=t.components;null!==d&&function(t,e){for(var n=0;n<e.length;n++)yo(t,e[n])}(e,d);var p=t.viewQuery;if(null!==p&&Oo(2,p,r),!o)if(a){var h=t.viewCheckHooks;null!==h&&Vn(e,h)}else{var f=t.viewHooks;null!==f&&jn(e,f,2),Fn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,on(e[3],-1))}finally{An()}}}function Qi(t,e,n,r){var i=e[10],o=!mn(),a=tn(e);try{o&&!a&&i.begin&&i.begin(),a&&qi(t,e,r),Zi(t,e,n,r)}finally{o&&!a&&i.end&&i.end()}}function Yi(t,e,n,r,i){var o=In();try{Rn(-1),2&r&&e.length>20&&Ni(t,e,0,mn()),n(r,i)}finally{Rn(o)}}function Ki(t,e,n){if(je(e))for(var r=e.directiveEnd,i=e.directiveStart;i<r;i++){var o=t.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function Ji(t,e,n){sn()&&(function(t,e,n,r){var i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||cr(n,e),mi(r,e);for(var a=n.initialInputs,s=i;s<o;s++){var c=t.data[s],u=Ue(c);u&&fo(e,n,c);var l=vr(e,t,s,n);mi(l,e),null!==a&&mo(0,s-i,l,c,0,a),u&&(Xe(n.index,e)[8]=l)}}(t,e,n,Ye(n,e)),128==(128&n.flags)&&function(t,e,n){var r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,a=t.firstCreatePass,s=n.index-20,c=an.lFrame.currentDirectiveIndex;try{Rn(s);for(var u=r;u<i;u++){var l=t.data[u],d=e[u];wn(u),null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs?so(l,d):a&&o.push(null)}}finally{Rn(-1),wn(c)}}(t,e,n))}function Xi(t,e,n){void 0===n&&(n=Ye);var r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o<r.length;o+=2){var a=r[o+1],s=-1===a?n(e,t):t[a];t[i++]=s}}function $i(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=to(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function to(t,e,n,r,i,o,a,s,c,u){var l=20+r,d=l+i,p=function(t,e){for(var n=[],r=0;r<e;r++)n.push(r<t?null:Ti);return n}(l,d);return p[1]={type:t,id:e,blueprint:p,template:n,queries:null,viewQuery:s,node:null,data:p.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:u,incompleteFirstPass:!1}}function eo(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function no(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function ro(t,e,n,r,i,o,a,s){var c,u,l=Ye(e,n),d=e.inputs;!s&&null!=d&&(c=d[r])?(Mo(t,n,c,r,i),Fe(e)&&function(t,e){var n=Xe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(u=r)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=a?a(i,e.tagName||"",r):i,Ge(o)?o.setProperty(l,r,i):Gn(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function io(t,e,n,r){var i=!1;if(sn()){var o=function(t,e,n){var r=t.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];xi(n,a.selectors,!1)&&(i||(i=[]),pr(cr(n,e),t,a.type),Ue(a)?(2&n.flags&&gi(n),uo(t,n),i.unshift(a)):i.push(a))}return i}(t,e,n),a=null===r?null:{"":-1};if(null!==o){var s=0;i=!0,po(n,t.data.length,o.length);for(var c=0;c<o.length;c++)(d=o[c]).providersResolver&&d.providersResolver(d);co(t,n,o.length);var u=!1,l=!1;for(c=0;c<o.length;c++){var d;n.mergedAttrs=qn(n.mergedAttrs,(d=o[c]).hostAttrs),ho(t,e,d),lo(t.data.length-1,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!u&&(d.onChanges||d.onInit||d.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),u=!0),l||!d.onChanges&&!d.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),oo(t,d),s+=d.hostVars}!function(t,e){for(var n=e.directiveEnd,r=t.data,i=e.attrs,o=[],a=null,s=null,c=e.directiveStart;c<n;c++){var u=r[c],l=u.inputs,d=null===i||_i(e)?null:go(l,i);o.push(d),a=no(l,c,a),s=no(u.outputs,c,s)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=s}(t,n),ao(t,e,s)}a&&function(t,e,n){if(e)for(var r=t.localNames=[],i=0;i<e.length;i+=2){var o=n[e[i+1]];if(null==o)throw new Error("Export of name '"+e[i+1]+"' not found!");r.push(e[i],o)}}(n,r,a)}return n.mergedAttrs=qn(n.mergedAttrs,n.attrs),i}function oo(t,e){var n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function ao(t,e,n){for(var r=0;r<n;r++)e.push(Ti),t.blueprint.push(Ti),t.data.push(null)}function so(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function co(t,e,n){var r=20-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function uo(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function lo(t,e,n){if(n){if(e.exportAs)for(var r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ue(e)&&(n[""]=t)}}function po(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function ho(t,e,n){t.data.push(n);var r=n.factory||(n.factory=De(n.type)),i=new zn(r,Ue(n),null);t.blueprint.push(i),e.push(i)}function fo(t,e,n){var r=Ye(e,t),i=$i(n),o=t[10],a=_o(t,Wi(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n)));t[e.index]=a}function mo(t,e,n,r,i,o){var a=o[e];if(null!==a)for(var s=r.setInput,c=0;c<a.length;){var u=a[c++],l=a[c++],d=a[c++];null!==s?r.setInput(n,d,u,l):n[l]=d}}function go(t,e){for(var n=null,r=0;r<e.length;){var i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function vo(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function yo(t,e){var n=Xe(e,t);if(en(n)){var r=n[1];80&n[2]?Zi(r,n,r.template,n[8]):n[5]>0&&function t(e){for(var n=Ai(e);null!==n;n=Ii(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var o=i[1];Zi(o,i,o.template,i[8])}else i[5]>0&&t(i)}var a=e[1].components;if(null!==a)for(r=0;r<a.length;r++){var s=Xe(a[r],e);en(s)&&s[5]>0&&t(s)}}(n)}}function bo(t,e){var n=Xe(e,t),r=n[1];!function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),qi(r,n,n[8])}function _o(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function wo(t){for(;t;){t[2]|=64;var e=Mi(t);if(ze(t)&&!e)return t;t=e}return null}function So(t,e,n){var r=e[10];r.begin&&r.begin();try{Zi(t,e,t.template,n)}catch(i){throw To(e,i),i}finally{r.end&&r.end()}}function Co(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],r=$e(n),i=r[1];Qi(i,r,i.template,n)}}(t[8])}function Oo(t,e,n){On(0),e(t,n)}var xo=function(){return Promise.resolve(null)}();function Eo(t){return t[7]||(t[7]=[])}function ko(t){return t.cleanup||(t.cleanup=[])}function Po(t,e,n){return(null===t||Ue(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function To(t,e){var n=t[9],r=n?n.get(xr,null):null;r&&r.handleError(e)}function Mo(t,e,n,r,i){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],c=e[a],u=t.data[a];null!==u.setInput?u.setInput(c,i,r,s):c[s]=i}}function Ao(t,e){var n=e[3];return-1===t.index?Ve(n)?n:null:n}function Io(t,e){var n=Ao(t,e);return n?Wo(e[11],n[7]):null}function Ro(t,e,n,r,i){if(null!=r){var o=void 0,a=!1;Ve(r)?o=r:Le(r)&&(a=!0,r=r[0]);var s=Ze(r);0===t&&null!==n?null==i?zo(e,n,s):Uo(e,n,s,i||null):1===t&&null!==n?Uo(e,n,s,i||null):2===t?function(t,e,n){var r=Wo(t,e);r&&function(t,e,n,r){Ge(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,s,a):3===t&&e.destroyNode(s),null!=o&&function(t,e,n,r,i){var o=n[7];o!==Ze(n)&&Ro(e,t,r,o,i);for(var a=10;a<n.length;a++){var s=n[a];Yo(s[1],s,t,e,r,o)}}(e,t,o,n,i)}}function Do(t,e,n,r){var i=Io(t.node,e);i&&Yo(t,e,e[11],n?1:2,i,r)}function No(t,e){var n=t[9],r=n.indexOf(e);1024&e[2]&&on(e[3],-1),n.splice(r,1)}function Lo(t,e){if(!(t.length<=10)){var n=10+e,r=t[n];if(r){var i=r[17];null!==i&&i!==t&&No(i,r),e>0&&(t[n-1][4]=r[4]);var o=me(t,10+e);Do(r[1],r,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Vo(t,e){if(!(256&e[2])){var n=e[11];Ge(n)&&n.destroyNode&&Yo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Fo(t[1],t);for(;e;){var n=null;if(Le(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Le(e)&&Fo(e[1],e),e=jo(e,t);null===e&&(e=t),Le(e)&&Fo(e[1],e),n=e&&e[4]}e=n}}(e)}}function jo(t,e){var n;return Le(t)&&(n=t[6])&&2===n.type?Ao(n,t):t[3]===e?null:t[3]}function Fo(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r<n.length;r+=2){var i=e[n[r]];if(!(i instanceof zn)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(i[o[a]]);else o.call(i)}}}(t,e),function(t,e){var n=t.cleanup;if(null!==n){for(var r=e[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var o=n[i+1],a="function"==typeof o?o(e):Ze(e[o]),s=n[i+3];"boolean"==typeof s?a.removeEventListener(n[i],r[n[i+2]],s):s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&Ge(e[11])&&e[11].destroy();var r=e[17];if(null!==r&&Ve(e[3])){r!==e[3]&&No(r,e);var i=e[19];null!==i&&i.detachView(t)}}}function Bo(t,e,n){for(var r=e.parent;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){var i=n[6];return 2===i.type?Io(i,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ye(e,n).parentNode;if(2&r.flags){var o=t.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==we.ShadowDom&&a!==we.Native)return null}return Ye(r,n)}function Uo(t,e,n,r){Ge(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function zo(t,e,n){Ge(t)?t.appendChild(e,n):e.appendChild(n)}function Ho(t,e,n,r){null!==r?Uo(t,e,n,r):zo(t,e,n)}function Wo(t,e){return Ge(t)?t.parentNode(e):e.parentNode}function Go(t,e){if(2===t.type){var n=Ao(t,e);return null===n?null:Zo(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Ye(t,e):null}function qo(t,e,n,r){var i=Bo(t,r,e);if(null!=i){var o=e[11],a=Go(r.parent||e[6],e);if(Array.isArray(n))for(var s=0;s<n.length;s++)Ho(o,i,n[s],a);else Ho(o,i,n,a)}}function Zo(t,e){var n=10+t+1;if(n<e.length){var r=e[n],i=r[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){var r=n.type;if(3===r)return Ye(n,e);if(0===r)return Zo(-1,e[n.index]);if(4===r||5===r){var i=n.child;if(null!==i)return t(e,i);var o=e[n.index];return Ve(o)?Zo(-1,o):Ze(o)}var a=e[16],s=a[6],c=Mi(a),u=s.projection[n.projection];return null!=u?t(c,u):t(e,n.next)}return null}(r,i)}return e[7]}function Qo(t,e,n,r,i,o,a){for(;null!=n;){var s=r[n.index],c=n.type;a&&0===e&&(s&&mi(Ze(s),r),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(Qo(t,e,n.child,r,i,o,!1),Ro(e,t,i,s,o)):1===c?Ko(t,e,r,n,i,o):Ro(e,t,i,s,o)),n=a?n.projectionNext:n.next}}function Yo(t,e,n,r,i,o){Qo(n,r,t.node.child,e,i,o,!1)}function Ko(t,e,n,r,i,o){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)Ro(e,t,i,s[c],o);else Qo(t,e,s,a[3],i,o,!0)}function Jo(t,e,n){Ge(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Xo(t,e,n){Ge(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}var $o,ta,ea,na=function(){function t(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){var t=this._lView;return null==t[0]?function t(e,n,r,i,o){for(void 0===o&&(o=!1);null!==r;){var a=n[r.index];if(null!==a&&i.push(Ze(a)),Ve(a))for(var s=10;s<a.length;s++){var u=a[s],l=u[1].firstChild;null!==l&&t(u[1],u,l,i)}var d=r.type;if(4===d||5===d)t(e,n,r.child,i);else if(1===d){var p=n[16],h=p[6].projection[r.projection];if(Array.isArray(h))i.push.apply(i,c(h));else{var f=Mi(p);t(f[1],f,h,i,!0)}}r=o?r.projectionNext:r.next}return i}(t[1],t,t[6].child,[]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._lView[8]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 256==(256&this._lView[2])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Vo(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,r;e=this._lView[1],r=t,Eo(n=this._lView).push(r),e.firstCreatePass&&ko(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){wo(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){So(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){gn(!0);try{So(t,e,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,Yo(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),ra=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return i(e,t),e.prototype.detectChanges=function(){Co(this._view)},e.prototype.checkNoChanges=function(){!function(t){gn(!0);try{Co(t)}finally{gn(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(na);function ia(t,e,n){return $o||($o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t)),new $o(Ye(e,n))}function oa(t,e,n,r){return ta||(ta=function(t){function e(e,n,r){var i=t.call(this)||this;return i._declarationView=e,i._declarationTContainer=n,i.elementRef=r,i}return i(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Wi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),qi(e,n,t),new na(n)},e}(t)),0===n.type?new ta(r,n,ia(e,n,r)):null}function aa(t,e,n,r){var o;ea||(ea=function(t){function n(e,n,r){var i=t.call(this)||this;return i._lContainer=e,i._hostTNode=n,i._hostView=r,i}return i(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return ia(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new _r(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=dr(this._hostTNode,this._hostView),e=Jn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Kn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return Qn(t)&&null!=n?new _r(n,e):new _r(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-10},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},n.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(de,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},n.prototype.insert=function(t,e){var n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ve(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],a=new ea(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],fe(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(a,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(r,n,this._lContainer,s),Do(r,n,!0,Zo(s,this._lContainer)),t.attachToViewContainerRef(this),fe(this._lContainer[8],s,t),t},n.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)},n.prototype.indexOf=function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1},n.prototype.remove=function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1);!function(t,e){var n=Lo(t,e);n&&Vo(n[1],n)}(this._lContainer,e),me(this._lContainer[8],e)},n.prototype.detach=function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=Lo(this._lContainer,e);return n&&null!=me(this._lContainer[8],e)?new na(n):null},n.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this.length+e:t},n.prototype.allocateContainerIfNeeded=function(){null===this._lContainer[8]&&(this._lContainer[8]=[])},n}(t));var a=r[n.index];if(Ve(a))o=a;else{var s=void 0;if(4===n.type)s=Ze(a);else if(s=r[11].createComment(""),ze(r)){var c=r[11],u=Ye(n,r);Uo(c,Wo(c,u),s,function(t,e){return Ge(t)?t.nextSibling(e):e.nextSibling}(c,u))}else qo(r[1],r,s,n);r[n.index]=o=vo(a,r,s,n),_o(r,o)}return new ea(o,n,r)}function sa(t){return void 0===t&&(t=!1),function(t,e,n){if(!n&&Fe(t)){var r=Xe(t.index,e);return new na(r,r)}return 3===t.type||0===t.type||4===t.type||5===t.type?new na(e[16],e):null}(dn(),cn(),t)}var ca=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ua()},t}(),ua=sa,la=new Jt("Set Injector scope."),da={},pa={},ha=[],fa=void 0;function ma(){return void 0===fa&&(fa=new le),fa}function ga(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),new va(t,n,e||ma(),r)}var va=function(){function t(t,e,n,r){var i=this;void 0===r&&(r=null),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];e&&he(e,(function(n){return i.processProvider(n,t,e)})),he([t],(function(t){return i.processInjectorType(t,[],o)})),this.records.set(Xt,_a(void 0,this));var a=this.records.get(la);this.scope=null!=a?a.value:null,this.source=r||("object"==typeof t?null:It(t))}return Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=$t),void 0===n&&(n=bt.Default),this.assertNotDestroyed();var r,i=re(this);try{if(!(n&bt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Jt)&&Ot(t);o=a&&this.injectableDefInScope(a)?_a(ya(t),da):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&bt.Self?ma():this.parent).get(t,e=n&bt.Optional&&e===$t?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(It(t)),i)throw s;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r){void 0===r&&(r=null),t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=It(e);if(Array.isArray(e))i=e.map(It).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):It(s)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+t.replace(te,"\n ")}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{re(i)}},t.prototype._resolveInjectorDefTypes=function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(It(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(!(t=Lt(t)))return!1;var i=Et(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Et(o)),null==i)return!1;if(null!=i.imports&&!s){var c;n.push(a);try{he(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))}))}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],n=e.ngModule,i=e.providers;he(i,(function(t){return r.processProvider(t,n,i||ha)}))},l=0;l<c.length;l++)u(l)}this.injectorDefTypes.add(a),this.records.set(a,_a(i.factory,da));var d=i.providers;if(null!=d&&!s){var p=t;he(d,(function(t){return r.processProvider(t,p,d)}))}return void 0!==o&&void 0!==t.providers},t.prototype.processProvider=function(t,e,n){var r=Sa(t=Lt(t))?t:Lt(t&&t.provide),i=function(t,e,n){return wa(t)?_a(void 0,t.useValue):_a(ba(t,e,n),da)}(t,e,n);if(Sa(t)||!0!==t.multi){var o=this.records.get(r);o&&void 0!==o.multi&&vi()}else{var a=this.records.get(r);a?void 0===a.multi&&vi():((a=_a(void 0,da,!0)).factory=function(){return ue(a.multi)},this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,i)},t.prototype.hydrate=function(t,e){var n;return e.value===pa?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(It(t)):e.value===da&&(e.value=pa,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))},t}();function ya(t){var e=Ot(t),n=null!==e?e.factory:De(t);if(null!==n)return n;var r=Et(t);if(null!==r)return r.factory;if(t instanceof Jt)throw new Error("Token "+It(t)+" is missing a \u0275prov definition.");if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=ge(e,"?");throw new Error("Can't resolve all parameters for "+It(t)+": ("+n.join(", ")+").")}var r=function(t){var e=t&&(t[kt]||t[Mt]||t[Tt]&&t[Tt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ba(t,e,n){var r,i=void 0;if(Sa(t)){var o=Lt(t);return De(o)||ya(o)}if(wa(t))i=function(){return Lt(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,c(ue(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return ae(Lt(t.useExisting))};else{var a=Lt(t&&(t.useClass||t.provide));if(a||function(t,e,n){var r="";throw t&&e&&(r=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+It(t)+"'"+r)}(e,n,t),!function(t){return!!t.deps}(t))return De(a)||ya(a);i=function(){return new(a.bind.apply(a,c([void 0],ue(t.deps))))}}return i}function _a(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function wa(t){return null!==t&&"object"==typeof t&&ee in t}function Sa(t){return"function"==typeof t}var Ca=function(t,e,n){return function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null);var i=ga(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Oa=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?Ca(t,e,""):Ca(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=$t,t.NULL=new le,t.\u0275prov=St({token:t,providedIn:"any",factory:function(){return ae(Xt)}}),t.__NG_ELEMENT_ID__=-1,t}(),xa=new Jt("AnalyzeForEntryComponents"),Ea=new Map,ka=new Set;function Pa(t){return"string"==typeof t?t:t.text()}function Ta(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var a=0;a<e.length;a++){var s=e[a];"number"==typeof s?o=s:1==o?i=Rt(i,s):2==o&&(r=Rt(r,s+": "+e[++a]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}var Ma=null;function Aa(){if(!Ma){var t=Ht.Symbol;if(t&&t.iterator)Ma=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ma=r)}}return Ma}function Ia(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var Ra=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}();function Da(t){return!!Na(t)&&(Array.isArray(t)||!(t instanceof Map)&&Aa()in t)}function Na(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function La(t,e,n){return t[e]=n}function Va(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ja(t,e,n,r){var i=cn();return Va(i,yn(),e)&&(un(),function(t,e,n,r,i,o){var a=Ye(t,e),s=e[11];if(null==r)Ge(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var c=null==i?Xn(r):i(r,t.tagName||"",n);Ge(s)?s.setAttribute(a,n,c,o):o?a.setAttributeNS(o,n,c):a.setAttribute(n,c)}}(Dn(),i,t,e,n,r)),ja}function Fa(t,e,n,r){return Va(t,yn(),n)?e+Xn(n)+r:Ti}function Ba(t,e,n,r,i,o,a,s){var c=cn(),u=un(),l=t+20,d=u.firstCreatePass?function(t,e,n,r,i,o,a,s,c){var u=e.consts,l=Gi(e,n[6],t,0,a||null,nn(u,s));io(e,n,l,nn(u,c)),Ln(e,l);var d=l.tViews=to(2,-1,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u),p=eo(0,null,2,-1,null,null);return p.injectorIndex=l.injectorIndex,d.node=p,null!==e.queries&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}(t,u,c,e,n,r,i,o,a):u.data[l];pn(d,!1);var p=c[11].createComment("");qo(u,c,p,d),mi(p,c),_o(c,c[l]=vo(p,c,p,d)),Be(d)&&Ji(u,c,d),null!=a&&Xi(c,d,s)}function Ua(t,e){void 0===e&&(e=bt.Default);var n=cn();return null==n?ae(t,e):hr(dn(),n,Lt(t),e)}function za(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(Wn(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===e)return n[i+1];i+=2}}return null}(dn(),t)}function Ha(){throw new Error("invalid")}function Wa(t,e,n){var r=cn();return Va(r,yn(),e)&&ro(un(),Dn(),r,t,e,r[11],n,!1),Wa}function Ga(t,e,n,r,i){var o=i?"class":"style";Mo(t,n,e.inputs[o],o,r)}function qa(t,e,n,r){var i=cn(),o=un(),a=20+t,s=i[11],c=i[a]=Hi(e,s,an.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,c=nn(s,o),u=Gi(e,n[6],t,3,i,c);return io(e,n,u,nn(s,a)),null!==u.attrs&&Ta(u,u.attrs,!1),null!==u.mergedAttrs&&Ta(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,i,0,e,n,r):o.data[a];pn(u,!0);var l=u.mergedAttrs;null!==l&&Hn(s,c,l);var d=u.classes;null!==d&&Xo(s,c,d);var p=u.styles;null!==p&&Jo(s,c,p),qo(o,i,c,u),0===an.lFrame.elementDepthCount&&mi(c,i),an.lFrame.elementDepthCount++,Be(u)&&(Ji(o,i,u),Ki(o,u,i)),null!==r&&Xi(i,u)}function Za(){var t=dn();hn()?fn():pn(t=t.parent,!1);var e=t;an.lFrame.elementDepthCount--;var n=un();n.firstCreatePass&&(Ln(n,t),je(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ga(n,e,cn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ga(n,e,cn(),e.stylesWithoutHost,!1)}function Qa(t,e,n,r){qa(t,e,n,r),Za()}function Ya(t,e,n){var r=cn(),i=un(),o=t+20,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=nn(o,r),s=Gi(e,n[6],t,4,"ng-container",a);return null!==a&&Ta(s,a,!0),io(e,n,s,nn(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,i,r,e,n):i.data[o];pn(a,!0);var s=r[o]=r[11].createComment("");qo(i,r,s,a),mi(s,r),Be(a)&&(Ji(i,r,a),Ki(i,a,r)),null!=n&&Xi(r,a)}function Ka(){var t=dn(),e=un();hn()?fn():pn(t=t.parent,!1),e.firstCreatePass&&(Ln(e,t),je(t)&&e.queries.elementEnd(t))}function Ja(){return cn()}function Xa(t){return!!t&&"function"==typeof t.then}function $a(t){return!!t&&"function"==typeof t.subscribe}function ts(t,e,n,r){void 0===n&&(n=!1);var i=cn(),o=un(),a=dn();return ns(o,i,i[11],a,t,e,n,r),ts}function es(t,e,n,r){void 0===n&&(n=!1);var i=dn(),o=cn(),a=un();return ns(a,o,Po(Sn(a.data),i,o),i,t,e,n,r),es}function ns(t,e,n,r,i,o,a,s){void 0===a&&(a=!1);var c=Be(r),u=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=Eo(e),d=!0;if(3===r.type){var p=Ye(r,e),h=s?s(p):Se,f=h.target||p,m=l.length,g=s?function(t){return s(Ze(t[r.index])).target}:r.index;if(Ge(n)){var v=null;if(!s&&c&&(v=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var s=e[7],c=i[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,d=!1;else{o=is(r,e,o,!1);var y=n.listen(h.name||f,i,o);l.push(o,y),u&&u.push(i,g,m,m+1)}}else o=is(r,e,o,!0),f.addEventListener(i,o,a),l.push(o),u&&u.push(i,g,m,a)}var b,_=r.outputs;if(d&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var S=0;S<w;S+=2){var C=e[b[S]][b[S+1]].subscribe(o),O=l.length;l.push(o,C),u&&u.push(i,r.index,O,-(O+1))}}}function rs(t,e,n){try{return!1!==e(n)}catch(r){return To(t,r),!1}}function is(t,e,n,r){return function i(o){if(o===Function)return n;var a=2&t.flags?Xe(t.index,e):e;0==(32&e[2])&&wo(a);for(var s=rs(e,n,o),c=i.__ngNextListenerFn__;c;)s=rs(e,c,o)&&s,c=c.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function os(t){return void 0===t&&(t=1),function(t){return(an.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,an.lFrame.contextLView))[8]}(t)}function as(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i<e.length;i++){var o=e[i];if("*"!==o){if(null===r?xi(t,o,!0):Ei(r,o))return i}else n=i}return n}function ss(t){var e=cn()[16][6];if(!e.projection)for(var n=e.projection=ge(t?t.length:1,null),r=n.slice(),i=e.child;null!==i;){var o=t?as(i,t):0;null!==o&&(r[o]?r[o].projectionNext=i:n[o]=i,r[o]=i),i=i.next}}function cs(t,e,n){void 0===e&&(e=0);var r=cn(),i=un(),o=Gi(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),fn(),function(t,e,n){Ko(e[11],0,e,n,Bo(t,n,e),Go(n.parent||e[6],e))}(i,r,o)}function us(t,e,n){return ls(t,"",e,"",n),us}function ls(t,e,n,r,i){var o=cn(),a=Fa(o,e,n,r);return a!==Ti&&ro(un(),Dn(),o,t,a,o[11],i,!1),ls}var ds=[];function ps(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?Vi(o):Fi(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];hs(t[s],e)&&(c=!0,t[s+1]=r?Ui(u):ji(u)),s=r?Vi(u):Fi(u)}c&&(t[n+1]=r?ji(o):Ui(o))}function hs(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&be(t,e)>=0}var fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ms(t){return t.substring(fs.key,fs.keyEnd)}function gs(t,e){var n=fs.textEnd;return n===e?-1:(e=fs.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,fs.key=e,n),vs(t,e,n))}function vs(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ys(t,e,n){return ws(t,e,n,!1),ys}function bs(t,e){return ws(t,e,null,!0),bs}function _s(t,e){for(var n=function(t){return function(t){fs.key=0,fs.keyEnd=0,fs.value=0,fs.valueEnd=0,fs.textEnd=t.length}(t),gs(t,vs(t,0,fs.textEnd))}(e);n>=0;n=gs(e,n))ve(t,ms(e),!0)}function ws(t,e,n,r){var i,o=cn(),a=un(),s=bn(2);if(a.firstUpdatePass&&Cs(a,t,s,r),e!==Ti&&Va(o,s,e)){var c=void 0;null==n&&(c=null===(i=an.lFrame)?null:i.currentSanitizer)&&(n=c),Es(a,a.data[In()+20],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=It(Ir(t)))),t}(e,n),r,s)}}function Ss(t,e){return e>=t.expandoStartIndex}function Cs(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[In()+20],a=Ss(t,n);Ts(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=Sn(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=xs(n=Os(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=Os(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Fi(r))return t[Vi(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[Vi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=xs(s=Os(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o<i;o++)r=xs(r,t[o].hostAttrs,n);return xs(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){var a=o?e.classBindings:e.styleBindings,s=Vi(a),c=Fi(a);t[r]=n;var u,l=!1;if(Array.isArray(n)?(null===(u=n[1])||be(n,u)>0)&&(l=!0):u=n,i)if(0!==c){var d=Vi(t[s+1]);t[r+1]=Li(d,s),0!==d&&(t[d+1]=Bi(t[d+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=Li(s,0),0!==s&&(t[s+1]=Bi(t[s+1],r)),s=r;else t[r+1]=Li(c,0),0===s?s=r:t[c+1]=Bi(t[c+1],r),c=r;l&&(t[r+1]=ji(t[r+1])),ps(t,u,r,!0),ps(t,u,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&be(o,e)>=0&&(n[r+1]=Ui(n[r+1]))}(e,u,t,r,o),a=Li(s,c),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}function Os(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(r=xs(r,(o=e[s]).hostAttrs,i),o!==t);)s++;return null!==t&&(n.directiveStylingLast=s),r}function xs(t,e,n){var r=n?1:2,i=-1;if(null!==e)for(var o=0;o<e.length;o++){var a=e[o];"number"==typeof a?i=a:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ve(t,a,!!n||e[++o]))}return void 0===t?null:t}function Es(t,e,n,r,i,o,a,s){if(3===e.type){var c=t.data,u=c[s+1];Ps(1==(1&u)?ks(c,e,n,i,Fi(u),a):void 0)||(Ps(o)||function(t){return 2==(2&t)}(u)&&(o=ks(c,null,n,i,s,a)),function(t,e,n,r,i){var o=Ge(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var a=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,a):n.style.removeProperty(r):o?t.setStyle(n,r,i,a):n.style.setProperty(r,i)}}(r,a,Qe(In(),n),i,o))}}function ks(t,e,n,r,i,o){for(var a=null===e,s=void 0;i>0;){var c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=null===l,p=n[i+1];p===Ti&&(p=d?ds:void 0);var h=d?ye(p,r):l===r?p:void 0;if(u&&!Ps(h)&&(h=ye(c,r)),Ps(h)&&(s=h,a))return s;var f=t[i+1];i=a?Vi(f):Fi(f)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=ye(m,r))}return s}function Ps(t){return void 0!==t}function Ts(t,e){return 0!=(t.flags&(e?16:32))}function Ms(t,e){void 0===e&&(e="");var n=cn(),r=un(),i=t+20,o=r.firstCreatePass?Gi(r,n[6],t,3,null,null):r.data[i],a=n[i]=function(t,e){return Ge(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);qo(r,n,a,o),pn(o,!1)}function As(t){return Is("",t,""),As}function Is(t,e,n){var r=cn(),i=Fa(r,t,e,n);return i!==Ti&&function(t,e,n){var r=Qe(e,t),i=t[11];Ge(i)?i.setValue(r,n):r.textContent=n}(r,In(),i),Is}function Rs(t,e,n){var r=cn();return Va(r,yn(),e)&&ro(un(),Dn(),r,t,e,r[11],n,!0),Rs}function Ds(t,e,n){var r=cn();if(Va(r,yn(),e)){var i=un(),o=Dn();ro(i,o,r,t,e,Po(Sn(i.data),o,r),n,!0)}return Ds}function Ns(t,e){var n=$e(t)[1],r=n.data.length-1;Ln(n,{directiveStart:r,directiveEnd:r+1})}function Ls(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(Ue(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=Vs(t.inputs),o.declaredInputs=Vs(t.declaredInputs),o.outputs=Vs(t.outputs);var a=i.hostBindings;a&&Bs(t,a);var s=i.viewQuery,c=i.contentQueries;if(s&&js(t,s),c&&Fs(t,c),wt(t.inputs,i.inputs),wt(t.declaredInputs,i.declaredInputs),wt(t.outputs,i.outputs),Ue(i)&&i.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=t.afterContentInit||i.afterContentInit,o.afterViewChecked=t.afterViewChecked||i.afterViewChecked,o.afterViewInit=t.afterViewInit||i.afterViewInit,o.doCheck=t.doCheck||i.doCheck,o.onDestroy=t.onDestroy||i.onDestroy,o.onInit=t.onInit||i.onInit}var l=i.features;if(l)for(var d=0;d<l.length;d++){var p=l[d];p&&p.ngInherit&&p(t),p===Ls&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,r=t.length-1;r>=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=qn(i.hostAttrs,n=qn(n,i.hostAttrs))}}(r)}function Vs(t){return t===Se?{}:t===Ce?[]:t}function js(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Fs(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function Bs(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Us=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function zs(t){t.type.prototype.ngOnChanges&&(t.setInput=Hs,t.onChanges=function(){var t=Ws(this),e=t&&t.current;if(e){var n=t.previous;if(n===Se)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}})}function Hs(t,e,n,r){var i=Ws(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Se,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],c=a[s];o[s]=new Us(c&&c.currentValue,e,a===Se),t[r]=e}function Ws(t){return t.__ngSimpleChanges__||null}function Gs(t,e,n,r,i){if(t=Lt(t),Array.isArray(t))for(var o=0;o<t.length;o++)Gs(t[o],e,n,r,i);else{var a=un(),s=cn(),c=Sa(t)?t:Lt(t.provide),u=ba(t),l=dn(),d=65535&l.providerIndexes,p=l.directiveStart,h=l.providerIndexes>>16;if(Sa(t)||!t.multi){var f=new zn(u,i,Ua),m=Qs(c,e,i?d:d+h,p);-1===m?(pr(cr(l,s),a,c),qs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{var g=Qs(c,e,d+h,p),v=Qs(c,e,d,d+h),y=v>=0&&n[v];i&&!y||!i&&!(g>=0&&n[g])?(pr(cr(l,s),a,c),f=function(t,e,n,r,i){var o=new zn(t,n,Ua);return o.multi=[],o.index=e,o.componentProviders=0,Zs(o,i,r&&!n),o}(i?Ks:Ys,n.length,i,r,u),!i&&y&&(n[v].providerFactory=f),qs(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(f),s.push(f)):qs(a,t,g>-1?g:v,Zs(n[i?v:g],u,!i&&r)),!i&&r&&y&&n[v].componentProviders++}}}function qs(t,e,n,r){var i=Sa(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Zs(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Qs(t,e,n,r){for(var i=n;i<r;i++)if(e[i]===t)return i;return-1}function Ys(t,e,n,r){return Js(this.multi,[])}function Ks(t,e,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=vr(n,n[1],this.providerFactory.index,r);Js(o,i=s.slice(0,a));for(var c=a;c<s.length;c++)i.push(s[c])}else Js(o,i=[]);return i}function Js(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function Xs(t,e){return void 0===e&&(e=[]),function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=un();if(r.firstCreatePass){var i=Ue(t);Gs(n,r.data,r.blueprint,i,!0),Gs(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}zs.ngInherit=!0;var $s=function(){return function(){}}(),tc=function(){return function(){}}(),ec=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw function(t){var e=Error("No component factory found for "+It(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),nc=function(){function t(){}return t.NULL=new ec,t}(),rc=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return ic(t)},t}(),ic=function(t){return ia(t,dn(),cn())},oc=function(){return function(){}}(),ac=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),sc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return cc()},t}(),cc=function(){var t=cn(),e=Xe(dn().index,t);return function(t){var e=t[11];if(Ge(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Le(e)?e:t)},uc=function(){function t(){}return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return null}}),t}(),lc=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),dc=new lc("9.1.11"),pc=function(){function t(){}return t.prototype.supports=function(t){return Da(t)},t.prototype.create=function(t){return new fc(t)},t}(),hc=function(t,e){return e},fc=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hc}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<yc(n,r,i)?e:n,a=yc(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var c=a-r,u=s-r;if(c!=u){for(var l=0;l<c;l++){var d=l<i.length?i[l]:i[l]=0,p=d+l;u<=p&&p<c&&(i[l]=d+1)}i[o.previousIndex]=u-c}}a!==s&&t(o,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Da(t))throw new Error("Error trying to diff '"+It(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,r=t[s]),null!==o&&Ia(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Ia(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[Aa()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,(function(t){i=e._trackByFn(n,t),null!==o&&Ia(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),Ia(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ia(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ia(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new mc(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new vc),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),mc=function(){return function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),gc=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ia(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),vc=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new gc,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function yc(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var bc=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Na(t)},t.prototype.create=function(){return new _c},t}(),_c=function(){function t(){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 Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Na(t)))throw new Error("Error trying to diff '"+It(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new wc(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Ia(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(n){return e(t[n],n)}))},t}(),wc=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),Sc=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new yt,new gt]]}},t.prototype.find=function(t){var e,n=this.factories.find((function(e){return e.supports(t)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new t([new pc])}}),t}(),Cc=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new yt,new gt]]}},t.prototype.find=function(t){var e=this.factories.find((function(e){return e.supports(t)}));if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new t([new bc])}}),t}(),Oc=[new bc],xc=new Sc([new pc]),Ec=new Cc(Oc),kc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Pc(t,rc)},t}(),Pc=function(t,e){return oa(t,e,dn(),cn())},Tc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Mc(t,rc)},t}(),Mc=function(t,e){return aa(t,e,dn(),cn())},Ac={},Ic=function(t){function e(e){var n=t.call(this)||this;return n.ngModule=e,n}return i(e,t),e.prototype.resolveComponentFactory=function(t){var e=Re(t);return new Nc(e,this.ngModule)},e}(nc);function Rc(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Dc=new Jt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return tr}}),Nc=function(t){function e(e,n){var r=t.call(this)||this;return r.componentDef=e,r.ngModule=n,r.componentType=e.type,r.selector=e.selectors.map(Pi).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!n,r}return i(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return Rc(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return Rc(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,Ac,i);return o!==Ac||r===Ac?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(oc,qe),c=a.get(uc,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",d=n?function(t,e,n){if(Ge(t))return t.selectRootElement(e,n===we.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,n,this.componentDef.encapsulation):Hi(l,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),p=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),f={components:[],scheduler:tr,clean:xo,playerHandler:null,flags:0},m=to(0,-1,null,1,0,null,null,null,null,null),g=Wi(null,m,f,p,null,null,s,u,c,a);En(g,null);try{var v=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=Gi(a,null,0,3,null,null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(Ta(s,c,!0),null!==t&&(Hn(i,t,c),null!==s.classes&&Xo(i,t,s.classes),null!==s.styles&&Jo(i,t,s.styles)));var u=r.createRenderer(t,e),l=Wi(n,$i(e),null,e.onPush?64:16,n[20],s,r,u,void 0);return a.firstCreatePass&&(pr(cr(s,n),a,e.type),uo(a,s),po(s,n.length,1)),_o(n,l),n[20]=l}(d,this.componentDef,g,s,u);if(d)if(n)Hn(u,d,["ng-version",dc.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r<t.length;){var o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Ci(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),b=y.attrs,_=y.classes;b&&Hn(u,d,b),_&&_.length>0&&Xo(u,d,_.join(" "))}if(o=Ke(m,0),void 0!==e)for(var w=o.projection=[],S=0;S<this.ngContentSelectors.length;S++){var C=e[S];w.push(null!=C?Array.from(C):null)}i=function(t,e,n,r,i){var o=n[1],a=function(t,e,n){var r=dn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),co(t,r,1),ho(t,e,n));var i=vr(e,t,e.length-1,r);mi(i,e);var o=Ye(r,e);return o&&mi(o,e),i}(o,n,e);r.components.push(a),t[8]=a,i&&i.forEach((function(t){return t(a,e)})),e.contentQueries&&e.contentQueries(1,a,n.length-1);var s=dn();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Rn(s.index-20);var c=n[1];oo(c,e),ao(c,n,e.hostVars),so(e,a)}return a}(v,this.componentDef,g,f,[Ns]),qi(m,g,null)}finally{An()}var O=new Lc(this.componentType,i,ia(rc,o,g),g,o);return n&&!h||(m.node.child=o),O},e}(tc),Lc=function(t){function e(e,n,r,i,o){var a,s,c,u=t.call(this)||this;return u.location=r,u._rootLView=i,u._tNode=o,u.destroyCbs=[],u.instance=n,u.hostView=u.changeDetectorRef=new ra(i),s=i,null==(c=(a=i[1]).node)&&(a.node=c=eo(0,null,2,-1,null,null)),s[6]=c,u.componentType=e,u}return i(e,t),Object.defineProperty(e.prototype,"injector",{get:function(){return new _r(this._tNode,this._rootLView)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())},e.prototype.onDestroy=function(t){this.destroyCbs&&this.destroyCbs.push(t)},e}($s),Vc=void 0,jc=["en",[["a","p"],["AM","PM"],Vc],[["AM","PM"],Vc,Vc],[["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"]],Vc,[["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"]],Vc,[["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}",Vc,"{1} 'at' {0}",Vc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Fc={};function Bc(t){return t in Fc||(Fc[t]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[t]),Fc[t]}var Uc=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function zc(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+" [Expected=> null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Hc=new Map,Wc=function(t){function e(e,n){var r=t.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[],r.componentFactoryResolver=new Ic(r);var i=Ne(e),o=e[Qt]||null;return o&&zc(o),r._bootstrapComponents=ir(i.bootstrap),r._r3Injector=ga(e,n,[{provide:de,useValue:r},{provide:nc,useValue:r.componentFactoryResolver}],It(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return i(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=Oa.THROW_IF_NOT_FOUND),void 0===n&&(n=bt.Default),t===Oa||t===de||t===Xt?this:this._r3Injector.get(t,e,n)},e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(de),Gc=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Ne(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+It(e)+" vs "+It(e.name))})(n,Hc.get(n),e),Hc.set(n,e)}var r=e.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(e){return t(e)}))}(e),n}return i(e,t),e.prototype.create=function(t){return new Wc(this.moduleType,t)},e}(pe);function qc(t,e){var n=t[e];return n===Ti?void 0:n}function Zc(t,e,n,r,i,o){var a=e+n;return Va(t,a,i)?La(t,a+1,o?r.call(o,i):r(i)):qc(t,a+1)}function Qc(t,e){var n,r=un(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '"+t+"' could not be found!")}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=De(n.type)),a=ie(Ua),s=ar(!1),c=o();return ar(s),ie(a),function(t,e,n,r){var i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(r,cn(),t,c),c}function Yc(t,e,n){var r=cn(),i=Je(r,t);return function(t,e){return Ra.isWrapped(e)&&(e=Ra.unwrap(e),t[an.lFrame.bindingIndex]=Ti),e}(r,function(t,e){return t[1].data[e+20].pure}(r,t)?Zc(r,vn(),e,i.transform,n,i):i.transform(n))}var Kc=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return i(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=t.prototype.subscribe.call(this,i,o,a);return e instanceof f&&e.add(s),s},e}(D);function Jc(){return this._results[Aa()]()}var Xc=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Kc,this.length=0;var e=Aa(),n=t.prototype;n[e]||(n[e]=Jc)}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),$c=function(){function t(t){this.queryList=t,this.matches=null}return t.prototype.clone=function(){return new t(this.queryList)},t.prototype.setDirty=function(){this.queryList.setDirty()},t}(),tu=function(){function t(t){void 0===t&&(t=[]),this.queries=t}return t.prototype.createEmbeddedView=function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new t(i)}return null},t.prototype.insertView=function(t){this.dirtyQueriesWithMatches(t)},t.prototype.detachView=function(t){this.dirtyQueriesWithMatches(t)},t.prototype.dirtyQueriesWithMatches=function(t){for(var e=0;e<this.queries.length;e++)null!==vu(t,e).matches&&this.queries[e].setDirty()},t}(),eu=function(){return function(t,e,n,r){void 0===r&&(r=null),this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}(),nu=function(){function t(t){void 0===t&&(t=[]),this.queries=t}return t.prototype.elementStart=function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)},t.prototype.elementEnd=function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)},t.prototype.embeddedTView=function(e){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new t(n):null},t.prototype.template=function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)},t.prototype.getByIndex=function(t){return this.queries[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.queries.length},enumerable:!0,configurable:!0}),t.prototype.track=function(t){this.queries.push(t)},t}(),ru=function(){function t(t,e){void 0===e&&(e=-1),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}return t.prototype.elementStart=function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)},t.prototype.elementEnd=function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)},t.prototype.template=function(t,e){this.elementStart(t,e)},t.prototype.embeddedTView=function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null},t.prototype.isApplyingToNode=function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode},t.prototype.matchTNode=function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,iu(e,n[r]));else{var i=this.metadata.predicate;i===kc?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,gr(e,t,i,!1,!1))}},t.prototype.matchTNodeWithReadOption=function(t,e,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===rc||r===Tc||r===kc&&0===e.type)this.addMatch(e.index,-2);else{var i=gr(e,t,r,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,n)}},t.prototype.addMatch=function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)},t}();function iu(t,e){var n=t.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function ou(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?ia(rc,t,e):0===t.type?oa(kc,rc,t,e):null}(e,t):-2===n?function(t,e,n){return n===rc?ia(rc,e,t):n===kc?oa(kc,rc,e,t):n===Tc?aa(Tc,rc,e,t):void 0}(t,e,r):vr(t,t[1],n,e)}function au(t,e,n,r){var i=e[19].queries[r];if(null===i.matches){for(var o=t.data,a=n.matches,s=[],c=0;c<a.length;c+=2){var u=a[c];s.push(u<0?null:ou(e,o[u],a[c+1],n.metadata.read))}i.matches=s}return i.matches}function su(t){var e=cn(),n=un(),r=Cn();On(r+1);var i=vu(n,r);if(t.dirty&&tn(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{var o=i.crossesNgTemplate?function t(e,n,r,i){var o=e.queries.getByIndex(r),a=o.matches;if(null!==a)for(var s=au(e,n,o,r),c=0;c<a.length;c+=2){var u=a[c];if(u>0)i.push(s[c/2]);else{for(var l=a[c+1],d=n[-u],p=10;p<d.length;p++)(m=d[p])[17]===m[3]&&t(m[1],m,l,i);if(null!==d[9])for(var h=d[9],f=0;f<h.length;f++){var m;t((m=h[f])[1],m,l,i)}}}return i}(n,e,r,[]):au(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function cu(t,e,n){lu(un(),cn(),t,e,n,!0)}function uu(t,e,n){lu(un(),cn(),t,e,n,!1)}function lu(t,e,n,r,i,o){t.firstCreatePass&&(gu(t,new eu(n,r,o,i),-1),o&&(t.staticViewQueries=!0)),mu(t,e)}function du(t,e,n,r){hu(un(),cn(),e,n,r,!1,dn(),t)}function pu(t,e,n,r){hu(un(),cn(),e,n,r,!0,dn(),t)}function hu(t,e,n,r,i,o,a,s){t.firstCreatePass&&(gu(t,new eu(n,r,o,i),a.index),function(t,e){var n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,s),o&&(t.staticContentQueries=!0)),mu(t,e)}function fu(){return t=cn(),e=Cn(),t[19].queries[e].queryList;var t,e}function mu(t,e){var n=new Xc;!function(t,e,n,r){var i=Eo(e);i.push(n),t.firstCreatePass&&ko(t).push(r,i.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new tu),e[19].queries.push(new $c(n))}function gu(t,e,n){null===t.queries&&(t.queries=new nu),t.queries.track(new ru(e,n))}function vu(t,e){return t.queries.getByIndex(e)}var yu=new Jt("Application Initializer"),bu=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Xa(i)&&e.push(i)}Promise.all(e).then((function(){n()})).catch((function(e){t.reject(e)})),0===e.length&&n(),this.initialized=!0}},t.\u0275fac=function(e){return new(e||t)(ae(yu,8))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),_u=new Jt("AppId"),wu={provide:_u,useFactory:function(){return""+Su()+Su()+Su()},deps:[]};function Su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Cu=new Jt("Platform Initializer"),Ou=new Jt("Platform ID"),xu=new Jt("appBootstrapListener"),Eu=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),ku=new Jt("LocaleId"),Pu=new Jt("DefaultCurrencyCode"),Tu=function(){return function(t,e){this.ngModuleFactory=t,this.componentFactories=e}}(),Mu=function(t){return new Gc(t)},Au=Mu,Iu=function(t){return Promise.resolve(Mu(t))},Ru=function(t){var e=Mu(t),n=ir(Ne(t).declarations).reduce((function(t,e){var n=Re(e);return n&&t.push(new Nc(n)),t}),[]);return new Tu(e,n)},Du=Ru,Nu=function(t){return Promise.resolve(Ru(t))},Lu=function(){function t(){this.compileModuleSync=Au,this.compileModuleAsync=Iu,this.compileModuleAndAllComponentsSync=Du,this.compileModuleAndAllComponentsAsync=Nu}return t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Vu=new Jt("compilerOptions"),ju=function(){return Promise.resolve(0)}();function Fu(t){"undefined"==typeof Zone?ju.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Bu=function(){function t(t){var e,n,r=t.enableLongStackTrace,i=void 0!==r&&r,o=t.shouldCoalesceEventChangeDetection,a=void 0!==o&&o;if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Kc(!1),this.onMicrotaskEmpty=new Kc(!1),this.onStable=new Kc(!1),this.onError=new Kc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=a,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=Ht.requestAnimationFrame,e=Ht.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,n=!!(e=this).shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ht,(function(){t.lastRequestAnimationFrameId=-1,Wu(t),Hu(t)})),Wu(t))}(e)},e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:n},onInvokeTask:function(t,r,i,o,a,s){try{return Gu(e),t.invokeTask(i,o,a,s)}finally{n&&"eventTask"===o.type&&n(),qu(e)}},onInvoke:function(t,n,r,i,o,a,s){try{return Gu(e),t.invoke(r,i,o,a,s)}finally{qu(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Wu(e),Hu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular((function(){return e.onError.emit(i)})),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,zu,Uu,Uu);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Uu(){}var zu={};function Hu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((function(){return t.onStable.emit(null)}))}finally{t.isStable=!0}}}function Wu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Gu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qu(t){t._nesting--,Hu(t)}var Zu,Qu=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Kc,this.onMicrotaskEmpty=new Kc,this.onStable=new Kc,this.onError=new Kc}return t.prototype.run=function(t,e,n){return t.apply(e,n)},t.prototype.runGuarded=function(t,e,n){return t.apply(e,n)},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t,e,n,r){return t.apply(e,n)},t}(),Yu=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){e.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.subscribe({next:function(){Bu.assertNotInAngularZone(),Fu((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Fu((function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1}));else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)})),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.\u0275fac=function(e){return new(e||t)(ae(Bu))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Ku=function(){function t(){this._applications=new Map,Ju.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ju.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Ju=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Xu=function(t,e,n){var r=t.get(Vu,[]).concat(e),i=new Gc(n);if(0===Ea.size)return Promise.resolve(i);var o,a,s=(o=r.map((function(t){return t.providers})),a=[],o.forEach((function(t){return t&&a.push.apply(a,c(t))})),a);if(0===s.length)return Promise.resolve(i);var u=function(){var t=Ht.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),l=Oa.create({providers:s}).get(u.ResourceLoader);return function(t){var e=[],n=new Map;function r(t){var e=n.get(t);if(!e){var r=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=r.then(Pa))}return e}return Ea.forEach((function(t,n){var i=[];t.templateUrl&&i.push(r(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),i.push(r(e).then((function(r){a[s+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var c=Promise.all(i).then((function(){return function(t){ka.delete(t)}(n)}));e.push(c)})),Ea=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},$u=new Jt("AllowMultipleToken"),tl=function(){return function(t,e){this.name=t,this.token=e}}();function el(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Jt(r);return function(e){void 0===e&&(e=[]);var o=nl();if(!o||o.injector.get($u,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:la,useValue:"platform"});!function(t){if(Zu&&!Zu.destroyed&&!Zu.injector.get($u,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zu=t.get(rl);var e=t.get(Cu,null);e&&e.forEach((function(t){return t()}))}(Oa.create({providers:a,name:r}))}return function(t){var e=nl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function nl(){return Zu&&!Zu.destroyed?Zu:null}var rl=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r,i=this,o=(r=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new Qu:("zone.js"===n?void 0:n)||new Bu({enableLongStackTrace:Vr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Bu,useValue:o}];return o.run((function(){var e=Oa.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(xr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return al(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var o=((a=n.injector.get(bu)).runInitializers(),a.donePromise.then((function(){return zc(n.injector.get(ku,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Xa(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(r,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=il({},e);return Xu(this.injector,r,t).then((function(t){return n.bootstrapModuleFactory(t,r)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ol);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+It(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(ae(Oa))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function il(t,e){return Array.isArray(e)?e.reduce(il,t):o(o({},t),e)}var ol=function(){function t(t,e,n,r,i,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Vr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new T((function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){t.next(a._stable),t.complete()}))})),c=new T((function(t){var e;a._zone.runOutsideAngular((function(){e=a._zone.onStable.subscribe((function(){Bu.assertNotInAngularZone(),Fu((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Bu.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=rt(s,c.pipe(dt()))}return t.prototype.bootstrap=function(t,e){var n,r=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=t instanceof tc?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(de),o=n.create(Oa.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Yu,null);return a&&o.injector.get(Ku).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Vr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,r,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=a(this._views),s=o.next();!s.done;s=o.next())s.value.detectChanges()}catch(l){t={error:l}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=a(this._views),u=c.next();!u.done;u=c.next())u.value.checkNoChanges()}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}catch(p){this._zone.runOutsideAngular((function(){return i._exceptionHandler.handleError(p)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;al(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(xu,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),al(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(t){return t.destroy()}))},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(ae(Bu),ae(Eu),ae(Oa),ae(xr),ae(nc),ae(bu))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function al(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var sl=function(){return function(){}}(),cl=function(){return function(){}}(),ul={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ll=function(){function t(t,e){this._compiler=t,this._config=e||ul}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=s(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then((function(t){return t[o]})).then((function(t){return dl(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return dl(t,r,i)}))},t.\u0275fac=function(e){return new(e||t)(ae(Lu),ae(cl,8))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function dl(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var pl=el(null,"core",[{provide:Ou,useValue:"unknown"},{provide:rl,deps:[Oa]},{provide:Ku,deps:[]},{provide:Eu,deps:[]}]),hl=[{provide:ol,useClass:ol,deps:[Bu,Eu,Oa,xr,nc,bu]},{provide:Dc,deps:[Bu],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:bu,useClass:bu,deps:[[new gt,yu]]},{provide:Lu,useClass:Lu,deps:[]},wu,{provide:Sc,useFactory:function(){return xc},deps:[]},{provide:Cc,useFactory:function(){return Ec},deps:[]},{provide:ku,useFactory:function(t){return zc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new mt(ku),new gt,new yt]]},{provide:Pu,useValue:"USD"}],fl=function(){function t(t){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(ol))},providers:hl}),t}(),ml=null;function gl(){return ml}var vl=function(){return function(){}}(),yl=new Jt("DocumentToken"),bl=function(){function t(){}return t.\u0275prov=St({factory:_l,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function _l(){return ae(Sl)}var wl=new Jt("Location Initialized"),Sl=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return i(e,t),e.prototype._init=function(){this.location=gl().getLocation(),this._history=gl().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return gl().getBaseHref(this._doc)},e.prototype.onPopState=function(t){gl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){gl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){Cl()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){Cl()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=St({factory:Ol,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(ae(yl))},e}(bl);function Cl(){return!!window.history.pushState}function Ol(){return new Sl(ae(yl))}function xl(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function El(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function kl(t){return t&&"?"!==t[0]?"?"+t:t}var Pl=function(){function t(){}return t.\u0275prov=St({factory:Tl,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function Tl(t){var e=ae(yl).location;return new Al(ae(bl),e&&e.origin||"")}var Ml=new Jt("appBaseHref"),Al=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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=n,r}return i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return xl(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+kl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+kl(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+kl(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ae(bl),ae(Ml,8))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Pl),Il=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=xl(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+kl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+kl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ae(bl),ae(Ml,8))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Pl),Rl=function(){function t(t,e){var n=this;this._subject=new Kc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=El(Nl(r)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+kl(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Nl(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kl(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kl(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=kl,t.joinWithSlash=xl,t.stripTrailingSlash=El,t.\u0275prov=St({factory:Dl,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Pl),ae(bl))},t}();function Dl(){return new Rl(ae(Pl),ae(bl))}function Nl(t){return t.replace(/\/index.html$/,"")}var Ll=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Vl=function(){return function(){}}(),jl=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return i(e,t),e.prototype.getPluralCategory=function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Bc(e);if(n)return n;var r=e.split("-")[0];if(n=Bc(r))return n;if("en"===r)return jc;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[Uc.PluralCase]}(e||this.locale)(t)){case Ll.Zero:return"zero";case Ll.One:return"one";case Ll.Two:return"two";case Ll.Few:return"few";case Ll.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(ae(ku))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Vl);function Fl(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=a(t.split(";")),o=i.next();!o.done;o=i.next()){var c=o.value,u=c.indexOf("="),l=s(-1==u?[c,""]:[c.slice(0,u),c.slice(u+1)],2),d=l[1];if(l[0].trim()===e)return decodeURIComponent(d)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var Bl=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Da(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+It(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(Ua(Sc),Ua(Cc),Ua(rc),Ua(sc))},t.\u0275dir=Ae({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Ul=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),zl=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Vr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ul(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Hl(t,o);n.push(a)}else null==i?e._viewContainer.remove(null===r?void 0:r):null!==r&&(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new Hl(t,o),n.push(a))}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.ngTemplateContextGuard=function(t,e){return!0},t.\u0275fac=function(e){return new(e||t)(Ua(Tc),Ua(kc),Ua(Sc))},t.\u0275dir=Ae({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t}(),Hl=function(){return function(t,e){this.record=t,this.view=e}}(),Wl=function(){function t(t,e){this._viewContainer=t,this._context=new Gl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){ql("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){ql("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=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)))},t.ngTemplateContextGuard=function(t,e){return!0},t.\u0275fac=function(e){return new(e||t)(Ua(Tc),Ua(kc))},t.\u0275dir=Ae({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t}(),Gl=function(){return function(){this.$implicit=null,this.ngIf=null}}();function ql(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+It(e)+"'.")}var Zl=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Ql=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t}(),Yl=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Zl(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.\u0275fac=function(e){return new(e||t)(Ua(Tc),Ua(kc),Ua(Ql,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t}(),Kl=function(){function t(t,e,n){n._addDefault(new Zl(t,e))}return t.\u0275fac=function(e){return new(e||t)(Ua(Tc),Ua(kc),Ua(Ql,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchDefault",""]]}),t}(),Jl=function(){function t(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._setStyle=function(t,e){var n=s(t.split("."),2),r=n[0],i=n[1];null!=(e=null!=e&&i?""+e+i:e)?this._renderer.setStyle(this._ngEl.nativeElement,r,e):this._renderer.removeStyle(this._ngEl.nativeElement,r)},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem((function(t){return e._setStyle(t.key,null)})),t.forEachAddedItem((function(t){return e._setStyle(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._setStyle(t.key,t.currentValue)}))},t.\u0275fac=function(e){return new(e||t)(Ua(rc),Ua(Cc),Ua(sc))},t.\u0275dir=Ae({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t}(),Xl=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),$l=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,(function(t){throw t}))},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),td=new Xl,ed=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var e;return e=t,t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Ia(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Ra.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,(function(n){return e._updateLatestValue(t,n)}))},t.prototype._selectStrategy=function(t){if(Xa(t))return $l;if($a(t))return td;throw Error("InvalidPipeArgument: '"+t+"' for pipe '"+It(e)+"'")},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.\u0275fac=function(e){return new(e||t)(function(t){void 0===t&&(t=bt.Default);var e=sa(!0);if(null!=e||t&bt.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=Ie({name:"async",type:t,pure:!1}),t}(),nd=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[{provide:Vl,useClass:jl}]}),t}();function rd(t){return"browser"===t}function id(t){return"server"===t}var od,ad=function(){function t(){}return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new sd(ae(yl),window,ae(xr))}}),t}(),sd=function(){function t(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.makeCurrent=function(){var t;t=new e,ml||(ml=t)},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.getValue=function(t){return t.value},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=ud||(ud=document.querySelector("base"))?ud.getAttribute("href"):null;return null==n?null:(e=n,od||(od=document.createElement("a")),od.setAttribute("href",e),"/"===od.pathname.charAt(0)?od.pathname:"/"+od.pathname)},e.prototype.resetBaseElement=function(){ud=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Fl(document.cookie,t)},e}(function(t){function e(){return t.call(this)||this}return i(e,t),e.prototype.supportsDOMEvents=function(){return!0},e}(vl)),ud=null,ld=new Jt("TRANSITION_ID"),dd=[{provide:yu,useFactory:function(t,e,n){return function(){n.get(bu).donePromise.then((function(){var n=gl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[ld,yl,Oa],multi:!0}],pd=function(){function t(){}return t.init=function(){var e;e=new t,Ju=e},t.prototype.addToWindow=function(t){Ht.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ht.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Ht.getAllAngularRootElements=function(){return t.getAllRootElements()},Ht.frameworkStabilizers||(Ht.frameworkStabilizers=[]),Ht.frameworkStabilizers.push((function(t){var e=Ht.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?gl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null},t}(),hd=new Jt("EventManagerPlugins"),fd=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach((function(t){return t.manager=n})),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.\u0275fac=function(e){return new(e||t)(ae(hd),ae(Bu))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),md=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=gl().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),gd=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))})),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),vd=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return i(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach((function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))}))},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(t){return gl().remove(t)}))},e.\u0275fac=function(t){return new(t||e)(ae(yl))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(gd),yd={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/"},bd=/%COMP%/g;function _d(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?_d(t,i,n):(i=i.replace(bd,t),n.push(i))}return n}function wd(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Sd=function(){function t(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Cd(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case we.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new Od(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case we.Native:case we.ShadowDom:return new xd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=_d(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.\u0275fac=function(e){return new(e||t)(ae(fd),ae(vd),ae(_u))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Cd=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(yd[e]||e,t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=yd[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=yd[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&ac.DashCase?t.style.setProperty(e,n,r&ac.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&ac.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,wd(n)):this.eventManager.addEventListener(t,e,wd(n))},t}(),Od=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.component=r;var a=_d(i+"-"+r.id,r.styles,[]);return n.addStyles(a),o.contentAttr="_ngcontent-%COMP%".replace(bd,i+"-"+r.id),o.hostAttr=function(t){return"_nghost-%COMP%".replace(bd,t)}(i+"-"+r.id),o}return i(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(Cd),xd=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=i.encapsulation===we.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=_d(i.id,i.styles,[]),s=0;s<a.length;s++){var c=document.createElement("style");c.textContent=a[s],o.shadowRoot.appendChild(c)}return o}return i(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(Cd),Ed=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this;return t.addEventListener(e,n,!1),function(){return r.removeEventListener(t,e,n)}},e.prototype.removeEventListener=function(t,e,n){return t.removeEventListener(e,n)},e.\u0275fac=function(t){return new(t||e)(ae(yl))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(md),kd=["alt","control","meta","shift"],Pd={"\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"},Td={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"},Md={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ad=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return gl().onAndCancel(t,i.domEventName,o)}))},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(kd.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Td.hasOwnProperty(e)&&(e=Td[e]))}return Pd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),kd.forEach((function(r){r!=n&&(0,Md[r])(t)&&(e+=r+".")})),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(ae(yl))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(md),Id=function(){function t(){}return t.\u0275prov=St({factory:function(){return ae(Rd)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),Rd=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case ai.NONE:return e;case ai.HTML:return Rr(e,"HTML")?Ir(e):ii(this._doc,String(e));case ai.STYLE:return Rr(e,"Style")?Ir(e):ui(e);case ai.SCRIPT:if(Rr(e,"Script"))return Ir(e);throw new Error("unsafe value used in a script context");case ai.URL:return Dr(e),Rr(e,"URL")?Ir(e):Ur(String(e));case ai.RESOURCE_URL:if(Rr(e,"ResourceURL"))return Ir(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.bypassSecurityTrustHtml=function(t){return new kr(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Pr(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Tr(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Mr(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ar(t)},e.\u0275prov=St({factory:function(){return t=ae(Xt),new Rd(t.get(yl));var t},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(ae(yl))},e}(Id),Dd=el(pl,"browser",[{provide:Ou,useValue:"browser"},{provide:Cu,useValue:function(){cd.makeCurrent(),pd.init()},multi:!0},{provide:yl,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),Nd=[[],{provide:la,useValue:"root"},{provide:xr,useFactory:function(){return new xr},deps:[]},{provide:hd,useClass:Ed,multi:!0,deps:[yl,Bu,Ou]},{provide:hd,useClass:Ad,multi:!0,deps:[yl]},[],{provide:Sd,useClass:Sd,deps:[fd,vd,_u]},{provide:oc,useExisting:Sd},{provide:gd,useExisting:vd},{provide:vd,useClass:vd,deps:[yl]},{provide:Yu,useClass:Yu,deps:[Bu]},{provide:fd,useClass:fd,deps:[hd,Bu]},[]],Ld=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:_u,useValue:t.appId},{provide:ld,useExisting:_u},dd]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(n){return new(n||t)(ae(e,12))},providers:Nd,imports:[nd,fl]}),t}();function Vd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(l(n))return jd(n,null);if(d(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return jd(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return jd(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(q((function(t){return i.apply(void 0,t)})))}return jd(t,null)}function jd(t,e){return new T((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var c=K(t[s]),u=!1;n.add(c.subscribe({next:function(t){u||(u=!0,a++),i[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&u||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},c=0;c<r;c++)s(c);else n.complete()}))}"undefined"!=typeof window&&window;var Fd=new Jt("NgValueAccessor"),Bd={provide:Fd,useExisting:Nt((function(){return Ud})),multi:!0},Ud=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&ts("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Xs([Bd])]}),t}(),zd={provide:Fd,useExisting:Nt((function(){return Wd})),multi:!0},Hd=new Jt("CompositionEventMode"),Wd=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=gl()?gl().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc),Ua(Hd,8))},t.\u0275dir=Ae({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&ts("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Xs([zd])]}),t}(),Gd=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t}(),qd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,features:[Ls]});var n=wr(e);return e}(Gd);function Zd(){throw new Error("unimplemented")}var Qd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return i(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return Zd()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Zd()},enumerable:!0,configurable:!0}),e}(Gd),Yd=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),Kd=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(Qd,2))},e.\u0275dir=Ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&bs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ls]}),e}(Yd),Jd=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(qd,2))},e.\u0275dir=Ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&bs("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ls]}),e}(Yd);function Xd(t){return null==t||0===t.length}var $d=new Jt("NgValidators"),tp=new Jt("NgAsyncValidators"),ep=/^(?=.{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])?)*$/,np=function(){function t(){}return t.min=function(t){return function(e){if(Xd(e.value)||Xd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(Xd(e.value)||Xd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Xd(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Xd(t.value)||ep.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Xd(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Xd(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(rp);return 0==e.length?null:function(t){return op(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(rp);return 0==e.length?null:function(t){return Vd(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(ip)).pipe(q(op))}},t}();function rp(t){return null!=t}function ip(t){var e=Xa(t)?K(t):t;if(!$a(e))throw new Error("Expected validator to return Promise or Observable.");return e}function op(t){var e={};return t.forEach((function(t){e=null!=t?o(o({},e),t):e})),0===Object.keys(e).length?null:e}function ap(t){return t.validate?function(e){return t.validate(e)}:t}function sp(t){return t.validate?function(e){return t.validate(e)}:t}var cp={provide:Fd,useExisting:Nt((function(){return up})),multi:!0},up=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ts("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Xs([cp])]}),t}(),lp={provide:Fd,useExisting:Nt((function(){return pp})),multi:!0},dp=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),pp=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Qd),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc),Ua(dp),Ua(Oa))},t.\u0275dir=Ae({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&ts("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Xs([lp])]}),t}(),hp={provide:Fd,useExisting:Nt((function(){return fp})),multi:!0},fp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&ts("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Xs([hp])]}),t}(),mp='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',gp='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',vp='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',yp=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+mp)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+gp+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+vp)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+mp)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+gp)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),bp={provide:Fd,useExisting:Nt((function(){return _p})),multi:!0},_p=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ia}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=a(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&ts("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Xs([bp])]}),t}(),wp={provide:Fd,useExisting:Nt((function(){return Sp})),multi:!0},Sp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ia}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(i=n.options,o=0;o<i.length;o++)(a=i.item(o)).selected&&(s=e._getOptionValue(a.value),r.push(s));e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){var e,n;try{for(var r=a(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o)._value,t))return o}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t.\u0275fac=function(e){return new(e||t)(Ua(sc),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&ts("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Xs([wp])]}),t}();function Cp(t,e){return c(e.path,[t])}function Op(t,e){t||Pp(e,"Cannot find control with"),e.valueAccessor||Pp(e,"No value accessor for form control with"),t.validator=np.compose([t.validator,e.validator]),t.asyncValidator=np.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&xp(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&xp(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function xp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ep(t,e){null==t&&Pp(e,"Cannot find control with"),t.validator=np.compose([t.validator,e.validator]),t.asyncValidator=np.composeAsync([t.asyncValidator,e.asyncValidator])}function kp(t){return Pp(t,"There is no FormControl instance attached to form control element with")}function Pp(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Tp(t){return null!=t?np.compose(t.map(ap)):null}function Mp(t){return null!=t?np.composeAsync(t.map(sp)):null}function Ap(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ia(e,n.currentValue)}var Ip=[Ud,fp,up,_p,Sp,pp];function Rp(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function Dp(t,e){if(!e)return null;Array.isArray(e)||Pp(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach((function(e){var o;e.constructor===Wd?n=e:(o=e,Ip.some((function(t){return o.constructor===t}))?(r&&Pp(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Pp(t,"More than one custom value accessor matches form control with"),i=e))})),i||r||n||(Pp(t,"No valid value accessor for form control with"),null)}function Np(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Lp(t){var e=jp(t)?t.validators:t;return Array.isArray(e)?Tp(e):e||null}function Vp(t,e){var n=jp(e)?e.asyncValidators:t;return Array.isArray(n)?Mp(n):n||null}function jp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Fp=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Lp(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Vp(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(o(o({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(o(o({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=ip(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach((function(t){r=r instanceof Up?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof zp&&r.at(t)||null})),r}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Kc,this.statusChanges=new Kc},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls((function(e){return e.status===t}))},t.prototype._anyControlsDirty=function(){return this._anyControls((function(t){return t.dirty}))},t.prototype._anyControlsTouched=function(){return this._anyControls((function(t){return t.touched}))},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){jp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),Bp=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,Lp(n),Vp(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((function(t){return t(n.value,!1!==e.emitViewToModelChange)})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(Fp),Up=function(t){function e(e,n,r){var i=t.call(this,Lp(n),Vp(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach((function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof Bp?e.value:e.getRawValue(),t}))},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild((function(r,i){n=n||e.contains(i)&&t(r)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,r){n=e(n,t,r)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(Fp),zp=function(t){function e(e,n,r){var i=t.call(this,Lp(n),Vp(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach((function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach((function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof Bp?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach((function(e,n){t(e,n)}))},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))},e.prototype._anyControls=function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Fp),Hp={provide:qd,useExisting:Nt((function(){return Gp}))},Wp=function(){return Promise.resolve(null)}(),Gp=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Kc,r.form=new Up({},Tp(e),Mp(n)),r}return i(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Wp.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Op(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Wp.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Np(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;Wp.then((function(){var n=e._findContainer(t.path),r=new Up({});Ep(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;Wp.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Wp.then((function(){n.form.get(t.path).setValue(e)}))},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,Rp(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(Ua($d,10),Ua(tp,10))},e.\u0275dir=Ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ts("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xs([Hp]),Ls]}),e}(qd),qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return Cp(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Tp(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Mp(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,features:[Ls]});var n=wr(e);return e}(qd),Zp=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+mp+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+gp+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+vp)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+gp+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+vp)},t}(),Qp={provide:qd,useExisting:Nt((function(){return Yp}))},Yp=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return i(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Gp||Zp.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(Ua(qd,5),Ua($d,10),Ua(tp,10))},e.\u0275dir=Ae({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Xs([Qp]),Ls]}),e}(qp),Kp={provide:Qd,useExisting:Nt((function(){return Xp}))},Jp=function(){return Promise.resolve(null)}(),Xp=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new Bp,o._registered=!1,o.update=new Kc,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=Dp(o,i),o}return i(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Ap(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?Cp(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Tp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Mp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Op(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Yp)&&this._parent instanceof qp?Zp.formGroupNameException():this._parent instanceof Yp||this._parent instanceof Gp||Zp.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Zp.missingNameException()},e.prototype._updateValue=function(t){var e=this;Jp.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Jp.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(Ua(qd,9),Ua($d,10),Ua(tp,10),Ua(Fd,10))},e.\u0275dir=Ae({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:[Xs([Kp]),Ls,zs]}),e}(Qd),$p=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),th=new Jt("NgModelWithFormControlWarning"),eh={provide:Qd,useExisting:Nt((function(){return nh}))},nh=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._ngModelWarningConfig=i,o.update=new Kc,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=Dp(o,r),o}var n;return i(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){yp.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,r;this._isControlChanged(t)&&(Op(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Ap(t,this.viewModel)&&("formControl",e=n,this,r=this._ngModelWarningConfig,Vr()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(yp.ngModelWarning("formControl"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Tp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Mp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Ua($d,10),Ua(tp,10),Ua(Fd,10),Ua(th,8))},e.\u0275dir=Ae({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Xs([eh]),Ls,zs]}),e}(Qd),rh={provide:qd,useExisting:Nt((function(){return ih}))},ih=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Kc,r}return i(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return Op(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){Np(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Ep(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);Ep(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,Rp(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return kp(e)})),e.valueAccessor.registerOnTouched((function(){return kp(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&Op(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Tp(this._validators);this.form.validator=np.compose([this.form.validator,t]);var e=Mp(this._asyncValidators);this.form.asyncValidator=np.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||yp.missingFormException()},e.\u0275fac=function(t){return new(t||e)(Ua($d,10),Ua(tp,10))},e.\u0275dir=Ae({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ts("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xs([rh]),Ls,zs]}),e}(qd),oh=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),ah=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Up(n,{asyncValidators:i,updateOn:o,validators:r})},t.prototype.control=function(t,e,n){return new Bp(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map((function(t){return r._createControl(t)}));return new zp(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n},t.prototype._createControl=function(t){return t instanceof Bp||t instanceof Up||t instanceof zp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),sh=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[dp],imports:[oh]}),t}(),ch=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:th,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[ah,dp],imports:[oh]}),t}(),uh=function(){return function(){}}(),lh=function(){return function(){}}();function dh(t,e){return{type:7,name:t,definitions:e,options:{}}}function ph(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function hh(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function fh(t){return{type:6,styles:t,offset:null}}function mh(t,e,n){return{type:0,name:t,styles:e,options:n}}function gh(t){return{type:5,steps:t}}function vh(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function yh(t){return void 0===t&&(t=null),{type:9,options:t}}function bh(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function _h(t){Promise.resolve(null).then(t)}var wh=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;_h((function(){return t._onFinish()}))},t.prototype._onStart=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Sh=function(){function t(t){var e=this;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 n=0,r=0,i=0,o=this.players.length;0==o?_h((function(){return e._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&e._onFinish()})),t.onDestroy((function(){++r==o&&e._onDestroy()})),t.onStart((function(){++i==o&&e._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach((function(t){return t.init()}))},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))},t.prototype.pause=function(){this.players.forEach((function(t){return t.pause()}))},t.prototype.restart=function(){this.players.forEach((function(t){return t.restart()}))},t.prototype.finish=function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))},t.prototype.getPosition=function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t},t.prototype.beforeDestroy=function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}();function Ch(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Oh(t){switch(t.length){case 0:return new wh;case 1:return t[0];default:return new Sh(t)}}function xh(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],c=-1,u=null;if(r.forEach((function(t){var n=t.offset,r=n==c,l=r&&u||{};Object.keys(t).forEach((function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}l[r]=s})),r||s.push(l),u=l,c=n})),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function Eh(t,e,n,r){switch(e){case"start":t.onStart((function(){return r(n&&kh(n,"start",t))}));break;case"done":t.onDone((function(){return r(n&&kh(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return r(n&&kh(n,"destroy",t))}))}}function kh(t,e,n){var r=n.totalTime,i=Ph(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function Ph(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function Th(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function Mh(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Ah=function(t,e){return!1},Ih=function(t,e){return!1},Rh=function(t,e,n){return[]},Dh=Ch();(Dh||"undefined"!=typeof Element)&&(Ah=function(t,e){return t.contains(e)},Ih=function(){if(Dh||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Ih}(),Rh=function(t,e,n){var r=[];if(n)r.push.apply(r,c(t.querySelectorAll(e)));else{var i=t.querySelector(e);i&&r.push(i)}return r});var Nh=null,Lh=!1;function Vh(t){Nh||(Nh=("undefined"!=typeof document?document.body:null)||{},Lh=!!Nh.style&&"WebkitAppearance"in Nh.style);var e=!0;return Nh.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Nh.style)&&Lh&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Nh.style),e}var jh=Ih,Fh=Ah,Bh=Rh;function Uh(t){var e={};return Object.keys(t).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]})),e}var zh=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return jh(t,e)},t.prototype.containsElement=function(t,e){return Fh(t,e)},t.prototype.query=function(t,e,n){return Bh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new wh(n,r)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Hh=function(){function t(){}return t.NOOP=new zh,t}();function Wh(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Gh(parseFloat(e[1]),e[2])}function Gh(t,e){switch(e){case"s":return 1e3*t;default:return t}}function qh(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Gh(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Gh(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else r=t;if(!n){var u=!1,l=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function Zh(t,e){return void 0===e&&(e={}),Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function Qh(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Zh(t,n);return n}function Yh(t,e,n){return n?e+":"+n+";":""}function Kh(t){for(var e="",n=0;n<t.style.length;n++)e+=Yh(0,r=t.style.item(n),t.style.getPropertyValue(r));for(var r in t.style)t.style.hasOwnProperty(r)&&!r.startsWith("_")&&(e+=Yh(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[r]));t.setAttribute("style",e)}function Jh(t,e,n){t.style&&(Object.keys(e).forEach((function(r){var i=af(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]})),Ch()&&Kh(t))}function Xh(t,e){t.style&&(Object.keys(e).forEach((function(e){var n=af(e);t.style[n]=""})),Ch()&&Kh(t))}function $h(t){return Array.isArray(t)?1==t.length?t[0]:hh(t):t}var tf=new RegExp("{{\\s*(.+?)\\s*}}","g");function ef(t){var e=[];if("string"==typeof t){for(var n=void 0;n=tf.exec(t);)e.push(n[1]);tf.lastIndex=0}return e}function nf(t,e,n){var r=t.toString(),i=r.replace(tf,(function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()}));return i==r?t:i}function rf(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var of=/-+([a-z0-9])/g;function af(t){return t.replace(of,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()}))}function sf(t,e){return 0===t||0===e}function cf(t,e,n){var r=Object.keys(n);if(r.length&&e.length){var i=e[0],o=[];if(r.forEach((function(t){i.hasOwnProperty(t)||o.push(t),i[t]=n[t]})),o.length)for(var a=function(){var n=e[s];o.forEach((function(e){n[e]=lf(t,e)}))},s=1;s<e.length;s++)a()}return e}function uf(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function lf(t,e){return window.getComputedStyle(t)[e]}var df=new Set(["true","1"]),pf=new Set(["false","0"]);function hf(t,e){var n=df.has(t)||pf.has(t),r=df.has(e)||pf.has(e);return function(i,o){var a="*"==t||t==i,s="*"==e||e==o;return!a&&n&&"boolean"==typeof i&&(a=i?df.has(t):pf.has(t)),!s&&r&&"boolean"==typeof o&&(s=o?df.has(e):pf.has(e)),a&&s}}var ff=new RegExp("s*:selfs*,?","g");function mf(t,e,n){return new gf(t).build(e,n)}var gf=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new vf(e);return this._resetContextStyleTimingState(n),uf(this,$h(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;c.toString().split(/\s*,\s*/).forEach((function(t){s.name=t,o.push(n.visitState(s,e))})),s.name=c}else if(1==t.type){var u=n.visitTransition(t,e);r+=u.queryCount,i+=u.depCount,a.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach((function(t){if(yf(t)){var e=t;Object.keys(e).forEach((function(t){ef(e[t]).forEach((function(t){o.hasOwnProperty(t)||i.add(t)}))}))}})),i.size){var a=rf(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,r,i,o=uf(this,$h(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(hf(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(hf(s,o))}(t,i,r)})):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:bf(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return uf(n,t,e)})),options:bf(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map((function(t){e.currentTime=r;var o=uf(n,t,e);return i=Math.max(i,e.currentTime),o}));return e.currentTime=i,{type:3,steps:o,options:bf(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return _f(qh(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var i=_f(0,0,"");return i.dynamic=!0,i.strValue=r,i}return _f((n=n||qh(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:fh({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=fh(s)}e.currentTime+=r.duration+r.delay;var c=this.visitStyle(o,e);c.isEmptyStep=a,n=c}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var r=!1,i=null;return n.forEach((function(t){if(yf(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a,s,c,u=e.collectedStyles[e.currentQuerySelector],l=u[r],d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=l.startTime),d&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(c=ef(t[r])).length&&c.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,c=0,u=t.steps.map((function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(yf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(yf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=u&&(i++,l=r.offset=u),s=s||l<0||l>1,a=a||l<c,c=l,o.push(l),r}));s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,d=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(l-1));var p=l-1,h=e.currentTime,f=e.currentAnimateTimings,m=f.duration;return u.forEach((function(t,i){var a=d>0?i==p?1:d*i:o[i],s=a*m;e.currentTime=h+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)})),r},t.prototype.visitReference=function(t,e){return{type:8,animation:uf(this,$h(t.animation),e),options:bf(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:bf(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:bf(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=s(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ff,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,Th(e.collectedStyles,e.currentQuerySelector,{});var c=uf(this,$h(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:bf(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:qh(t.timings,e.errors,!0);return{type:12,animation:uf(this,$h(t.animation),e),timings:n,options:null}},t}(),vf=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function yf(t){return!Array.isArray(t)&&"object"==typeof t}function bf(t){var e;return t?(t=Zh(t)).params&&(t.params=(e=t.params)?Zh(e):null):t={},t}function _f(t,e,n){return{duration:t,delay:e,easing:n}}function wf(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var Sf=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Cf=new RegExp(":enter","g"),Of=new RegExp(":leave","g");function xf(t,e,n,r,i,o,a,s,c,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new Ef).buildKeyframes(t,e,n,r,i,o,a,s,c,u)}var Ef=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,c,u){void 0===u&&(u=[]),c=c||new Sf;var l=new Pf(t,e,c,r,i,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),uf(this,n,l);var d=l.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(a).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,l.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[wf(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Wh(n.duration):null,o=null!=n.delay?Wh(n.delay):null;return 0!==i&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)})),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),uf(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=kf);var a=Wh(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return uf(n,t,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Wh(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),uf(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return qh(e.params?nf(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Wh(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kf);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(c=s.currentTimeline),uf(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;uf(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),kf={},Pf=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Tf(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Wh(r.duration)),null!=r.delay&&(i.delay=Wh(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=nf(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=kf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Mf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Cf,"."+this._enterClassName)).replace(Of,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,c(s))}return i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),Tf=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=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))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){r[t]="*"})):Qh(t,!1,r)})),r}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=nf(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:"*"),i._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=Qh(o,!0);Object.keys(s).forEach((function(t){var r=s[t];"!"==r?e.add(t):"*"==r&&n.add(t)})),r||(s.offset=a/t.duration),i.push(s)}));var o=e.size?rf(e.values()):[],a=n.size?rf(n.values()):[];if(r){var s=i[0],c=Zh(s);s.offset=0,c.offset=1,i=[s,c]}return wf(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),Mf=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var c=t.call(this,e,n,a.delay)||this;return c.element=n,c.keyframes=r,c.preStyleProps=i,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return i(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,c=Qh(t[0],!1);c.offset=0,o.push(c);var u=Qh(t[0],!1);u.offset=Af(s),o.push(u);for(var l=t.length-1,d=1;d<=l;d++){var p=Qh(t[d],!1);p.offset=Af((n+p.offset*r)/a),o.push(p)}r=a,n=0,i="",t=o}return wf(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Tf);function Af(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var If=function(){return function(){}}(),Rf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.normalizePropertyName=function(t,e){return af(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(Df[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(If),Df=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function Nf(t,e,n,r,i,o,a,s,c,u,l,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:p}}var Lf={},Vf=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some((function(t){return t(e,n,r,i)}))}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,a,s,c,u,l){var d=[],p=this.ast.options&&this.ast.options.params||Lf,h=this.buildStyles(n,s&&s.params||Lf,d),f=c&&c.params||Lf,m=this.buildStyles(r,f,d),g=new Set,v=new Map,y=new Map,b="void"===r,_={params:o(o({},p),f)},w=l?[]:xf(t,e,this.ast.animation,i,a,h,m,_,u,d),S=0;if(w.forEach((function(t){S=Math.max(t.duration+t.delay,S)})),d.length)return Nf(e,this._triggerName,n,r,b,h,m,[],[],v,y,S,d);w.forEach((function(t){var n=t.element,r=Th(v,n,{});t.preStyleProps.forEach((function(t){return r[t]=!0}));var i=Th(y,n,{});t.postStyleProps.forEach((function(t){return i[t]=!0})),n!==e&&g.add(n)}));var C=rf(g.values());return Nf(e,this._triggerName,n,r,b,h,m,w,C,v,y,S)},t}(),jf=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Zh(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(r[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach((function(t){var o=i[t];o.length>1&&(o=nf(o,r,e)),n[t]=o}))}})),n},t}(),Ff=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new jf(t.style,t.options&&t.options.params||{})})),Bf(this.states,"true","1"),Bf(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new Vf(t,e,n.states))})),this.fallbackTransition=new Vf(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find((function(i){return i.match(t,e,n,r)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Bf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Uf=new Sf,zf=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=mf(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=xh(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=xf(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Uf,o)).forEach((function(t){var e=Th(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=r._driver.computeStyle(e,n,"*")}))}));var c=Oh(i.map((function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((function(){return r.destroy(t)})),this.players.push(c),c},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=Ph(e,"","","");return Eh(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Hf=[],Wf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qf=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,r=t&&t.hasOwnProperty("value");if(this.value=null!=(n=r?t.value:t)?n:null,r){var i=Zh(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),Zf=new qf("void"),Qf=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,em(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=Th(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var c=Th(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(em(t,"ng-trigger"),em(t,"ng-trigger-"+e),c[e]=Zf),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new Kf(this.id,e,t),s=this._engine.statesByElement.get(t);s||(em(t,"ng-trigger"),em(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new qf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=Zf),"void"===u.value||c.value!==u.value){var l=Th(this._engine.playersByElement,t,[]);l.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=o.matchTransition(c.value,u.value,t,u.params),p=!1;if(!d){if(!r)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:c,toState:u,player:a,isFallbackTransition:p}),p||(em(t,"ng-animate-queued"),a.onStart((function(){nm(t,"ng-animate-queued")}))),a.onDone((function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}})),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(c.params,u.params)){var h=[],f=o.matchStyles(c.value,c.params,h),m=o.matchStyles(u.value,u.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush((function(){Xh(t,f),Jh(t,m)}))}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,r){e._elementListeners.set(r,n.filter((function(e){return e.name!=t})))}))},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e){var n=this,r=this._engine.driver.query(t,".ng-trigger",!0);r.forEach((function(t){if(!t.__ng_removed){var r=n._engine.fetchNamespacesByElement(t);r.size?r.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return r.forEach((function(t){return n.clearElementCache(t)}))}))},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var i=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach((function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",r);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Oh(a).onDone((function(){return i._engine.processLeaveNode(t)})),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach((function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,a=e._engine.statesByElement.get(t)[i]||Zf,s=new qf("void"),c=new Kf(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:a,toState:s,player:c,isFallbackTransition:!0})}}))}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Wf||(r.afterFlush((function(){return n.clearElementCache(t)})),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}},t.prototype.insertNode=function(t,e){em(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach((function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach((function(e){if(e.name==r.triggerName){var n=Ph(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,Eh(r.player,e.phase,n,e.callback)}})),i.markedForDestroy?e._engine.afterFlush((function(){i.destroy()})):n.push(r)}})),this._queue=[],n.sort((function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1}))},t.prototype.destroy=function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find((function(e){return e.element===t}))||e},t}(),Yf=function(){function t(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Qf(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){if(Jf(e)){var i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1},t.prototype.insertNode=function(t,e,n,r){if(Jf(e)){var i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),em(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),nm(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(Jf(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Jf(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return Oh(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Wf,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var 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 r=0;r<this.collectedEnterElements.length;r++)em(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(t){return t()})),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?Oh(n).onDone((function(){o.forEach((function(t){return t()}))})):o.forEach((function(t){return t()}))}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,r=new Sf,i=[],a=new Map,s=[],u=new Map,l=new Map,d=new Map,p=new Set;this.disabledNodes.forEach((function(t){p.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)p.add(e[r])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=tm(f,this.collectedEnterElements),g=new Map,v=0;m.forEach((function(t,e){var n="ng-enter"+v++;g.set(e,n),t.forEach((function(t){return em(t,n)}))}));for(var y=[],b=new Set,_=new Set,w=0;w<this.collectedLeaveElements.length;w++)(j=(V=this.collectedLeaveElements[w]).__ng_removed)&&j.setForRemoval&&(y.push(V),b.add(V),j.hasAnimation?this.driver.query(V,".ng-star-inserted",!0).forEach((function(t){return b.add(t)})):_.add(V));var S=new Map,C=tm(f,Array.from(b));C.forEach((function(t,e){var n="ng-leave"+v++;S.set(e,n),t.forEach((function(t){return em(t,n)}))})),t.push((function(){m.forEach((function(t,e){var n=g.get(e);t.forEach((function(t){return nm(t,n)}))})),C.forEach((function(t,e){var n=S.get(e);t.forEach((function(t){return nm(t,n)}))})),y.forEach((function(t){n.processLeaveNode(t)}))}));for(var O=[],x=[],E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(O.push(e),n.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var c=!h||!n.driver.containsElement(h,o),p=S.get(o),f=g.get(o),m=n._buildInstruction(t,r,f,p,c);if(m.errors&&m.errors.length)x.push(m);else{if(c)return e.onStart((function(){return Xh(o,m.fromStyles)})),e.onDestroy((function(){return Jh(o,m.toStyles)})),void i.push(e);if(t.isFallbackTransition)return e.onStart((function(){return Xh(o,m.fromStyles)})),e.onDestroy((function(){return Jh(o,m.toStyles)})),void i.push(e);m.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach((function(t){return Th(u,t,[]).push(e)})),m.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}})),m.postStyleProps.forEach((function(t,e){var n=Object.keys(t),r=d.get(e);r||d.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}))}}));if(x.length){var k=[];x.forEach((function(t){k.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return k.push("- "+t+"\n")}))})),O.forEach((function(t){return t.destroy()})),this.reportError(k)}var P=new Map,T=new Map;s.forEach((function(t){var e=t.element;r.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))})),i.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Th(P,e,[]).push(t),t.destroy()}))}));var M=y.filter((function(t){return im(t,l,d)})),A=new Map;$f(A,this.driver,_,d,"*").forEach((function(t){im(t,l,d)&&M.push(t)}));var I=new Map;m.forEach((function(t,e){$f(I,n.driver,new Set(t),l,"!")})),M.forEach((function(t){var e=A.get(t),n=I.get(t);A.set(t,o(o({},e),n))}));var R=[],D=[],N={};s.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(r.has(e)){if(p.has(e))return o.onDestroy((function(){return Jh(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);var c=N;if(T.size>1){for(var u=e,l=[];u=u.parentNode;){var d=T.get(u);if(d){c=d;break}l.push(u)}l.forEach((function(t){return T.set(t,c)}))}var h=n._buildAnimation(o.namespaceId,s,P,a,I,A);if(o.setRealPlayer(h),c===N)R.push(o);else{var f=n.playersByElement.get(c);f&&f.length&&(o.parentPlayer=Oh(f)),i.push(o)}}else Xh(e,s.fromStyles),o.onDestroy((function(){return Jh(e,s.toStyles)})),D.push(o),p.has(e)&&i.push(o)})),D.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=Oh(e);t.setRealPlayer(n)}})),i.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var L=0;L<y.length;L++){var V,j=(V=y[L]).__ng_removed;if(nm(V,"ng-leave"),!j||!j.hasAnimation){var F=[];if(u.size){var B=u.get(V);B&&B.length&&F.push.apply(F,c(B));for(var U=this.driver.query(V,".ng-animating",!0),z=0;z<U.length;z++){var H=u.get(U[z]);H&&H.length&&F.push.apply(F,c(H))}}var W=F.filter((function(t){return!t.destroyed}));W.length?rm(this,V,W):this.processLeaveNode(V)}}return y.length=0,R.forEach((function(t){n.players.push(t),t.onDone((function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)})),t.play()})),R},t.prototype.elementContainsData=function(t,e){var n=!1,r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var c=!i||"void"==i;s.forEach((function(t){t.queued||(c||t.triggerName==r)&&o.push(t)}))}}return(n||r)&&(o=o.filter((function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)}))),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r,i,o=e.element,s=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName,u=function(t){var r=t.element,i=r!==o,a=Th(n,r,[]);l._getPreviousPlayers(r,i,s,c,e.toState).forEach((function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),a.push(t)}))},l=this;try{for(var d=a(e.timelines),p=d.next();!p.done;p=d.next())u(p.value)}catch(h){r={error:h}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}Xh(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,r,i,o){var a=this,s=e.triggerName,c=e.element,u=[],l=new Set,d=new Set,p=e.timelines.map((function(e){var p=e.element;l.add(p);var h=p.__ng_removed;if(h&&h.removedBeforeQueried)return new wh(e.duration,e.delay);var f,m,g=p!==c,v=(f=(n.get(p)||Hf).map((function(t){return t.getRealPlayer()})),m=[],function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];i instanceof Sh?t(i.players,n):n.push(i)}}(f,m),m).filter((function(t){return!!t.element&&t.element===p})),y=i.get(p),b=o.get(p),_=xh(0,a._normalizer,0,e.keyframes,y,b),w=a._buildPlayer(e,_,v);if(e.subTimeline&&r&&d.add(p),g){var S=new Kf(t,s,p);S.setRealPlayer(w),u.push(S)}return w}));u.forEach((function(t){Th(a.playersByQueriedElement,t.element,[]).push(t),t.onDone((function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete t[e]);return r}(a.playersByQueriedElement,t.element,t)}))})),l.forEach((function(t){return em(t,"ng-animating")}));var h=Oh(p);return h.onDestroy((function(){l.forEach((function(t){return nm(t,"ng-animating")})),Jh(c,e.toStyles)})),d.forEach((function(t){Th(r,t,[]).push(h)})),h},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new wh(t.duration,t.delay)},t}(),Kf=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new wh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Eh(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){Th(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Jf(t){return t&&1===t.nodeType}function Xf(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function $f(t,e,n,r,i){var o=[];n.forEach((function(t){return o.push(Xf(t))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Gf,a.push(r))})),t.set(r,o)}));var s=0;return n.forEach((function(t){return Xf(t,o[s++])})),a}function tm(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function em(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function nm(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function rm(t,e,n){Oh(n).onDone((function(){return t.processLeaveNode(e)}))}function im(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach((function(t){return i.add(t)})):e.set(t,r),n.delete(t),!0}var om=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Yf(t,e,n),this._timelineEngine=new zf(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],c=mf(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Ff(t,e)}(r,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=s(Mh(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=s(Mh(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function am(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=cm(e[0]),e.length>1&&(r=cm(e[e.length-1]))):e&&(n=cm(e)),n||r?new sm(t,n,r):null}var sm=function(){function t(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return t.prototype.start=function(){this._state<1&&(this._startStyles&&Jh(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(Jh(this._element,this._initialStyles),this._endStyles&&(Jh(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Xh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xh(this._element,this._endStyles),this._endStyles=null),Jh(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function cm(t){for(var e=null,n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];um(i)&&((e=e||{})[i]=t[i])}return e}function um(t){return"display"===t||"position"===t}var lm=function(){function t(t,e,n,r,i,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=gm(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),mm(t,"",e),fm(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){dm(this._element,this._name,"paused")},t.prototype.resume=function(){dm(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=pm(this._element,this._name);this._position=t*this._duration,mm(this._element,"Delay","-"+this._position+"ms",e)},t.prototype.getPosition=function(){return this._position},t.prototype._handleCallback=function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),fm(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=hm(n=gm(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),mm(t,"",n.join(","))))},t}();function dm(t,e,n){mm(t,"PlayState",n,pm(t,e))}function pm(t,e){var n=gm(t,"");return n.indexOf(",")>0?hm(n.split(","),e):hm([n],e)}function hm(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function fm(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function mm(t,e,n,r){var i="animation"+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function gm(t,e){return t.style["animation"+e]}var vm=function(){function t(t,e,n,r,i,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=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(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new lm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:lf(t.element,r))}))}this.currentSnapshot=e},t}(),ym=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Uh(n),r}return i(e,t),e.prototype.init=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]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=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,t.prototype.destroy.call(this))},e}(wh),bm=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return jh(t,e)},t.prototype.containsElement=function(t,e){return Fh(t,e)},t.prototype.query=function(t,e,n){return Bh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return Uh(t)}));var r="@keyframes "+e+" {\n",i="";n.forEach((function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof vm})),c={};sf(n,r)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=cf(t,e,c));if(0==n)return new ym(t,u);var l="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(d);var p=am(t,e),h=new vm(t,e,l,n,r,i,u,p);return h.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),_m=function(){function t(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:lf(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),wm=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Sm().toString()),this._cssKeyframesDriver=new bm}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return jh(t,e)},t.prototype.containsElement=function(t,e){return Fh(t,e)},t.prototype.query=function(t,e,n){return Bh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var c={},u=o.filter((function(t){return t instanceof _m}));sf(n,r)&&u.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=am(t,e=cf(t,e=e.map((function(t){return Qh(t,!1)})),c));return new _m(t,e,s,l)},t}();function Sm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Cm=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:we.None,styles:[],data:{animation:[]}}),r}return i(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?hh(t):t;return Em(this._renderer,null,e,"register",[n]),new Om(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(ae(oc),ae(yl))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(uh),Om=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return i(e,t),e.prototype.create=function(t,e){return new xm(this._id,t,e||{},this._renderer)},e}(lh),xm=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Em(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function Em(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var km=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new Pm("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);var s=function(e){Array.isArray(e)?e.forEach(s):n.engine.registerTrigger(o,a,t,e.name,e)};return e.data.animation.forEach(s),new Tm(this,a,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then((function(){t._microtaskId++}))},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run((function(){return e(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){r._zone.run((function(){r._animationCallbacksBuffer.forEach((function(t){var e=s(t,2);(0,e[0])(e[1])})),r._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)})),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t.\u0275fac=function(e){return new(e||t)(ae(oc),ae(om),ae(Bu))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Pm=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)},t.prototype.selectRootElement=function(t,e){return this.delegate.selectRootElement(t,e)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),Tm=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return i(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,i,o,a=this;if("@"==e.charAt(0)){var c=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),l="";return"@"!=u.charAt(0)&&(u=(r=s((i=u,o=i.indexOf("."),[i.substring(0,o),i.substr(o+1)]),2))[0],l=r[1]),this.engine.listen(this.namespaceId,c,u,l,(function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)}))}return this.delegate.listen(t,e,n)},e}(Pm),Mm=function(t){function e(e,n,r){return t.call(this,e.body,n,r)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(ae(yl),ae(Hh),ae(If))},e.\u0275prov=St({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(om),Am=new Jt("AnimationModuleType"),Im=[{provide:uh,useClass:Cm},{provide:If,useFactory:function(){return new Rf}},{provide:om,useClass:Mm},{provide:oc,useFactory:function(t,e,n){return new km(t,e,n)},deps:[Sd,om,Bu]}],Rm=c([{provide:Hh,useFactory:function(){return"function"==typeof Sm()?new wm:new bm}},{provide:Am,useValue:"BrowserAnimations"}],Im),Dm=(c([{provide:Hh,useClass:zh},{provide:Am,useValue:"NoopAnimations"}],Im),function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:Rm,imports:[Ld]}),t}());function Nm(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return L(n)?(t.pop(),Y(t,n)):nt(t)}function Lm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length?e.some((function(e){return t[e]})):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Vm(){}function jm(t,e,n){return function(r){return r.lift(new Fm(t,e,n))}}var Fm=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Bm(t,this.nextOrObserver,this.error,this.complete))},t}(),Bm=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Vm,o._tapError=Vm,o._tapComplete=Vm,o._tapError=r||Vm,o._tapComplete=i||Vm,p(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Vm,o._tapError=n.error||Vm,o._tapComplete=n.complete||Vm),o}return v(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(C),Um=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return v(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return v(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(f)),zm=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Hm=new(function(t){function e(n,r){void 0===r&&(r=zm.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return v(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(zm))(Um);function Wm(t,e){return void 0===e&&(e=Hm),function(n){return n.lift(new Gm(t,e))}}var Gm=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qm(t,this.dueTime,this.scheduler))},t}(),qm=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return v(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Zm,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(C);function Zm(t){t.debouncedNext()}function Qm(t,e){return function(n){return n.lift(new Ym(t,e))}}var Ym=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Km(t,this.predicate,this.thisArg))},t}(),Km=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return v(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(C),Jm=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),Xm=new T((function(t){return t.complete()}));function $m(t){return t?function(t){return new T((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Xm}function tg(t){return function(e){return 0===t?$m():e.lift(new ng(t))}}var eg,ng=function(){function t(t){if(this.total=t,this.total<0)throw new Jm}return t.prototype.call=function(t,e){return e.subscribe(new rg(t,this.total))},t}(),rg=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return v(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(C);function ig(t){return null!=t&&""+t!="false"}function og(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function ag(t){return Array.isArray(t)?t:[t]}function sg(t){return null==t?"":"string"==typeof t?t:t+"px"}function cg(t){return t instanceof rc?t.nativeElement:t}try{eg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(SM){eg=!1}var ug,lg,dg,pg,hg=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?rd(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&&!eg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.\u0275prov=St({factory:function(){return new t(ae(Ou,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Ou,8))},t}(),fg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),mg=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function gg(){if(ug)return ug;if("object"!=typeof document||!document)return ug=new Set(mg);var t=document.createElement("input");return ug=new Set(mg.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function vg(t){return function(){if(null==lg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return lg=!0}}))}finally{lg=lg||!1}return lg}()?t:!!t.capture}function yg(){if("object"!=typeof document||!document)return 0;if(null==dg){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),dg=0,0===t.scrollLeft&&(t.scrollLeft=1,dg=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return dg}function bg(t){if(function(){if(null==pg){var t="undefined"!=typeof document?document.head:null;pg=!(!t||!t.createShadowRoot&&!t.attachShadow)}return pg}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var _g=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.\u0275prov=St({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),wg=function(){function t(t){this._mutationObserverFactory=t,this._observedElements=new Map}return t.prototype.ngOnDestroy=function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))},t.prototype.observe=function(t){var e=this,n=cg(t);return new T((function(t){var r=e._observeElement(n).subscribe(t);return function(){r.unsubscribe(),e._unobserveElement(n)}}))},t.prototype._observeElement=function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new D,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream},t.prototype._unobserveElement=function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))},t.prototype._cleanupObserver=function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,r=e.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(t)}},t.\u0275prov=St({factory:function(){return new t(ae(_g))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(_g))},t}(),Sg=function(){function t(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Kc,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=ig(t),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debounce",{get:function(){return this._debounce},set:function(t){this._debounce=og(t),this._subscribe()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},t.prototype.ngOnDestroy=function(){this._unsubscribe()},t.prototype._subscribe=function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Wm(t.debounce)):e).subscribe(t.event)}))},t.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Ua(wg),Ua(rc),Ua(Bu))},t.\u0275dir=Ae({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),Cg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[_g]}),t}();function Og(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var xg=0,Eg=new Map,kg=null,Pg=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Eg.set(e,{messageElement:e,referenceCount:0})):Eg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=Eg.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}kg&&0===kg.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");kg&&this._deleteMessagesContainer(),Eg.clear()},t.prototype._createMessageElement=function(t){var e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),kg.appendChild(e),Eg.set(t,{messageElement:e,referenceCount:0})},t.prototype._setMessageId=function(t){t.id||(t.id="cdk-describedby-message-"+xg++)},t.prototype._deleteMessageElement=function(t){var e=Eg.get(t),n=e&&e.messageElement;kg&&n&&kg.removeChild(n),Eg.delete(t)},t.prototype._createMessagesContainer=function(){if(!kg){var t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(kg=this._document.createElement("div")).id="cdk-describedby-message-container",kg.setAttribute("aria-hidden","true"),kg.style.display="none",this._document.body.appendChild(kg)}},t.prototype._deleteMessagesContainer=function(){kg&&kg.parentNode&&(kg.parentNode.removeChild(kg),kg=null)},t.prototype._removeCdkDescribedByReferenceIds=function(t){var e=Og(t,"aria-describedby").filter((function(t){return 0!=t.indexOf("cdk-describedby-message")}));t.setAttribute("aria-describedby",e.join(" "))},t.prototype._addMessageReference=function(t,e){var n,r,i,o=Eg.get(e);r=o.messageElement.id,(i=Og(n=t,"aria-describedby")).some((function(t){return t.trim()==r.trim()}))||(i.push(r.trim()),n.setAttribute("aria-describedby",i.join(" "))),t.setAttribute("cdk-describedby-host",""),o.referenceCount++},t.prototype._removeMessageReference=function(t,e){var n,r,i,o,a=Eg.get(e);a.referenceCount--,i=a.messageElement.id,(o=Og(n=t,r="aria-describedby").filter((function(t){return t!=i.trim()}))).length?n.setAttribute(r,o.join(" ")):n.removeAttribute(r),t.removeAttribute("cdk-describedby-host")},t.prototype._isElementDescribedByMessage=function(t,e){var n=Og(t,"aria-describedby"),r=Eg.get(e),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)},t.prototype._canBeDescribed=function(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;var n=null==e?"":(""+e).trim(),r=t.getAttribute("aria-label");return!(!n||r&&r.trim()===n)},t.prototype._isElementNode=function(t){return t.nodeType===this._document.ELEMENT_NODE},t.\u0275prov=St({factory:function(){return new t(ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(yl))},t}(),Tg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(function(){function t(t){var e=this;this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new D,this._typeaheadSubscription=f.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new D,this.change=new D,t instanceof Xc&&t.changes.subscribe((function(t){if(e._activeItem){var n=t.toArray().indexOf(e._activeItem);n>-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(jm((function(t){return e._pressedLetters.push(t)})),Wm(t),Qm((function(){return e._pressedLetters.length>0})),q((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),r=1;r<n.length+1;r++){var i=(e._activeItemIndex+r)%n.length,o=n[i];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(i);break}}e._pressedLetters=[]})),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)},t.prototype.onKeydown=function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((r||Lm(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.isTyping=function(){return this._pressedLetters.length>0},t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof Xc?this._items.toArray():this._items},t}()),Mg=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(SM){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var r=n&&n.nodeName.toLowerCase();if(-1===Ig(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),o=Ig(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ag(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.\u0275prov=St({factory:function(){return new t(ae(hg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(hg))},t}();function Ag(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Ig(t){if(!Ag(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Rg=function(){function t(t,e,n,r,i){var o=this;void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(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),Vr()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype.hasAttached=function(){return this._hasAttached},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype.toggleAnchors=function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe(t)},t}(),Dg=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Rg(t,this._checker,this._ngZone,this._document,e)},t.\u0275prov=St({factory:function(){return new t(ae(Mg),ae(Bu),ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Mg),ae(Bu),ae(yl))},t}();"undefined"!=typeof Element&∈var Ng=new Jt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new Jt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Vg=function(){function t(t,e,n,r){this._ngZone=e,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o,a,c=this._defaultOptions;return 1===r.length&&"number"==typeof r[0]?a=r[0]:(o=(e=s(r,2))[0],a=e[1]),this.clear(),clearTimeout(this._previousTimeout),o||(o=c&&c.politeness?c.politeness:"polite"),null==a&&c&&(a=c.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular((function(){return new Promise((function(e){clearTimeout(n._previousTimeout),n._previousTimeout=setTimeout((function(){n._liveElement.textContent=t,e(),"number"==typeof a&&(n._previousTimeout=setTimeout((function(){return n.clear()}),a))}),100)}))}))},t.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")},t.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)},t.prototype._createLiveElement=function(){for(var t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e},t.\u0275prov=St({factory:function(){return new t(ae(Ng,8),ae(Bu),ae(yl),ae(Lg,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Ng,8),ae(Bu),ae(yl),ae(Lg,8))},t}();function jg(t){return 0===t.buttons}var Fg=new Jt("cdk-focus-monitor-default-options"),Bg=vg({passive:!0,capture:!0}),Ug=function(){function t(t,e,n,r){var i=this;this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){i._lastTouchTarget=null,i._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!i._lastTouchTarget){var e=jg(t)?"keyboard":"mouse";i._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=i._touchTimeoutId&&clearTimeout(i._touchTimeoutId),i._lastTouchTarget=zg(t),i._touchTimeoutId=setTimeout((function(){return i._lastTouchTarget=null}),650)},this._windowFocusListener=function(){i._windowFocused=!0,i._windowFocusTimeoutId=setTimeout((function(){return i._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(t){for(var e=zg(t),n="focus"===t.type?i._onFocus:i._onBlur,r=e;r;r=r.parentElement)n.call(i,t,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return t.prototype.monitor=function(t,e){if(void 0===e&&(e=!1),!this._platform.isBrowser)return Nm(null);var n=cg(t),r=bg(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject.asObservable();var o={checkChildren:e,subject:new D,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=cg(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))},t.prototype.focusVia=function(t,e,n){var r=cg(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._getFocusOrigin=function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"},t.prototype._setClasses=function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))},t.prototype._wasCausedByTouch=function(t){var e=zg(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===zg(t))){var r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run((function(){return t.next(e)}))},t.prototype._registerGlobalListeners=function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,Bg),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,Bg)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,Bg),t.addEventListener("mousedown",e._documentMousedownListener,Bg),t.addEventListener("touchstart",e._documentTouchstartListener,Bg),n.addEventListener("focus",e._windowFocusListener)}))}},t.prototype._removeGlobalListeners=function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bg),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bg),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,Bg),r.removeEventListener("mousedown",this._documentMousedownListener,Bg),r.removeEventListener("touchstart",this._documentTouchstartListener,Bg),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},t.\u0275prov=St({factory:function(){return new t(ae(Bu),ae(hg),ae(yl,8),ae(Fg,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Bu),ae(hg),ae(yl,8),ae(Fg,8))},t}();function zg(t){return t.composedPath?t.composedPath()[0]:t.target}var Hg=function(){function t(t,e){this._platform=t,this._document=e}return t.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},t.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}},t.\u0275prov=St({factory:function(){return new t(ae(hg),ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(hg),ae(yl))},t}(),Wg=function(){function t(t){t._applyBodyHighContrastModeCssClasses()}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(Hg))},imports:[[fg,Cg]]}),t}(),Gg=new Jt("cdk-dir-doc",{providedIn:"root",factory:function(){return se(yl)}}),qg=function(){function t(t){if(this.value="ltr",this.change=new Kc,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.\u0275prov=St({factory:function(){return new t(ae(Gg,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Gg,8))},t}(),Zg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),Qg=new lc("9.2.4");function Yg(){return et(1)}function Kg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Yg()(Nm.apply(void 0,t))}function Jg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return L(n)?(t.pop(),function(e){return Kg(t,e,n)}):function(e){return Kg(t,e)}}var Xg=["*",[["mat-option"],["ng-container"]]],$g=["*","mat-option, ng-container"];function tv(t,e){if(1&t&&Qa(0,"mat-pseudo-checkbox",3),2&t){var n=os();Wa("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var ev=["*"],nv=new lc("9.2.4"),rv=new Jt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),iv=function(){function t(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._getDocument=function(){var t=this._document||document;return"object"==typeof t&&t?t:null},t.prototype._getWindow=function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null},t.prototype._checksAreEnabled=function(){return Vr()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var r=getComputedStyle(n);r&&"none"!==r.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"),e.body.removeChild(n)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&nv.full!==Qg.full&&console.warn("The Angular Material version ("+nv.full+") does not match the Angular CDK version ("+Qg.full+").\nPlease ensure the versions of these two packages exactly match.")},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(Hg),ae(rv,8),ae(yl,8))},imports:[[Zg],Zg]}),t}();function ov(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,c(e))||this;return r._disabled=!1,r}return i(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=ig(t)},enumerable:!0,configurable:!0}),e}(t)}function av(t,e){return function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,c(n))||this;return i.color=e,i}return i(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function sv(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,c(e))||this;return r._disableRipple=!1,r}return i(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=ig(t)},enumerable:!0,configurable:!0}),e}(t)}function cv(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,c(n))||this;return i._tabIndex=e,i}return i(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}function uv(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,c(e))||this;return r.errorState=!1,r.stateChanges=new D,r}return i(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())},e}(t)}var lv=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.\u0275prov=St({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),dv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv],iv]}),t}(),pv=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),hv={enterDuration:450,exitDuration:400},fv=vg({passive:!0}),mv=["mousedown","touchstart"],gv=["mouseup","mouseleave","touchend","touchcancel"],vv=function(){function t(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=cg(n))}return t.prototype.fadeInRipple=function(t,e,n){var r=this;void 0===n&&(n={});var i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=o(o({},hv),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var s=n.radius||function(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,i),c=t-i.left,u=e-i.top,l=a.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=c-s+"px",d.style.top=u-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=l+"ms",this._containerElement.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),d.style.transform="scale(1)";var p=new pv(this,d,n);return p.state=0,this._activeRipples.add(p),n.persistent||(this._mostRecentTransientRipple=p),this._runTimeoutOutsideZone((function(){var t=p===r._mostRecentTransientRipple;p.state=1,n.persistent||t&&r._isPointerDown||p.fadeOut()}),l),p},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,r=o(o({},hv),t.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),r.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))},t.prototype.setupTriggerEvents=function(t){var e=cg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(mv))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(gv),this._pointerUpEventsRegistered=!0)},t.prototype._onMousedown=function(t){var e=jg(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},t.prototype._onTouchStart=function(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}},t.prototype._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))},t.prototype._runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))},t.prototype._registerEvents=function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,fv)}))}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&(mv.forEach((function(e){t._triggerElement.removeEventListener(e,t,fv)})),this._pointerUpEventsRegistered&&gv.forEach((function(e){t._triggerElement.removeEventListener(e,t,fv)})))},t}(),yv=new Jt("mat-ripple-global-options"),bv=function(){function t(t,e,n,r,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new vv(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:o(o(o({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,o(o({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,o(o({},this.rippleConfig),t))},t.\u0275fac=function(e){return new(e||t)(Ua(rc),Ua(Bu),Ua(hg),Ua(yv,8),Ua(Am,8))},t.\u0275dir=Ae({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&bs("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),_v=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv,fg],iv]}),t}(),wv=function(){function t(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}return t.\u0275fac=function(e){return new(e||t)(Ua(Am,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&bs("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),Sv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),Cv=0,Ov=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+Cv++,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=xe({type:e,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(ja("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),bs("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[Ls],ngContentSelectors:$g,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(ss(Xg),qa(0,"label",0),Ms(1),cs(2),Za(),cs(3,1)),2&t&&(Wa("id",e._labelId),Di(1),Is("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0});var n=wr(e);return e}(ov(function(){return function(){}}())),xv=0,Ev=function(){return function(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}}(),kv=new Jt("MAT_OPTION_PARENT_COMPONENT"),Pv=function(){function t(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+xv++,this.onSelectionChange=new Kc,this._stateChanges=new D}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){13!==t.keyCode&&32!==t.keyCode||Lm(t)||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getAriaSelected=function(){return this.selected||!this.multiple&&null},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new Ev(this,t))},t.\u0275fac=function(e){return new(e||t)(Ua(rc),Ua(ca),Ua(kv,8),Ua(Ov,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ts("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(Rs("id",e.id),ja("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),bs("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:ev,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(ss(),Ba(0,tv,1,2,"mat-pseudo-checkbox",0),qa(1,"span",1),cs(2),Za(),Qa(3,"div",2)),2&t&&(Wa("ngIf",e.multiple),Di(3),Wa("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Wl,bv,wv],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function Tv(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;a<t+1;a++)r[a].group&&r[a].group===i[o]&&o++;return o}return 0}var Mv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[_v,nd,Sv]]}),t}(),Av=new Jt("mat-label-global-options"),Iv=0,Rv=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;if(a._ngZone=e,a._elementRef=n,a._ariaDescriber=r,a._renderer=i,a._animationMode=o,a._hasContent=!1,a._color="primary",a._overlap=!0,a.position="above after",a.size="medium",a._id=Iv++,Vr()){var s=n.nativeElement;if(s.nodeType!==s.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}return a}return i(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._setColor(t),this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._overlap},set:function(t){this._overlap=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden=ig(t)},enumerable:!0,configurable:!0}),e.prototype.isAbove=function(){return-1===this.position.indexOf("below")},e.prototype.isAfter=function(){return-1===this.position.indexOf("before")},e.prototype.ngOnChanges=function(t){var e=t.content;if(e){var n=e.currentValue;this._hasContent=null!=n&&(""+n).trim().length>0,this._updateTextContent()}},e.prototype.ngOnDestroy=function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))},e.prototype.getBadgeElement=function(){return this._badgeElement},e.prototype._updateTextContent=function(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement},e.prototype._createBadgeElement=function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t.classList.add("mat-badge-active")}))})):t.classList.add("mat-badge-active"),t},e.prototype._updateHostAriaDescription=function(t,e){var n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)},e.prototype._setColor=function(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))},e.prototype._clearExistingBadges=function(t){for(var e=this._elementRef.nativeElement,n=e.children.length;n--;){var r=e.children[n];r.classList.contains(t)&&e.removeChild(r)}},e.\u0275fac=function(t){return new(t||e)(Ua(Bu),Ua(rc),Ua(Pg),Ua(sc),Ua(Am,8))},e.\u0275dir=Ae({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&bs("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],position:["matBadgePosition","position"],content:["matBadge","content"],size:["matBadgeSize","size"]},features:[Ls,zs]}),e}(ov(function(){return function(){}}())),Dv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[Wg,iv],iv]}),t}(),Nv=["mat-button",""],Lv=["*"],Vv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],jv=function(t){function e(e,n,r){var i,o,s=t.call(this,e)||this;s._focusMonitor=n,s._animationMode=r,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");try{for(var c=a(Vv),u=c.next();!u.done;u=c.next()){var l=u.value;s._hasHostAttributes(l)&&s._getHostElement().classList.add(l)}}catch(d){i={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return e.nativeElement.classList.add("mat-button-base"),s._focusMonitor.monitor(s._elementRef,!0),s.isRoundButton&&(s.color="accent"),s}return i(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._getHostElement(),t,e)},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.some((function(e){return t._getHostElement().hasAttribute(e)}))},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(Ug),Ua(Am,8))},e.\u0275cmp=xe({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(t,e){var n;1&t&&uu(bv,!0),2&t&&su(n=fu())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(ja("disabled",e.disabled||null),bs("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Ls],attrs:Nv,ngContentSelectors:Lv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(ss(),qa(0,"span",0),cs(1),Za(),Qa(2,"div",1),Qa(3,"div",2)),2&t&&(Di(2),bs("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Wa("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[bv],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),e}(av(ov(sv(function(){return function(t){this._elementRef=t}}())))),Fv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[_v,iv],iv]}),t}(),Bv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv],iv]}),t}();function Uv(t,e,n,r){return p(n)&&(r=n,n=void 0),r?Uv(t,e,n).pipe(q((function(t){return l(t)?r.apply(void 0,t):r(t)}))):new T((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),a=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,d=e.length;l<d;l++)t(e[l],n,r,i,o)}i.add(a)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)}))}function zv(t,e){return function(n){return n.lift(new Hv(t,e))}}var Hv=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Wv(t,this.compare,this.keySelector))},t}(),Wv=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return v(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(C),Gv=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new qv(t,this.durationSelector))},t}(),qv=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return v(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=W(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(G);function Zv(t){return!l(t)&&t-parseFloat(t)+1>=0}function Qv(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Yv(t,e){return void 0===e&&(e=Hm),n=function(){return function(t,e,n){void 0===t&&(t=0);var r=-1;return Zv(e)?r=Number(e)<1?1:Number(e):L(e)&&(n=e),L(n)||(n=Hm),new T((function(e){var i=Zv(t)?t:+t-n.now();return n.schedule(Qv,i,{index:0,period:r,subscriber:e})}))}(t,e)},function(t){return t.lift(new Gv(n))};var n}function Kv(t){return function(e){return e.lift(new Jv(t))}}var Jv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Xv(t),r=W(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Xv=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return v(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(G);function $v(t,e){return"function"==typeof e?function(n){return n.pipe($v((function(n,r){return K(t(n,r)).pipe(q((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new ty(t))}}var ty=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new ey(t,this.project))},t}(),ey=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return v(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new V(this,e,n),o=this.destination;o.add(i),this.innerSubscription=W(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(G);function ny(t,e){return new T(e?function(n){return e.schedule(ry,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ry(t){t.subscriber.error(t.error)}var iy=function(){function t(t,e,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new D,e&&e.length&&(t?e.forEach((function(t){return r._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach((function(e){return t._markSelected(e)})),this._emitChangeEvent()},t.prototype.deselect=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach((function(e){return t._unmarkSelected(e)})),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._multiple&&this.selected&&this._selected.sort(t)},t.prototype.isMultipleSelection=function(){return this._multiple},t.prototype._emitChangeEvent=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=[])},t.prototype._markSelected=function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach((function(e){return t._unmarkSelected(e)}))},t.prototype._verifyValueAssignment=function(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),oy=function(){function t(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new D,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return t.prototype.register=function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?new T((function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(Yv(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Nm()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Qm((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)})),n},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Uv(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.\u0275prov=St({factory:function(){return new t(ae(Bu),ae(hg),ae(yl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Bu),ae(hg),ae(yl,8))},t}(),ay=function(){function t(t,e,n,r){var i=this;this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=r,this._destroyed=new D,this._elementScrolled=new T((function(t){return i.ngZone.runOutsideAngular((function(){return Uv(i.elementRef.nativeElement,"scroll").pipe(Kv(i._destroyed)).subscribe(t)}))}))}return t.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)},t.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()},t.prototype.elementScrolled=function(){return this._elementScrolled},t.prototype.getElementRef=function(){return this.elementRef},t.prototype.scrollTo=function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=yg()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==yg()?t.left=t.right:1==yg()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)},t.prototype._applyScrollToOptions=function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))},t.prototype.measureScrollOffset=function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==yg()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==yg()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft},t.\u0275fac=function(e){return new(e||t)(Ua(rc),Ua(oy),Ua(Bu),Ua(qg,8))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),sy=function(){function t(t,e,n){var r=this;this._platform=t,this._document=n,e.runOutsideAngular((function(){var e=r._getWindow();r._change=t.isBrowser?rt(Uv(e,"resize"),Uv(e,"orientationchange")):Nm(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Yv(t)):this._change},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._updateViewportSize=function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}},t.\u0275prov=St({factory:function(){return new t(ae(hg),ae(Bu),ae(yl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(hg),ae(Bu),ae(yl,8))},t}(),cy=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),uy=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[Zg,fg,cy],Zg,cy]}),t}();function ly(){throw Error("Host already has a portal attached")}var dy=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&ly(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),py=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=r,o.componentFactoryResolver=i,o}return i(e,t),e}(dy),hy=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,i.context=r,i}return i(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(dy),fy=function(t){function e(e){var n=t.call(this)||this;return n.element=e instanceof rc?e.nativeElement:e,n}return i(e,t),e}(dy),my=function(){function t(){this._isDisposed=!1,this.attachDomPortal=null}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ly(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof py?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof hy?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof fy?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),gy=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a.outletElement=e,a._componentFactoryResolver=n,a._appRef=r,a._defaultInjector=i,a.attachDomPortal=function(e){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=e.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=a._document.createComment("dom-portal");n.parentNode.insertBefore(r,n),a.outletElement.appendChild(n),t.prototype.setDisposeFn.call(a,(function(){r.parentNode&&r.parentNode.replaceChild(n,r)}))},a._document=o,a}return i(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(r);-1!==t&&n.remove(t)})),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(my),vy=function(t){function e(e,n,r){var i=t.call(this)||this;return i._componentFactoryResolver=e,i._viewContainerRef=n,i._isInitialized=!1,i.attached=new Kc,i.attachDomPortal=function(e){if(!i._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=e.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=i._document.createComment("dom-portal");e.setAttachedHost(i),n.parentNode.insertBefore(r,n),i._getRootNode().appendChild(n),t.prototype.setDisposeFn.call(i,(function(){r.parentNode&&r.parentNode.replaceChild(n,r)}))},i._document=r,i}return i(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),t.prototype.setDisposeFn.call(this,(function(){return i.destroy()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,(function(){return n._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e.prototype._getRootNode=function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode},e.\u0275fac=function(t){return new(t||e)(Ua(nc),Ua(Tc),Ua(yl))},e.\u0275dir=Ae({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ls]}),e}(my),yy=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)}}),t}(),by=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}(),_y=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=sg(-this._previousScrollPosition.left),t.style.top=sg(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=r,n.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function wy(){return Error("Scroll strategy has already been attached.")}var Sy=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run((function(){return i._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw wy();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Cy=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function Oy(t,e){return e.some((function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right}))}function xy(t,e){return e.some((function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}))}var Ey=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw wy();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;Oy(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),ky=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Cy},this.close=function(t){return new Sy(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new _y(i._viewportRuler,i._document)},this.reposition=function(t){return new Ey(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.\u0275prov=St({factory:function(){return new t(ae(oy),ae(sy),ae(Bu),ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(oy),ae(sy),ae(Bu),ae(yl))},t}(),Py=function(){return function(t){var e,n;if(this.scrollStrategy=new Cy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){var r=Object.keys(t);try{for(var i=a(r),o=i.next();!o.done;o=i.next()){var s=o.value;void 0!==t[s]&&(this[s]=t[s])}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}}}(),Ty=function(){return function(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),My=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function Ay(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Iy(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Ry=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEvents.observers.length>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.\u0275prov=St({factory:function(){return new t(ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(yl))},t}(),Dy=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Ny=function(){function t(t,e){this._platform=e,this._document=t}return t.prototype.ngOnDestroy=function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||Dy)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);var r=this._document.createElement("div");r.classList.add("cdk-overlay-container"),Dy?r.setAttribute("platform","test"):t||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r},t.\u0275prov=St({factory:function(){return new t(ae(yl),ae(hg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(yl),ae(hg))},t}(),Ly=function(){function t(t,e,n,r,i,o,a,s){var c=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=a,this._location=s,this._backdropElement=null,this._backdropClick=new D,this._attachments=new D,this._detachments=new D,this._locationChanges=f.EMPTY,this._backdropClickHandler=function(t){return c._backdropClick.next(t)},this._keydownEvents=new D,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe((function(){e.hasAttached()&&e.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return e.dispose()}))),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},t.prototype.updatePositionStrategy=function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))},t.prototype.updateSize=function(t){this._config=o(o({},this._config),t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=o(o({},this._config),{direction:t}),this._updateElementDirection()},t.prototype.addPanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!0)},t.prototype.removePanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!1)},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype.updateScrollStrategy=function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){if(this._pane){var t=this._pane.style;t.width=sg(this._config.width),t.height=sg(this._config.height),t.minWidth=sg(this._config.minWidth),t.minHeight=sg(this._config.minHeight),t.maxWidth=sg(this._config.maxWidth),t.maxHeight=sg(this._config.maxHeight)}},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;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(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n,r=function(){e&&(e.removeEventListener("click",t._backdropClickHandler),e.removeEventListener("transitionend",r),e.parentNode&&e.parentNode.removeChild(e)),t._backdropElement==e&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(e,t._config.backdropClass,!1),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){e.addEventListener("transitionend",r)})),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular((function(){return setTimeout(r,500)}))}},t.prototype._toggleClasses=function(t,e,n){var r=t.classList;ag(e).forEach((function(t){t&&(n?r.add(t):r.remove(t))}))},t.prototype._detachContentWhenStable=function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._ngZone.onStable.asObservable().pipe(Kv(rt(t._attachments,t._detachments))).subscribe((function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())}))}))},t.prototype._disposeScrollStrategy=function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())},t}(),Vy=/([A-Za-z%]+)$/,jy=function(){function t(t,e,n,r,i){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i,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 D,this._resizeSubscription=f.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){e._isInitialRender=!0,e.apply()}))},t.prototype.apply=function(){var t,e,n,r;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 i,o=this._originRect,s=this._overlayRect,c=this._viewportRect,u=[];try{for(var l=a(this._preferredPositions),d=l.next();!d.done;d=l.next()){var p=d.value,h=this._getOriginPoint(o,p),f=this._getOverlayPoint(h,s,p),m=this._getOverlayFit(f,s,c,p);if(m.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(p,h);this._canFitWithFlexibleDimensions(m,f,c)?u.push({position:p,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,p)}):(!i||i.overlayFit.visibleArea<m.visibleArea)&&(i={overlayFit:m,overlayPoint:f,originPoint:h,position:p,overlayRect:s})}}catch(S){t={error:S}}finally{try{d&&!d.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}if(u.length){var g=null,v=-1;try{for(var y=a(u),b=y.next();!b.done;b=y.next()){var _=b.value,w=_.boundingBoxRect.width*_.boundingBoxRect.height*(_.position.weight||1);w>v&&(v=w,g=_)}}catch(C){n={error:C}}finally{try{b&&!b.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return this._isPushed=!1,void this._applyPosition(g.position,g.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Fy(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var c=0-o,u=o+e.height-n.height,l=this._subtractOverflows(e.width,0-i,i+e.width-n.width),d=this._subtractOverflows(e.height,c,u),p=l*d;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:l==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=By(this._overlayRef.getConfig().minHeight),a=By(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=i)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),c=Math.max(o.top-n.top-t.y,0),u=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:r=e.width<=o.width?u||-a:t.x<this._viewportMargin?o.left-n.left-t.x:0,y:i=e.height<=o.height?c||-s:t.y<this._viewportMargin?o.top-n.top-t.y:0},{x:t.x+r,y:t.y+i}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var n=this._getScrollVisibility(),r=new My(t,n);this._positionChanges.next(r)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var i=0;i<n.length;i++)n[i].style.transformOrigin=e+" "+r}},t.prototype._calculateBoundingBoxRect=function(t,e){var n,r,i,o,a,s,c=this._viewportRect,u=this._isRtl();if("top"===e.overlayY)n=c.height-(r=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)n=c.height-(i=c.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(c.bottom-t.y+c.top,t.y),d=this._lastBoundingBoxSize.height;r=t.y-l,(n=2*l)>d&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-d/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{l=Math.min(c.right-t.x+c.left,t.x);var p=this._lastBoundingBoxSize.width;a=t.x-l,(o=2*l)>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-p/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=sg(n.height),r.top=sg(n.top),r.bottom=sg(n.bottom),r.width=sg(n.width),r.left=sg(n.left),r.right=sg(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=sg(i)),o&&(r.maxWidth=sg(o))}this._lastBoundingBoxSize=n,Fy(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){Fy(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Fy(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();Fy(n,this._getExactOverlayY(e,t,a)),Fy(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+="translateX("+c+"px) "),u&&(s+="translateY("+u+"px)"),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=sg(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=sg(o.maxWidth):i&&(n.maxWidth="")),Fy(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=sg(i.y),r},t.prototype._getExactOverlayX=function(t,e,n){var r={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=sg(i.x),r},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:xy(t,n),isOriginOutsideView:Oy(t,n),isOverlayClipped:xy(e,n),isOverlayOutsideView:Oy(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(t,e){return t-Math.max(e,0)}),t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getDirection()},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(t){Iy("originX",t.originX),Ay("originY",t.originY),Iy("overlayX",t.overlayX),Ay("overlayY",t.overlayY)}))},t.prototype._addPanelClasses=function(t){var e=this;this._pane&&ag(t).forEach((function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))}))},t.prototype._clearPanelClasses=function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach((function(e){t._pane.classList.remove(e)})),this._appliedPanelClasses=[])},t.prototype._getOriginRect=function(){var t=this._origin;if(t instanceof rc)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}},t}();function Fy(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function By(t){if("number"!=typeof t&&null!=t){var e=s(t.split(Vy),2),n=e[1];return n&&"px"!==n?null:parseFloat(e[0])}return t||null}var Uy=function(){function t(t,e,n,r,i,o,a){this._preferredPositions=[],this._positionStrategy=new jy(n,r,i,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,e,n,r){var i=new Ty(t,e,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),zy=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==i&&"100vh"!==i||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}},t.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},t}(),Hy=function(){function t(t,e,n,r){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=r}return t.prototype.global=function(){return new zy},t.prototype.connectedTo=function(t,e,n){return new Uy(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.prototype.flexibleConnectedTo=function(t){return new jy(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.\u0275prov=St({factory:function(){return new t(ae(sy),ae(yl),ae(hg),ae(Ny))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(sy),ae(yl),ae(hg),ae(Ny))},t}(),Wy=0,Gy=function(){function t(t,e,n,r,i,o,a,s,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=a,this._document=s,this._directionality=c,this._location=u}return t.prototype.create=function(t){var e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new Py(t);return i.direction=i.direction||this._directionality.value,new Ly(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+Wy++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(ol)),new gy(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)},t.\u0275fac=function(e){return new(e||t)(ae(ky),ae(Ny),ae(nc),ae(Hy),ae(Ry),ae(Oa),ae(Bu),ae(yl),ae(qg),ae(Rl,8))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),qy=[{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"}],Zy=new Jt("cdk-connected-overlay-scroll-strategy"),Qy=function(){function t(t){this.elementRef=t}return t.\u0275fac=function(e){return new(e||t)(Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Yy=function(){function t(t,e,n,r,i){this._overlay=t,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=f.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Kc,this.positionChange=new Kc,this.attach=new Kc,this.detach=new Kc,this.overlayKeydown=new Kc,this._templatePortal=new hy(e,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lockPosition",{get:function(){return this._lockPosition},set:function(t){this._lockPosition=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flexibleDimensions",{get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"growAfterOpen",{get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"push",{get:function(){return this._push},set:function(t){this._push=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()},t.prototype.ngOnChanges=function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){var t=this;this.positions&&this.positions.length||(this.positions=qy),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||Lm(e)||(e.preventDefault(),t._detachOverlay())}))},t.prototype._buildConfig=function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Py({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e},t.prototype._updatePositionStrategy=function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)},t.prototype._createPositionStrategy=function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e},t.prototype._attachOverlay=function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Ua(Gy),Ua(kc),Ua(Tc),Ua(Zy),Ua(qg,8))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[zs]}),t}(),Ky={provide:Zy,deps:[Gy],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Jy=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[Gy,Ky],imports:[[Zg,yy,uy],uy]}),t}();function Xy(t){return new T((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?K(n):$m()).subscribe(e)}))}function $y(t,e){}var tb=function(){return function(){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}}(),eb={dialogContainer:dh("dialogContainer",[mh("void, exit",fh({opacity:0,transform:"scale(0.7)"})),mh("enter",fh({transform:"none"})),vh("* => enter",ph("150ms cubic-bezier(0, 0, 0.2, 1)",fh({transform:"none",opacity:1}))),vh("* => void, * => exit",ph("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",fh({opacity:0})))])};function nb(){throw Error("Attempting to attach dialog content after content is already attached")}var rb=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=r,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Kc,a.attachDomPortal=function(t){return a._portalOutlet.hasAttached()&&nb(),a._setupFocusTrap(),a._portalOutlet.attachDomPortal(t)},a._ariaLabelledBy=o.ariaLabelledBy||null,a._document=i,a}return i(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&nb(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&nb(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._recaptureFocus=function(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()},e.prototype._trapFocus=function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()},e.prototype._setupFocusTrap=function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))},e.prototype._containsFocus=function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(Dg),Ua(ca),Ua(yl,8),Ua(tb))},e.\u0275cmp=xe({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&cu(vy,!0),2&t&&su(n=fu())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&es("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(ja("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Ds("@dialogContainer",e._state))},features:[Ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Ba(0,$y,0,0,"ng-template",0)},directives:[vy],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[eb.dialogContainer]}}),e}(my),ib=0,ob=function(){function t(t,e,n){var r=this;void 0===n&&(n="mat-dialog-"+ib++),this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new D,this._afterClosed=new D,this._beforeClosed=new D,this._state=0,e._id=n,e._animationStateChanged.pipe(Qm((function(t){return"done"===t.phaseName&&"enter"===t.toState})),tg(1)).subscribe((function(){r._afterOpened.next(),r._afterOpened.complete()})),e._animationStateChanged.pipe(Qm((function(t){return"done"===t.phaseName&&"exit"===t.toState})),tg(1)).subscribe((function(){clearTimeout(r._closeFallbackTimeout),r._finishDialogClose()})),t.detachments().subscribe((function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()})),t.keydownEvents().pipe(Qm((function(t){return 27===t.keyCode&&!r.disableClose&&!Lm(t)}))).subscribe((function(t){t.preventDefault(),r.close()})),t.backdropClick().subscribe((function(){r.disableClose?r._containerInstance._recaptureFocus():r.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Qm((function(t){return"start"===t.phaseName})),tg(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1},t.prototype.afterOpened=function(){return this._afterOpened.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype.addPanelClass=function(t){return this._overlayRef.addPanelClass(t),this},t.prototype.removePanelClass=function(t){return this._overlayRef.removePanelClass(t),this},t.prototype.getState=function(){return this._state},t.prototype._finishDialogClose=function(){this._state=2,this._overlayRef.dispose()},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),ab=new Jt("MatDialogData"),sb=new Jt("mat-dialog-default-options"),cb=new Jt("mat-dialog-scroll-strategy"),ub={provide:cb,deps:[Gy],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},lb=function(){function t(t,e,n,r,i,o,a){var s=this;this._overlay=t,this._injector=e,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new D,this._afterOpenedAtThisLevel=new D,this._ariaHiddenElements=new Map,this.afterAllClosed=Xy((function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(Jg(void 0))})),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return o(o({},e),t)}(e,this._defaultOptions||new tb)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var r=this._createOverlay(e),i=this._attachDialogContainer(r,e),a=this._attachDialogContent(t,i,r,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a},t.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},t.prototype.getDialogById=function(t){return this.openDialogs.find((function(e){return e.id===t}))},t.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new Py({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=Oa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:tb,useValue:e}]}),r=new py(rb,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(r).instance},t.prototype._attachDialogContent=function(t,e,n,r){var i=new ob(n,e,r.id);if(t instanceof kc)e.attachTemplatePortal(new hy(t,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,e),a=e.attachComponentPortal(new py(t,r.viewContainerRef,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},t.prototype._createInjector=function(t,e,n){var r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=[{provide:rb,useValue:n},{provide:ab,useValue:t.data},{provide:ob,useValue:e}];return!t.direction||r&&r.get(qg,null)||i.push({provide:qg,useValue:{value:t.direction,change:Nm()}}),Oa.create({parent:r||this._injector,providers:i})},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t.\u0275fac=function(e){return new(e||t)(ae(Gy),ae(Oa),ae(Rl,8),ae(sb,8),ae(cb),ae(t,12),ae(Ny))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),db=0,pb=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+db++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))},t.\u0275fac=function(e){return new(e||t)(Ua(ob,8),Ua(rc),Ua(lb))},t.\u0275dir=Ae({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Rs("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),hb=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[lb,ub],imports:[[Jy,yy,iv],iv]}),t}(),fb=["underline"],mb=["connectionContainer"],gb=["inputContainer"],vb=["label"];function yb(t,e){1&t&&(Ya(0),qa(1,"div",14),Qa(2,"div",15),Qa(3,"div",16),Qa(4,"div",17),Za(),qa(5,"div",18),Qa(6,"div",15),Qa(7,"div",16),Qa(8,"div",17),Za(),Ka())}function bb(t,e){1&t&&(qa(0,"div",19),cs(1,1),Za())}function _b(t,e){if(1&t&&(Ya(0),cs(1,2),qa(2,"span"),Ms(3),Za(),Ka()),2&t){var n=os(2);Di(3),As(n._control.placeholder)}}function wb(t,e){1&t&&cs(0,3,["*ngSwitchCase","true"])}function Sb(t,e){1&t&&(qa(0,"span",23),Ms(1," *"),Za())}function Cb(t,e){if(1&t){var n=Ja();qa(0,"label",20,21),ts("cdkObserveContent",(function(){return ln(n),os().updateOutlineGap()})),Ba(2,_b,4,1,"ng-container",12),Ba(3,wb,1,0,void 0,12),Ba(4,Sb,2,0,"span",22),Za()}if(2&t){var r=os();bs("mat-empty",r._control.empty&&!r._shouldAlwaysFloat)("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat)("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),Wa("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),ja("for",r._control.id)("aria-owns",r._control.id),Di(2),Wa("ngSwitchCase",!1),Di(1),Wa("ngSwitchCase",!0),Di(1),Wa("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function Ob(t,e){1&t&&(qa(0,"div",24),cs(1,4),Za())}function xb(t,e){if(1&t&&(qa(0,"div",25,26),Qa(2,"span",27),Za()),2&t){var n=os();Di(2),bs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Eb(t,e){1&t&&(qa(0,"div"),cs(1,5),Za()),2&t&&Wa("@transitionMessages",os()._subscriptAnimationState)}function kb(t,e){if(1&t&&(qa(0,"div",31),Ms(1),Za()),2&t){var n=os(2);Wa("id",n._hintLabelId),Di(1),As(n.hintLabel)}}function Pb(t,e){if(1&t&&(qa(0,"div",28),Ba(1,kb,2,2,"div",29),cs(2,6),Qa(3,"div",30),cs(4,7),Za()),2&t){var n=os();Wa("@transitionMessages",n._subscriptAnimationState),Di(1),Wa("ngIf",n.hintLabel)}}var Tb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Mb=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ab=0,Ib=function(){function t(){this.id="mat-error-"+Ab++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&ja("id",e.id)},inputs:{id:"id"}}),t}(),Rb={transitionMessages:dh("transitionMessages",[mh("enter",fh({opacity:1,transform:"translateY(0%)"})),vh("void => enter",[fh({opacity:0,transform:"translateY(-100%)"}),ph("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Db=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t}();function Nb(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var Lb=0,Vb=function(){function t(){this.align="start",this.id="mat-hint-"+Lb++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(ja("id",e.id)("align",null),bs("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),jb=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-label"]]}),t}(),Fb=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-placeholder"]]}),t}(),Bb=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matPrefix",""]]}),t}(),Ub=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matSuffix",""]]}),t}(),zb=0,Hb=av(function(){return function(t){this._elementRef=t}}(),"primary"),Wb=new Jt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Gb=new Jt("MatFormField"),qb=function(t){function e(e,n,r,i,o,a,s,c){var u=t.call(this,e)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=i,u._defaults=o,u._platform=a,u._ngZone=s,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new D,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+zb++,u._labelId="mat-form-field-label-"+zb++,u._labelOptions=r||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return i(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Jg(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Kv(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Kv(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),rt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Jg(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Jg(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Kv(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Uv(this._label.nativeElement,"transitionend").pipe(tg(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(r){if("start"===r.align){if(t||n.hintLabel)throw Nb("start");t=r}else if("end"===r.align){if(e)throw Nb("end");e=r}}))},e.prototype._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t,e,n=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&n&&n.children.length&&n.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var r=0,i=0,o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),c=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var u=o.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var l=this._getStartEnd(u),d=this._getStartEnd(n.children[0].getBoundingClientRect()),p=0;try{for(var h=a(n.children),f=h.next();!f.done;f=h.next())p+=f.value.offsetWidth}catch(g){t={error:g}}finally{try{f&&!f.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}r=Math.abs(d-l)-5,i=p>0?.75*p+10:0}for(var m=0;m<s.length;m++)s[m].style.width=r+"px";for(m=0;m<c.length;m++)c[m].style.width=i+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0},e.prototype._getStartEnd=function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left},e.prototype._isAttachedToDOM=function(){var t=this._elementRef.nativeElement;if(t.getRootNode){var e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(ca),Ua(Av,8),Ua(qg,8),Ua(Wb,8),Ua(hg),Ua(Bu),Ua(Am,8))},e.\u0275cmp=xe({type:e,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var r;1&t&&(du(n,Db,!0),pu(n,Db,!0),du(n,jb,!0),pu(n,jb,!0),du(n,Fb,!0),du(n,Ib,!0),du(n,Vb,!0),du(n,Bb,!0),du(n,Ub,!0)),2&t&&(su(r=fu())&&(e._controlNonStatic=r.first),su(r=fu())&&(e._controlStatic=r.first),su(r=fu())&&(e._labelChildNonStatic=r.first),su(r=fu())&&(e._labelChildStatic=r.first),su(r=fu())&&(e._placeholderChild=r.first),su(r=fu())&&(e._errorChildren=r),su(r=fu())&&(e._hintChildren=r),su(r=fu())&&(e._prefixChildren=r),su(r=fu())&&(e._suffixChildren=r))},viewQuery:function(t,e){var n;1&t&&(uu(fb,!0),cu(mb,!0),uu(gb,!0),uu(vb,!0)),2&t&&(su(n=fu())&&(e.underlineRef=n.first),su(n=fu())&&(e._connectionContainerRef=n.first),su(n=fu())&&(e._inputContainerRef=n.first),su(n=fu())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&bs("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[Xs([{provide:Gb,useExisting:e}]),Ls],ngContentSelectors:Mb,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(t,e){1&t&&(ss(Tb),qa(0,"div",0),qa(1,"div",1,2),ts("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),Ba(3,yb,9,0,"ng-container",3),Ba(4,bb,2,0,"div",4),qa(5,"div",5,6),cs(7),qa(8,"span",7),Ba(9,Cb,5,16,"label",8),Za(),Za(),Ba(10,Ob,2,0,"div",9),Za(),Ba(11,xb,3,4,"div",10),qa(12,"div",11),Ba(13,Eb,2,1,"div",12),Ba(14,Pb,5,2,"div",13),Za(),Za()),2&t&&(Di(3),Wa("ngIf","outline"==e.appearance),Di(1),Wa("ngIf",e._prefixChildren.length),Di(5),Wa("ngIf",e._hasFloatingLabel()),Di(1),Wa("ngIf",e._suffixChildren.length),Di(1),Wa("ngIf","outline"!=e.appearance),Di(1),Wa("ngSwitch",e._getDisplayedMessages()),Di(1),Wa("ngSwitchCase","error"),Di(1),Wa("ngSwitchCase","hint"))},directives:[Wl,Ql,Yl,Sg],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Rb.transitionMessages]},changeDetection:0}),e}(Hb),Zb=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[nd,iv,Cg],iv]}),t}(),Qb=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[dv,iv],dv,iv]}),t}();function Yb(t){return function(e){var n=new Kb(t),r=e.lift(n);return n.caught=r}}var Kb=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Jb(t,this.selector,this.caught))},t}(),Jb=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return v(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new V(this,void 0,void 0);this.add(r);var i=W(this,n,void 0,void 0,r);i!==r&&this.add(i)}},e}(G);function Xb(t){return function(e){return e.lift(new $b(t))}}var $b=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new t_(t,this.callback))},t}(),t_=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new f(n)),r}return v(e,t),e}(C);function e_(t,e){return J(t,e,1)}var n_=function(){return function(){}}(),r_=function(){return function(){}}(),i_=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach((function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,c(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))},t}(),o_=function(){function t(){}return t.prototype.encodeKey=function(t){return a_(t)},t.prototype.encodeValue=function(t){return a_(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function a_(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var s_=function(){function t(t){var e,n,r,i=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new o_,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),i=s(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=i[0],a=i[1],c=r.get(o)||[];c.push(a),r.set(o,c)})),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function c_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function u_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function l_(t){return"undefined"!=typeof FormData&&t instanceof FormData}var d_=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new i_),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new s_,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:c_(this.body)||u_(this.body)||l_(this.body)||"string"==typeof this.body?this.body:this.body instanceof s_?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body||l_(this.body)?null:u_(this.body)?this.body.type||null:c_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof s_?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),u)),new t(n,r,o,{params:u,headers:c,reportProgress:s,responseType:i,withCredentials:a})},t}(),p_=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),h_=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new i_,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),f_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=p_.ResponseHeader,n}return i(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(h_),m_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=p_.Response,n.body=void 0!==e.body?e.body:null,n}return i(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(h_),g_=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return i(e,t),e}(h_);function v_(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var y_=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof d_)r=t;else{var o;o=n.headers instanceof i_?n.headers:new i_(n.headers);var a=void 0;n.params&&(a=n.params instanceof s_?n.params:new s_({fromObject:n.params})),r=new d_(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=Nm(r).pipe(e_((function(t){return i.handler.handle(t)})));if(t instanceof d_||"events"===n.observe)return s;var c=s.pipe(Qm((function(t){return t instanceof m_})));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(q((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return c.pipe(q((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return c.pipe(q((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return c.pipe(q((function(t){return t.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new s_).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,v_(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,v_(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,v_(n,e))},t.\u0275fac=function(e){return new(e||t)(ae(n_))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),b_=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),__=new Jt("HTTP_INTERCEPTORS"),w_=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),S_=/^\)\]\}',?\n/,C_=function(){return function(){}}(),O_=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),x_=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new T((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new i_(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new f_({headers:i,status:e,statusText:n,url:o})},u=function(){var e=c(),i=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var d=u;u=u.replace(S_,"");try{u=""!==u?JSON.parse(u):null}catch(p){u=d,l&&(l=!1,u={error:p,text:u})}}l?(n.next(new m_({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new g_({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,i=new g_({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},d=!1,p=function(e){d||(n.next(c()),d=!0);var i={type:p_.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},h=function(t){var e={type:p_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",p),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:p_.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}}))},t.\u0275fac=function(e){return new(e||t)(ae(C_))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),E_=new Jt("XSRF_COOKIE_NAME"),k_=new Jt("XSRF_HEADER_NAME"),P_=function(){return function(){}}(),T_=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fl(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(ae(yl),ae(Ou),ae(E_))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),M_=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(ae(P_),ae(k_))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),A_=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(__,[]);this.chain=e.reduceRight((function(t,e){return new b_(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(ae(r_),ae(Oa))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),I_=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:M_,useClass:w_}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:E_,useValue:t.cookieName}:[],t.headerName?{provide:k_,useValue:t.headerName}:[]]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[M_,{provide:__,useExisting:M_,multi:!0},{provide:P_,useClass:T_},{provide:E_,useValue:"XSRF-TOKEN"},{provide:k_,useValue:"X-XSRF-TOKEN"}]}),t}(),R_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[y_,{provide:n_,useClass:A_},x_,{provide:r_,useExisting:x_},O_,{provide:C_,useExisting:O_}],imports:[[I_.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),D_=["*"];function N_(t){return Error('Unable to find icon with the name "'+t+'"')}function L_(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function V_(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}var j_=function(){return function(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}(),F_=function(){function t(t,e,n,r){this._httpClient=t,this._sanitizer=e,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)},t.prototype.addSvgIconLiteral=function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)},t.prototype.addSvgIconInNamespace=function(t,e,n,r){return this._addSvgIconConfig(t,e,new j_(n,r))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n,r){var i=this._sanitizer.sanitize(ai.HTML,n);if(!i)throw V_(n);var o=this._createSvgElementForSingleIcon(i,r);return this._addSvgIconConfig(t,e,new j_(o,r))},t.prototype.addSvgIconSet=function(t,e){return this.addSvgIconSetInNamespace("",t,e)},t.prototype.addSvgIconSetLiteral=function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)},t.prototype.addSvgIconSetInNamespace=function(t,e,n){return this._addSvgIconSetConfig(t,new j_(e,n))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e,n){var r=this._sanitizer.sanitize(ai.HTML,e);if(!r)throw V_(e);var i=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new j_(i,n))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(ai.RESOURCE_URL,t);if(!n)throw L_(t);var r=this._cachedIconsByUrl.get(n);return r?Nm(B_(r)):this._loadSvgIconFromConfig(new j_(t)).pipe(jm((function(t){return e._cachedIconsByUrl.set(n,t)})),q((function(t){return B_(t)})))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=U_(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):ny(N_(n))},t.prototype.ngOnDestroy=function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()},t.prototype._getSvgFromConfig=function(t){return t.svgElement?Nm(B_(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(jm((function(e){return t.svgElement=e})),q((function(t){return B_(t)})))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);return r?Nm(r):Vd(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(Yb((function(e){var r="Loading icon set URL: "+n._sanitizer.sanitize(ai.RESOURCE_URL,t.url)+" failed: "+e.message;return n._errorHandler?n._errorHandler.handleError(new Error(r)):console.error(r),Nm(null)})))}))).pipe(q((function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw N_(t);return r})))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t,r.options);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(q((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Nm(t.svgElement):this._fetchUrl(t.url).pipe(q((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))},t.prototype._createSvgElementForSingleIcon=function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n},t.prototype._extractSvgIconFromSet=function(t,e,n){var r=t.querySelector('[id="'+e+'"]');if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(i),this._setSvgAttributes(o,n)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=t.attributes,r=0;r<n.length;r++){var i=n[r],o=i.name;"id"!==o&&e.setAttribute(o,i.value)}for(r=0;r<t.childNodes.length;r++)t.childNodes[r].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[r].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t},t.prototype._fetchUrl=function(t){var e=this;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==t)throw Error('Cannot fetch icon from URL "'+t+'".');var n=this._sanitizer.sanitize(ai.RESOURCE_URL,t);if(!n)throw L_(t);var r=this._inProgressUrlFetches.get(n);if(r)return r;var i=this._httpClient.get(n,{responseType:"text"}).pipe(Xb((function(){return e._inProgressUrlFetches.delete(n)})),dt());return this._inProgressUrlFetches.set(n,i),i},t.prototype._addSvgIconConfig=function(t,e,n){return this._svgIconConfigs.set(U_(t,e),n),this},t.prototype._addSvgIconSetConfig=function(t,e){var n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this},t.\u0275prov=St({factory:function(){return new t(ae(y_,8),ae(Id),ae(yl,8),ae(xr,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(y_,8),ae(Id),ae(yl,8),ae(xr,8))},t}();function B_(t){return t.cloneNode(!0)}function U_(t,e){return t+":"+e}var z_=av(function(){return function(t){this._elementRef=t}}()),H_=new Jt("mat-icon-location",{providedIn:"root",factory:function(){var t=se(yl),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),W_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],G_=W_.map((function(t){return"["+t+"]"})).join(", "),q_=/^url\(['"]?#(.*?)['"]?\)$/,Z_=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a._iconRegistry=n,a._location=i,a._errorHandler=o,a._inline=!1,a._currentIconFetch=f.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),a}return i(e,t),Object.defineProperty(e.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSet",{get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),e.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},e.prototype.ngOnChanges=function(t){var e=this,n=t.svgIcon;if(n)if(this._currentIconFetch.unsubscribe(),this.svgIcon){var r=s(this._splitIconName(this.svgIcon),2),i=r[0],o=r[1];this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(tg(1)).subscribe((function(t){return e._setSvgElement(t)}),(function(t){var n="Error retrieving icon "+i+":"+o+"! "+t.message;e._errorHandler?e._errorHandler.handleError(new Error(n)):console.error(n)}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngAfterViewChecked=function(){var t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){var e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}},e.prototype.ngOnDestroy=function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()},e.prototype._usingFontIcon=function(){return!this.svgIcon},e.prototype._setSvgElement=function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),n=0;n<e.length;n++)e[n].textContent+=" ";if(this._location){var r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r)}this._elementRef.nativeElement.appendChild(t)},e.prototype._clearSvgElement=function(){var t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){var n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}},e.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},e.prototype._cleanupFontValue=function(t){return"string"==typeof t?t.trim().split(" ")[0]:t},e.prototype._prependPathToReferences=function(t){var e=this._elementsWithExternalReferences;e&&e.forEach((function(e,n){e.forEach((function(e){n.setAttribute(e.name,"url('"+t+"#"+e.value+"')")}))}))},e.prototype._cacheChildrenWithExternalReferences=function(t){for(var e=t.querySelectorAll(G_),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,r=function(t){W_.forEach((function(r){var i=e[t],o=i.getAttribute(r),a=o?o.match(q_):null;if(a){var s=n.get(i);s||n.set(i,s=[]),s.push({name:r,value:a[1]})}}))},i=0;i<e.length;i++)r(i)},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(F_),za("aria-hidden"),Ua(H_,8),Ua(xr,8))},e.\u0275cmp=xe({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&bs("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Ls,zs],ngContentSelectors:D_,decls:1,vars:0,template:function(t,e){1&t&&(ss(),cs(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}(z_),Q_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv],iv]}),t}(),Y_=vg({passive:!0}),K_=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return Xm;var n=cg(t),r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new D,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,Y_),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",a,Y_)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=cg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.\u0275prov=St({factory:function(){return new t(ae(hg),ae(Bu))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(hg),ae(Bu))},t}(),J_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[fg]]}),t}(),X_=new Jt("MAT_INPUT_VALUE_ACCESSOR"),$_=["button","checkbox","file","hidden","image","radio","range","reset","submit"],tw=0,ew=function(t){function e(e,n,r,i,o,a,s,c,u){var l=t.call(this,a,i,o,r)||this;l._elementRef=e,l._platform=n,l.ngControl=r,l._autofillMonitor=c,l._uid="mat-input-"+tw++,l.focused=!1,l.stateChanges=new D,l.controlType="mat-input",l.autofilled=!1,l._disabled=!1,l._required=!1,l._type="text",l._readonly=!1,l._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return gg().has(t)}));var d=l._elementRef.nativeElement,p=d.nodeName.toLowerCase();return l._inputValueAccessor=s||d,l._previousNativeValue=l.value,l.id=l.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),l._isServer=!l._platform.isBrowser,l._isNativeSelect="select"===p,l._isTextarea="textarea"===p,l._isNativeSelect&&(l.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),l}return i(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=ig(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&gg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=ig(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if($_.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(hg),Ua(Qd,10),Ua(Gp,8),Ua(ih,8),Ua(lv),Ua(X_,10),Ua(K_),Ua(Bu))},e.\u0275dir=Ae({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&ts("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Rs("disabled",e.disabled)("required",e.required),ja("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),bs("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Xs([{provide:Db,useExisting:e}]),Ls,zs]}),e}(uv(function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}())),nw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[lv],imports:[[J_,Zb],J_,Zb]}),t}();function rw(t,e){if(1&t&&(Nn(),Qa(0,"circle",3)),2&t){var n=os();ys("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),ja("r",n._circleRadius)}}function iw(t,e){if(1&t&&(Nn(),Qa(0,"circle",3)),2&t){var n=os();ys("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),ja("r",n._circleRadius)}}function ow(t,e){if(1&t&&(Nn(),Qa(0,"circle",3)),2&t){var n=os();ys("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),ja("r",n._circleRadius)}}function aw(t,e){if(1&t&&(Nn(),Qa(0,"circle",3)),2&t){var n=os();ys("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),ja("r",n._circleRadius)}}var sw=av(function(){return function(t){this._elementRef=t}}(),"primary"),cw=new Jt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),uw=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i,o)||this;return a.mode="indeterminate",a}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(hg),Ua(yl,8),Ua(Am,8),Ua(cw))},e.\u0275cmp=xe({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ys("width",e.diameter,"px")("height",e.diameter,"px"),bs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Ls],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Nn(),qa(0,"svg",0),Ba(1,ow,1,9,"circle",1),Ba(2,aw,1,7,"circle",2),Za()),2&t&&(ys("width",e.diameter,"px")("height",e.diameter,"px"),Wa("ngSwitch","indeterminate"===e.mode),ja("viewBox",e._viewBox),Di(1),Wa("ngSwitchCase",!0),Di(1),Wa("ngSwitchCase",!1))},directives:[Ql,Yl],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e}(function(t){function e(n,r,i,o,a){var s=t.call(this,n)||this;s._elementRef=n,s._document=i,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=e._diameters;return c.has(i.head)||c.set(i.head,new Set([100])),s._fallbackAnimation=r.EDGE||r.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return i(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=og(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,og(t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement;this._styleRoot=bg(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation")},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),e.prototype._attachStyleNode=function(){var t=this._styleRoot,n=this._diameter,r=e._diameters,i=r.get(t);if(!i||!i.has(n)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",n+""),o.textContent=this._getAnimationText(),t.appendChild(o),i||(i=new Set,r.set(t,i)),i.add(n)}},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e._diameters=new WeakMap,e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(hg),Ua(yl,8),Ua(Am,8),Ua(cw))},e.\u0275cmp=xe({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ja("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),ys("width",e.diameter,"px")("height",e.diameter,"px"),bs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",value:"value",mode:"mode"},exportAs:["matProgressSpinner"],features:[Ls],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Nn(),qa(0,"svg",0),Ba(1,rw,1,9,"circle",1),Ba(2,iw,1,7,"circle",2),Za()),2&t&&(ys("width",e.diameter,"px")("height",e.diameter,"px"),Wa("ngSwitch","indeterminate"===e.mode),ja("viewBox",e._viewBox),Di(1),Wa("ngSwitchCase",!0),Di(1),Wa("ngSwitchCase",!1))},directives:[Ql,Yl],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e}(sw)),lw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv,nd],iv]}),t}(),dw=["trigger"],pw=["panel"];function hw(t,e){if(1&t&&(qa(0,"span",8),Ms(1),Za()),2&t){var n=os();Di(1),As(n.placeholder||"\xa0")}}function fw(t,e){if(1&t&&(qa(0,"span"),Ms(1),Za()),2&t){var n=os(2);Di(1),As(n.triggerValue||"\xa0")}}function mw(t,e){1&t&&cs(0,0,["*ngSwitchCase","true"])}function gw(t,e){1&t&&(qa(0,"span",9),Ba(1,fw,2,1,"span",10),Ba(2,mw,1,0,void 0,11),Za()),2&t&&(Wa("ngSwitch",!!os().customTrigger),Di(2),Wa("ngSwitchCase",!0))}function vw(t,e){if(1&t){var n=Ja();qa(0,"div",12),qa(1,"div",13,14),ts("@transformPanel.done",(function(t){return ln(n),os()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return ln(n),os()._handleKeydown(t)})),cs(3,1),Za(),Za()}if(2&t){var r=os();Wa("@transformPanelWrap",void 0),Di(1),i="mat-select-panel ",o=r._getPanelTheme(),a="",function(t,e,n,r){var i=un(),o=bn(2);i.firstUpdatePass&&Cs(i,null,o,!0);var a=cn();if(n!==Ti&&Va(a,o,n)){var s=i.data[In()+20];if(Ts(s,!0)&&!Ss(i,o)){var c=s.classesWithoutHost;null!==c&&(n=Rt(c,n||"")),Ga(i,s,a,n,!0)}else!function(t,e,n,r,i,o,a,s){i===Ti&&(i=ds);for(var c=0,u=0,l=0<i.length?i[0]:null,d=0<o.length?o[0]:null;null!==l||null!==d;){var p=c<i.length?i[c+1]:void 0,h=u<o.length?o[u+1]:void 0,f=null,m=void 0;l===d?(c+=2,u+=2,p!==h&&(f=d,m=h)):null===d||null!==l&&l<d?(c+=2,f=l):(u+=2,f=d,m=h),null!==f&&Es(t,e,n,r,f,m,!0,s),l=c<i.length?i[c]:null,d=u<o.length?o[u]:null}}(i,s,a,a[11],a[o+1],a[o+1]=function(t,e,n){if(null==n||""===n)return ds;var r=[],i=Ir(n);if(Array.isArray(i))for(var o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(var a in i)i.hasOwnProperty(a)&&t(r,a,i[a]);else"string"==typeof i&&e(r,i);return r}(t,e,n),0,o)}}(ve,_s,Fa(cn(),i,o,a)),ys("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),Wa("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),ja("id",r.id+"-panel")}var i,o,a}var yw=[[["mat-select-trigger"]],"*"],bw=["mat-select-trigger","*"],_w={transformPanelWrap:dh("transformPanelWrap",[vh("* => void",bh("@transformPanel",[yh()],{optional:!0}))]),transformPanel:dh("transformPanel",[mh("void",fh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),mh("showing",fh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),mh("showing-multiple",fh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),vh("void => *",ph("120ms cubic-bezier(0, 0, 0.2, 1)")),vh("* => void",ph("100ms 25ms linear",fh({opacity:0})))])},ww=0,Sw=new Jt("mat-select-scroll-strategy"),Cw=new Jt("MAT_SELECT_CONFIG"),Ow={provide:Sw,deps:[Gy],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},xw=function(){return function(t,e){this.source=t,this.value=e}}(),Ew=sv(cv(ov(uv(function(){return function(t,e,n,r,i){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}}())))),kw=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-select-trigger"]]}),t}(),Pw=function(t){function e(e,n,r,i,o,a,s,u,l,d,p,h,f,m){var g=t.call(this,o,i,s,u,d)||this;return g._viewportRuler=e,g._changeDetectorRef=n,g._ngZone=r,g._dir=a,g._parentFormField=l,g.ngControl=d,g._liveAnnouncer=f,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(t,e){return t===e},g._uid="mat-select-"+ww++,g._destroy=new D,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimatingStream=new D,g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g._disableOptionCentering=!1,g._focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=Xy((function(){var t=g.options;return t?t.changes.pipe(Jg(t),$v((function(){return rt.apply(void 0,c(t.map((function(t){return t.onSelectionChange}))))}))):g._ngZone.onStable.asObservable().pipe(tg(1),$v((function(){return g.optionSelectionChanges})))})),g.openedChange=new Kc,g._openedStream=g.openedChange.pipe(Qm((function(t){return t})),q((function(){}))),g._closedStream=g.openedChange.pipe(Qm((function(t){return!t})),q((function(){}))),g.selectionChange=new Kc,g.valueChange=new Kc,g.ngControl&&(g.ngControl.valueAccessor=g),g._scrollStrategyFactory=h,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(p)||0,g.id=g.id,m&&(null!=m.disableOptionCentering&&(g.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(g.typeaheadDebounceInterval=m.typeaheadDebounceInterval)),g}return i(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=ig(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new iy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(zv(),Kv(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Kv(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Kv(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Jg(null),Kv(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,r=13===e||32===e,i=this._keyManager;if(!i.isTyping()&&r&&!Lm(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;36===e||35===e?(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},e.prototype._handleOpenKeydown=function(t){var e=this._keyManager,n=t.keyCode,r=40===n||38===n,i=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(r&&t.altKey)t.preventDefault(),this.close();else if(i||13!==n&&32!==n||!e.activeItem||Lm(t))if(!i&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(o?t.select():t.deselect())}))}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&r&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(tg(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(r){return Vr()&&console.warn(r),!1}}));return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Kv(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(Kv(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))},e.prototype._resetOptions=function(){var t=this,e=rt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Kv(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),rt.apply(void 0,c(this.options.map((function(t){return t._stateChanges})))).pipe(Kv(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,r){return t.sortComparator?t.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)})),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new xw(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,r=this._keyManager.activeItemIndex||0,i=Tv(r,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(r+i)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._getOptionIndex=function(t){return this.options.reduce((function(e,n,r){return void 0!==e?e:t===n?r:void 0}),void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Tv(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},e.prototype._calculateOverlayScroll=function(t,e,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*t-e+r/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var a=0-(e.left+t-(r?i:0)),s=e.right+t-n.width+(r?0:i);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);return this._disableOptionCentering?0:(r=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*r-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(Ua(sy),Ua(ca),Ua(Bu),Ua(lv),Ua(rc),Ua(qg,8),Ua(Gp,8),Ua(ih,8),Ua(Gb,8),Ua(Qd,10),za("tabindex"),Ua(Sw),Ua(Vg),Ua(Cw,8))},e.\u0275cmp=xe({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,n){var r;1&t&&(du(n,kw,!0),du(n,Pv,!0),du(n,Ov,!0)),2&t&&(su(r=fu())&&(e.customTrigger=r.first),su(r=fu())&&(e.options=r),su(r=fu())&&(e.optionGroups=r))},viewQuery:function(t,e){var n;1&t&&(uu(dw,!0),uu(pw,!0),uu(Yy,!0)),2&t&&(su(n=fu())&&(e.trigger=n.first),su(n=fu())&&(e.panel=n.first),su(n=fu())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&ts("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(ja("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),bs("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",id:"id",panelClass:"panelClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Xs([{provide:Db,useExisting:e},{provide:kv,useExisting:e}]),Ls,zs],ngContentSelectors:bw,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(ss(yw),qa(0,"div",0,1),ts("click",(function(){return e.toggle()})),qa(3,"div",2),Ba(4,hw,2,1,"span",3),Ba(5,gw,3,2,"span",4),Za(),qa(6,"div",5),Qa(7,"div",6),Za(),Za(),Ba(8,vw,4,11,"ng-template",7),ts("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=Je(an.lFrame.contextLView,1);Di(3),Wa("ngSwitch",e.empty),Di(1),Wa("ngSwitchCase",!0),Di(1),Wa("ngSwitchCase",!1),Di(3),Wa("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Qy,Ql,Yl,Yy,Kl,Bl],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[_w.transformPanelWrap,_w.transformPanel]},changeDetection:0}),e}(Ew),Tw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[Ow],imports:[[nd,Jy,Mv,iv],cy,Zb,Mv,iv]}),t}(),Mw=["*"];function Aw(t,e){if(1&t){var n=Ja();qa(0,"div",2),ts("click",(function(){return ln(n),os()._onBackdropClicked()})),Za()}2&t&&bs("mat-drawer-shown",os()._isShowingBackdrop())}function Iw(t,e){1&t&&(qa(0,"mat-drawer-content"),cs(1,2),Za())}var Rw=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Dw=["mat-drawer","mat-drawer-content","*"];function Nw(t,e){if(1&t){var n=Ja();qa(0,"div",2),ts("click",(function(){return ln(n),os()._onBackdropClicked()})),Za()}2&t&&bs("mat-drawer-shown",os()._isShowingBackdrop())}function Lw(t,e){1&t&&(qa(0,"mat-sidenav-content",3),cs(1,2),Za())}var Vw=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jw=["mat-sidenav","mat-sidenav-content","*"],Fw={transformDrawer:dh("transform",[mh("open, open-instant",fh({transform:"none",visibility:"visible"})),mh("void",fh({"box-shadow":"none",visibility:"hidden"})),vh("void => open-instant",ph("0ms")),vh("void <=> open, open-instant => void",ph("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Bw(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var Uw=new Jt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),zw=new Jt("MAT_DRAWER_CONTAINER"),Hw=function(t){function e(e,n,r,i,o){var a=t.call(this,r,i,o)||this;return a._changeDetectorRef=e,a._container=n,a}return i(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))},e.\u0275fac=function(t){return new(t||e)(Ua(ca),Ua(Nt((function(){return Gw}))),Ua(rc),Ua(oy),Ua(Bu))},e.\u0275cmp=xe({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ys("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Ls],ngContentSelectors:Mw,decls:1,vars:0,template:function(t,e){1&t&&(ss(),cs(0))},encapsulation:2,changeDetection:0}),e}(ay),Ww=function(){function t(t,e,n,r,i,o,a){var s=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=r,this._ngZone=i,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new D,this._animationEnd=new D,this._animationState="void",this.openedChange=new Kc(!0),this._destroyed=new D,this.onPositionChanged=new Kc,this._modeChanged=new D,this.openedChange.subscribe((function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._takeFocus()):s._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Uv(s._elementRef.nativeElement,"keydown").pipe(Qm((function(t){return 27===t.keyCode&&!s.disableClose&&!Lm(t)})),Kv(s._destroyed)).subscribe((function(t){return s._ngZone.run((function(){s.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(zv((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&s.openedChange.emit(s._opened)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(ig(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(Qm((function(t){return t})),q((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(Qm((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),q((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(Qm((function(t){return!t})),q((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(Qm((function(t){return t.fromState!==t.toState&&"void"===t.toState})),q((function(){})))},enumerable:!0,configurable:!0}),t.prototype._takeFocus=function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))},t.prototype._restoreFocus=function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){n.openedChange.pipe(tg(1)).subscribe((function(e){return t(e?"open":"close")}))}))},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t.prototype._updateFocusTrapState=function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)},t.prototype._animationStartListener=function(t){this._animationStarted.next(t)},t.prototype._animationDoneListener=function(t){this._animationEnd.next(t)},t.\u0275fac=function(e){return new(e||t)(Ua(rc),Ua(Dg),Ua(Ug),Ua(hg),Ua(Bu),Ua(yl,8),Ua(zw,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&es("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(ja("align",null),Ds("@transform",e._animationState),bs("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Mw,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ss(),qa(0,"div",0),cs(1),Za())},encapsulation:2,data:{animation:[Fw.transformDrawer]},changeDetection:0}),t}(),Gw=function(){function t(t,e,n,r,i,o,a){var s=this;void 0===o&&(o=!1),this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=a,this._drawers=new Xc,this.backdropClick=new Kc,this._destroyed=new D,this._doCheckSubject=new D,this._contentMargins={left:null,right:null},this._contentMarginChanges=new D,t&&t.change.pipe(Kv(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),i.change().pipe(Kv(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=o}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._allDrawers.changes.pipe(Jg(this._allDrawers),Kv(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Jg(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Wm(10),Kv(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach((function(t){return t.open()}))},t.prototype.close=function(){this._drawers.forEach((function(t){return t.close()}))},t.prototype.updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._width:"push"==this._left.mode&&(e+=r=this._left._width,n-=r)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var r;n+=r=this._right._width,e-=r}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(Qm((function(t){return t.fromState!==t.toState})),Kv(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Kv(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(Kv(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(tg(1)).subscribe((function(){e._validateDrawers()}))}))},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(Kv(rt(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))},t.prototype._setContainerClass=function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&Bw("end"),t._end=e):(null!=t._start&&Bw("start"),t._start=e)})),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)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.\u0275fac=function(e){return new(e||t)(Ua(qg,8),Ua(rc),Ua(Bu),Ua(ca),Ua(sy),Ua(Uw),Ua(Am,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var r;1&t&&(du(n,Hw,!0),du(n,Ww,!0)),2&t&&(su(r=fu())&&(e._content=r.first),su(r=fu())&&(e._allDrawers=r))},viewQuery:function(t,e){var n;1&t&&uu(Hw,!0),2&t&&su(n=fu())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&bs("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Xs([{provide:zw,useExisting:t}])],ngContentSelectors:Dw,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(ss(Rw),Ba(0,Aw,1,2,"div",0),cs(1),cs(2,1),Ba(3,Iw,2,0,"mat-drawer-content",1)),2&t&&(Wa("ngIf",e.hasBackdrop),Di(3),Wa("ngIf",!e._content))},directives:[Wl,Hw],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t}(),qw=function(t){function e(e,n,r,i,o){return t.call(this,e,n,r,i,o)||this}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(ca),Ua(Nt((function(){return Qw}))),Ua(rc),Ua(oy),Ua(Bu))},e.\u0275cmp=xe({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ys("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Ls],ngContentSelectors:Mw,decls:1,vars:0,template:function(t,e){1&t&&(ss(),cs(0))},encapsulation:2,changeDetection:0}),e}(Hw),Zw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}i(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=ig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=og(t)},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=xe({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(ja("align",null),ys("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),bs("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ls],ngContentSelectors:Mw,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ss(),qa(0,"div",0),cs(1),Za())},encapsulation:2,data:{animation:[Fw.transformDrawer]},changeDetection:0});var n=wr(e);return e}(Ww),Qw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=xe({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var r;1&t&&(du(n,qw,!0),du(n,Zw,!0)),2&t&&(su(r=fu())&&(e._content=r.first),su(r=fu())&&(e._allDrawers=r))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&bs("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Xs([{provide:zw,useExisting:e}]),Ls],ngContentSelectors:jw,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(t,e){1&t&&(ss(Vw),Ba(0,Nw,1,2,"div",0),cs(1),cs(2,1),Ba(3,Lw,2,0,"mat-sidenav-content",1)),2&t&&(Wa("ngIf",e.hasBackdrop),Di(3),Wa("ngIf",!e._content))},directives:[Wl,qw,ay],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0});var n=wr(e);return e}(Gw),Yw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[nd,iv,fg,cy],cy,iv]}),t}(),Kw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[nd,iv],iv]}),t}(),Jw=["*",[["mat-toolbar-row"]]],Xw=["*","mat-toolbar-row"],$w=av(function(){return function(t){this._elementRef=t}}()),tS=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),eS=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._document=r,i}return i(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Vr()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(hg),Ua(yl))},e.\u0275cmp=xe({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&du(n,tS,!0),2&t&&su(r=fu())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&bs("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Ls],ngContentSelectors:Xw,decls:2,vars:0,template:function(t,e){1&t&&(ss(Jw),cs(0),cs(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),e}($w),nS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[iv],iv]}),t}(),rS={};function iS(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return L(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),nt(t,r).lift(new aS(n))}var oS,aS=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new sS(t,this.resultSelector))},t}(),sS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return v(e,t),e.prototype._next=function(t){this.values.push(rS),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(W(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=this.toRespond?o[n]===rS?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(G),cS=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new uS(t,this.total))},t}(),uS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return v(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(C),lS=new Set,dS=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pS}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function(t){if(!lS.has(t))try{oS||((oS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(oS)),oS.sheet&&(oS.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),lS.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.\u0275prov=St({factory:function(){return new t(ae(hg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(hg))},t}();function pS(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var hS=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new D}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return fS(ag(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=iS(fS(ag(t)).map((function(t){return e._registerQuery(t).observable})));return(n=Kg(n.pipe(tg(1)),n.pipe((function(t){return t.lift(new cS(1))}),Wm(0)))).pipe(q((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),r={observable:new T((function(t){var r=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(r),function(){n.removeListener(r)}})).pipe(Jg(n),q((function(e){return{query:t,matches:e.matches}})),Kv(this._destroySubject)),mql:n};return this._queries.set(t,r),r},t.\u0275prov=St({factory:function(){return new t(ae(dS),ae(Bu))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(dS),ae(Bu))},t}();function fS(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var mS={tooltipState:dh("state",[mh("initial, void, hidden",fh({opacity:0,transform:"scale(0)"})),mh("visible",fh({transform:"scale(1)"})),vh("* => visible",ph("200ms cubic-bezier(0, 0, 0.2, 1)",gh([fh({opacity:0,transform:"scale(0)",offset:0}),fh({opacity:.5,transform:"scale(0.99)",offset:.5}),fh({opacity:1,transform:"scale(1)",offset:1})]))),vh("* => hidden",ph("100ms cubic-bezier(0, 0, 0.2, 1)",fh({opacity:0})))])},gS=vg({passive:!0});function vS(t){return Error('Tooltip position "'+t+'" is invalid.')}var yS=new Jt("mat-tooltip-scroll-strategy"),bS={provide:yS,deps:[Gy],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},_S=new Jt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),wS=function(){function t(t,e,n,r,i,o,a,s,c,u,l,d){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=a,this._focusMonitor=s,this._dir=u,this._defaultOptions=l,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new D,this._handleKeydown=function(t){p._isTooltipVisible()&&27===t.keyCode&&!Lm(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run((function(){return p.hide(0)})))},this._scrollStrategy=c,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),s.monitor(e).pipe(Kv(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&i.run((function(){return p.show()})):i.run((function(){return p.hide(0)}))})),i.runOutsideAngular((function(){e.nativeElement.addEventListener("keydown",p._handleKeydown)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=ig(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._setupPointerEvents()},t.prototype.ngOnDestroy=function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,n){t.removeEventListener(n,e,gS)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new py(SS,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Kv(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Kv(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Kv(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([o(o({},e.main),n.main),o(o({},e.fallback),n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw vS(n);t={originX:"end",originY:"center"}}var r=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:r.x,originY:r.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw vS(n);t={overlayX:"start",overlayY:"center"}}var r=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:r.x,overlayY:r.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(tg(1),Kv(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.prototype._setupPointerEvents=function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,gS)}))},t.prototype._disableNativeGesturesIfNecessary=function(){var t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")},t.\u0275fac=function(e){return new(e||t)(Ua(Gy),Ua(rc),Ua(oy),Ua(Tc),Ua(Bu),Ua(hg),Ua(Pg),Ua(Ug),Ua(yS),Ua(qg,8),Ua(_S,8),Ua(rc))},t.\u0275dir=Ae({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),SS=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new D,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.\u0275fac=function(e){return new(e||t)(Ua(ca),Ua(hS))},t.\u0275cmp=xe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ts("click",(function(){return e._handleBodyInteraction()}),!1,rr),2&t&&ys("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(qa(0,"div",0),ts("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Qc(1,"async"),Ms(2),Za()),2&t&&(bs("mat-tooltip-handset",null==(n=Yc(1,5,e._isHandset))?null:n.matches),Wa("ngClass",e.tooltipClass)("@state",e._visibility),Di(2),As(e.message))},directives:[Bl],pipes:[ed],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:[mS.tooltipState]},changeDetection:0}),t}(),CS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[bS],imports:[[Wg,nd,Jy,iv],iv,cy]}),t}();function OS(t,e){if(1&t){var n=Ja();qa(0,"div",1),qa(1,"button",2),ts("click",(function(){return ln(n),os().action()})),Ms(2),Za(),Za()}if(2&t){var r=os();Di(2),As(r.data.action)}}function xS(t,e){}var ES=Math.pow(2,31)-1,kS=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterDismissed=new D,this._afterOpened=new D,this._onAction=new D,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,ES))},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),PS=new Jt("MatSnackBarData"),TS=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),MS=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(Ua(kS),Ua(PS))},t.\u0275cmp=xe({type:t,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(t,e){1&t&&(qa(0,"span"),Ms(1),Za(),Ba(2,OS,3,1,"div",0)),2&t&&(Di(1),As(e.data.message),Di(1),Wa("ngIf",e.hasAction))},directives:[Wl,jv],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}),t}(),AS={snackBarState:dh("state",[mh("void, hidden",fh({transform:"scale(0.8)",opacity:0})),mh("visible",fh({transform:"scale(1)",opacity:1})),vh("* => visible",ph("150ms cubic-bezier(0, 0, 0.2, 1)")),vh("* => void, * => hidden",ph("75ms cubic-bezier(0.4, 0.0, 1, 1)",fh({opacity:0})))])},IS=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=r,o.snackBarConfig=i,o._destroyed=!1,o._onExit=new D,o._onEnter=new D,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert",o}return i(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(tg(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e.\u0275fac=function(t){return new(t||e)(Ua(Bu),Ua(rc),Ua(ca),Ua(TS))},e.\u0275cmp=xe({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&cu(vy,!0),2&t&&su(n=fu())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&es("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(ja("role",e._role),Ds("@state",e._animationState))},features:[Ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Ba(0,xS,0,0,"ng-template",0)},directives:[vy],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:[AS.snackBarState]}}),e}(my),RS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[Jy,yy,nd,Fv,iv],iv]}),t}(),DS=new Jt("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new TS}}),NS=function(){function t(t,e,n,r,i,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=r,this._parentSnackBar=i,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var r=o(o({},this._defaultConfig),n);return r.data={message:t,action:e},r.announcementMessage||(r.announcementMessage=t),this.openFromComponent(MS,r)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new by(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[TS,e]])),r=new py(IS,e.viewContainerRef,n),i=t.attach(r);return i.instance.snackBarConfig=e,i.instance},t.prototype._attach=function(t,e){var n=o(o(o({},new TS),this._defaultConfig),e),r=this._createOverlay(n),i=this._attachSnackBarContainer(r,n),a=new kS(i,r);if(t instanceof kc){var s=new hy(t,null,{$implicit:n.data,snackBarRef:a});a.instance=i.attachTemplatePortal(s)}else{var c=this._createInjector(n,a),u=(s=new py(t,void 0,c),i.attachComponentPortal(s));a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Kv(r.detachments())).subscribe((function(t){var e=r.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new Py;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new by(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[kS,e],[PS,t.data]]))},t.\u0275prov=St({factory:function(){return new t(ae(Gy),ae(Vg),ae(Xt),ae(hS),ae(t,12),ae(DS))},token:t,providedIn:RS}),t.\u0275fac=function(e){return new(e||t)(ae(Gy),ae(Vg),ae(Oa),ae(hS),ae(t,12),ae(DS))},t}(),LS=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return v(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new A;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(D),VS=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();function jS(t){return function(e){return 0===t?$m():e.lift(new FS(t))}}var FS=function(){function t(t){if(this.total=t,this.total<0)throw new Jm}return t.prototype.call=function(t,e){return e.subscribe(new BS(t,this.total))},t}(),BS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return v(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(C);function US(t){return void 0===t&&(t=WS),function(e){return e.lift(new zS(t))}}var zS=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new HS(t,this.errorFactory))},t}(),HS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return v(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(C);function WS(){return new VS}function GS(t){return void 0===t&&(t=null),function(e){return e.lift(new qS(t))}}var qS=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new ZS(t,this.defaultValue))},t}(),ZS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return v(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(C);function QS(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Qm((function(e,n){return t(e,n,r)})):E,jS(1),n?GS(e):US((function(){return new VS})))}}function YS(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Qm((function(e,n){return t(e,n,r)})):E,tg(1),n?GS(e):US((function(){return new VS})))}}var KS=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new JS(t,this.predicate,this.thisArg,this.source))},t}(),JS=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return v(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(C);function XS(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new $S(t,e,n))}}var $S=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new tC(t,this.accumulator,this.seed,this.hasSeed))},t}(),tC=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return v(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(C),eC=function(){return function(t,e){this.id=t,this.url=e}}(),nC=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return i(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(eC),rC=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(eC),iC=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(eC),oC=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(eC),aC=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(eC),sC=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(eC),cC=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return i(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(eC),uC=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(eC),lC=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(eC),dC=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),pC=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),hC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),fC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),mC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),gC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),vC=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),yC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Qa(0,"router-outlet")},directives:function(){return[wx]},encapsulation:2}),t}(),bC=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function _C(t){return new bC(t)}function wC(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function SC(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var CC=function(){return function(t,e){this.routes=t,this.module=e}}();function OC(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];xC(r,EC(e,r))}}function xC(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&OC(t.children,e)}function EC(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function kC(t){var e=t.children&&t.children.map(kC),n=e?o(o({},t),{children:e}):o({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=yC),n}function PC(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!TC(t[n=r[o]],e[n]))return!1;return!0}function TC(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function MC(t){return Array.prototype.concat.apply([],t)}function AC(t){return t.length>0?t[t.length-1]:null}function IC(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function RC(t){return $a(t)?t:Xa(t)?K(Promise.resolve(t)):Nm(t)}function DC(t,e,n){return n?function(t,e){return PC(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!jC(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return TC(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!jC(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!jC(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!jC(n.segments,a)&&!!n.children.primary&&e(n.children.primary,r,s)}(e,n,n.segments)}(t.root,e.root)}var NC=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=_C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return zC.serialize(this)},t}(),LC=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,IC(e,(function(t,e){return t.parent=n}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return HC(this)},t}(),VC=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=_C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return YC(this)},t}();function jC(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function FC(t,e){var n=[];return IC(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),IC(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var BC=function(){return function(){}}(),UC=function(){function t(){}return t.prototype.parse=function(t){var e=new tO(t);return new NC(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return HC(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return IC(e.children,(function(e,n){"primary"!==n&&i.push(n+":"+t(e,!1))})),i.length>0?r+"("+i.join("//")+")":r}var o=FC(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:[r+":"+t(n,!1)]}));return HC(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return GC(t)+"="+GC(e)})).join("&"):GC(t)+"="+GC(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),zC=new UC;function HC(t){return t.segments.map((function(t){return YC(t)})).join("/")}function WC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function GC(t){return WC(t).replace(/%3B/gi,";")}function qC(t){return WC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ZC(t){return decodeURIComponent(t)}function QC(t){return ZC(t.replace(/\+/g,"%20"))}function YC(t){return""+qC(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+qC(t)+"="+qC(e[t])})).join(""));var e}var KC=/^[^\/()?;=#]+/;function JC(t){var e=t.match(KC);return e?e[0]:""}var XC=/^[^=?&#]+/,$C=/^[^?&#]+/,tO=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new LC([],{}):new LC([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new LC(t,e)),n},t.prototype.parseSegment=function(){var t=JC(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new VC(ZC(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=JC(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=JC(this.remaining);r&&this.capture(n=r)}t[ZC(e)]=ZC(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(XC))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match($C);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=QC(n),a=QC(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=JC(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new LC([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),eO=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=nO(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=nO(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=rO(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return rO(t,this._root).map((function(t){return t.value}))},t}();function nO(t,e){var n,r;if(t===e.value)return e;try{for(var i=a(e.children),o=i.next();!o.done;o=i.next()){var s=nO(t,o.value);if(s)return s}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function rO(t,e){var n,r;if(t===e.value)return[e];try{for(var i=a(e.children),o=i.next();!o.done;o=i.next()){var s=rO(t,o.value);if(s.length)return s.unshift(e),s}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var iO=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function oO(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var aO=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,pO(r,e),r}return i(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(eO);function sO(t,e){var n=function(t,e){var n=new lO([],{},{},"",{},"primary",e,null,t.root,-1,{});return new dO("",new iO(n,[]))}(t,e),r=new LS([new VC("",{})]),i=new LS({}),o=new LS({}),a=new LS({}),s=new LS(""),c=new cO(r,i,a,s,o,"primary",e,n.root);return c.snapshot=n.root,new aO(new iO(c,[]),n)}var cO=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q((function(t){return _C(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q((function(t){return _C(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function uO(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce((function(t,e){return{params:o(o({},t.params),e.params),data:o(o({},t.data),e.data),resolve:o(o({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var lO=function(){function t(t,e,n,r,i,o,a,s,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=_C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=_C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),dO=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,pO(r,n),r}return i(e,t),e.prototype.toString=function(){return hO(this._root)},e}(eO);function pO(t,e){e.value._routerState=t,e.children.forEach((function(e){return pO(t,e)}))}function hO(t){var e=t.children.length>0?" { "+t.children.map(hO).join(", ")+" } ":"";return""+t.value+e}function fO(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,PC(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),PC(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!PC(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),PC(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function mO(t,e){var n,r;return PC(t.params,e.params)&&jC(n=t.url,r=e.url)&&n.every((function(t,e){return PC(t.parameters,r[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||mO(t.parent,e.parent))}function gO(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function vO(t,e,n,r,i){var o={};return r&&IC(r,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),new NC(n.root===t?e:function t(e,n,r){var i={};return IC(e.children,(function(e,o){i[o]=e===n?r:t(e,n,r)})),new LC(e.segments,i)}(n.root,t,e),o,i)}var yO=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&gO(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==AC(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),bO=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function _O(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function wO(t,e,n){if(t||(t=new LC([],{})),0===t.segments.length&&t.hasChildren())return SO(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=_O(n[r]),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!EO(s,c,a))return o;r+=2}else{if(!EO(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new LC(t.segments.slice(0,r.pathIndex),{});return o.children.primary=new LC(t.segments.slice(r.pathIndex),t.children),SO(o,0,i)}return r.match&&0===i.length?new LC(t.segments,{}):r.match&&!t.hasChildren()?CO(t,e,n):r.match?SO(t,0,i):CO(t,e,n)}function SO(t,e,n){if(0===n.length)return new LC(t.segments,{});var r=function(t){var e,n;return"object"!=typeof t[0]?((e={}).primary=t,e):void 0===t[0].outlets?((n={}).primary=t,n):t[0].outlets}(n),i={};return IC(r,(function(n,r){null!==n&&(i[r]=wO(t.children[r],e,n))})),IC(t.children,(function(t,e){void 0===r[e]&&(i[e]=t)})),new LC(t.segments,i)}function CO(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=OO(n[i].outlets);return new LC(r,o)}if(0===i&&gO(n[0]))r.push(new VC(t.segments[e].path,n[0])),i++;else{var a=_O(n[i]),s=i<n.length-1?n[i+1]:null;a&&s&&gO(s)?(r.push(new VC(a,xO(s))),i+=2):(r.push(new VC(a,{})),i++)}}return new LC(r,{})}function OO(t){var e={};return IC(t,(function(t,n){null!==t&&(e[n]=CO(new LC([],{}),0,t))})),e}function xO(t){var e={};return IC(t,(function(t,n){return e[n]=""+t})),e}function EO(t,e,n){return t==n.path&&PC(e,n.parameters)}var kO=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),fO(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=oO(e);t.children.forEach((function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]})),IC(i,(function(t,e){r.deactivateRouteAndItsChildren(t,n)}))},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=oO(t),o=t.value.component?r.children:e;IC(i,(function(t,e){return n.deactivateRouteAndItsChildren(t,o)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=oO(e);t.children.forEach((function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new gC(t.value.snapshot))})),t.children.length&&this.forwardEvent(new fC(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(fO(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),PO(a.route)}else{var s=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function PO(t){fO(t.value),t.children.forEach(PO)}function TO(t){return"function"==typeof t}function MO(t){return t instanceof NC}var AO=function(){return function(t){this.segmentGroup=t||null}}(),IO=function(){return function(t){this.urlTree=t}}();function RO(t){return new T((function(e){return e.error(new AO(t))}))}function DO(t){return new T((function(e){return e.error(new IO(t))}))}function NO(t){return new T((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))}))}var LO=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(de)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(q((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(Yb((function(e){if(e instanceof IO)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof AO)throw t.noMatchError(e);throw e})))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(q((function(n){return e.createUrlTree(n,t.queryParams,t.fragment)}))).pipe(Yb((function(t){if(t instanceof AO)throw e.noMatchError(t);throw t})))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new LC([],((r={}).primary=t,r)):t;return new NC(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q((function(t){return new LC([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Nm({});var o=[],a=[],s={};return IC(n,(function(n,i){var c,u,l=(c=i,u=n,r.expandSegmentGroup(t,e,u,c)).pipe(q((function(t){return s[i]=t})));"primary"===i?o.push(l):a.push(l)})),Nm.apply(null,o.concat(a)).pipe(Yg(),QS(),q((function(){return s})))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this;return Nm.apply(void 0,c(n)).pipe(q((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Yb((function(t){if(t instanceof AO)return Nm(null);throw t})))})),Yg(),YS((function(t){return!!t})),Yb((function(t,n){if(t instanceof VS||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,i))return Nm(new LC([],{}));throw new AO(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return BO(r)!==o?RO(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):RO(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?DO(o):this.lineralizeSegments(n,o).pipe(J((function(n){var o=new LC(n,{});return i.expandSegment(t,o,e,n,r,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=VO(e,r,i),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return RO(e);var d=this.applyRedirectCommands(c,r.redirectTo,l);return r.redirectTo.startsWith("/")?DO(d):this.lineralizeSegments(r,d).pipe(J((function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(q((function(t){return n._loadedConfig=t,new LC(r,{})}))):Nm(new LC(r,{}));var s=VO(e,n,r),c=s.consumedSegments,u=s.lastChild;if(!s.matched)return RO(e);var l=r.slice(u);return this.getChildConfig(t,n,r).pipe(J((function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return FO(t,e,n)&&"primary"!==BO(n)}))}(t,n,r)?{segmentGroup:jO(new LC(e,function(t,e){var n,r,i={};i.primary=e;try{for(var o=a(t),s=o.next();!s.done;s=o.next()){var c=s.value;""===c.path&&"primary"!==BO(c)&&(i[BO(c)]=new LC([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new LC(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return FO(t,e,n)}))}(t,n,r)?{segmentGroup:jO(new LC(t.segments,function(t,e,n,r){var i,s,c={};try{for(var u=a(n),l=u.next();!l.done;l=u.next()){var d=l.value;FO(t,e,d)&&!r[BO(d)]&&(c[BO(d)]=new LC([],{}))}}catch(p){i={error:p}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return o(o({},r),c)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,c,l,r),u=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&u.hasChildren()?i.expandChildren(n,r,u).pipe(q((function(t){return new LC(c,t)}))):0===r.length&&0===d.length?Nm(new LC(c,{})):i.expandSegment(n,u,r,d,"primary",!0).pipe(q((function(t){return new LC(c.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Nm(new CC(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Nm(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?K(i).pipe(q((function(r){var i,o=t.get(r);if(function(t){return t&&TO(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!TO(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return RC(i)}))).pipe(Yg(),(r=function(t){return!0===t},function(t){return t.lift(new KS(r,void 0,t))})):Nm(!0)}(t.injector,e,n).pipe(J((function(n){return n?r.configLoader.load(t.injector,e).pipe(q((function(t){return e._loadedConfig=t,t}))):function(t){return new T((function(e){return e.error(wC("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Nm(new CC([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Nm(n);if(r.numberOfChildren>1||!r.children.primary)return NO(t.redirectTo);r=r.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new NC(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return IC(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return IC(e.children,(function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)})),new LC(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.path===t.path)return e.splice(i),c;i++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function VO(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||SC)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function jO(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new LC(t.segments.concat(e.segments),e.children)}return t}function FO(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function BO(t){return t.outlet||"primary"}var UO=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),zO=function(){return function(t,e){this.component=t,this.route=e}}();function HO(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function WO(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=oO(e);return t.children.forEach((function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!jC(t.url,e.url);case"pathParamsOrQueryParamsChange":return!jC(t.url,e.url)||!PC(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mO(t,e)||!PC(t.queryParams,e.queryParams);case"paramsChange":default:return!mO(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new UO(r)):(o.data=a.data,o._resolvedData=a._resolvedData),WO(t,e,o.component?s?s.children:null:n,r,i),c&&i.canDeactivateChecks.push(new zO(s&&s.outlet&&s.outlet.component||null,a))}else a&&GO(e,s,i),i.canActivateChecks.push(new UO(r)),WO(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]})),IC(o,(function(t,e){return GO(t,n.getContext(e),i)})),i}function GO(t,e,n){var r=oO(t),i=t.value;IC(r,(function(t,r){GO(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new zO(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var qO=Symbol("INITIAL_VALUE");function ZO(){return $v((function(t){return iS.apply(void 0,c(t.map((function(t){return t.pipe(tg(1),Jg(qO))})))).pipe(XS((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==qO)return t;if(r===qO&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||MO(r))return r}return t}),t)}),qO),Qm((function(t){return t!==qO})),q((function(t){return MO(t)?t:!0===t})),tg(1))}))}function QO(t,e){return null!==t&&e&&e(new mC(t)),Nm(!0)}function YO(t,e){return null!==t&&e&&e(new hC(t)),Nm(!0)}function KO(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Nm(r.map((function(r){return Xy((function(){var i,o=HO(r,e,n);if(function(t){return t&&TO(t.canActivate)}(o))i=RC(o.canActivate(e,t));else{if(!TO(o))throw new Error("Invalid CanActivate guard");i=RC(o(e,t))}return i.pipe(YS())}))}))).pipe(ZO()):Nm(!0)}function JO(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Xy((function(){return Nm(e.guards.map((function(i){var o,a=HO(i,e.node,n);if(function(t){return t&&TO(t.canActivateChild)}(a))o=RC(a.canActivateChild(r,t));else{if(!TO(a))throw new Error("Invalid CanActivateChild guard");o=RC(a(r,t))}return o.pipe(YS())}))).pipe(ZO())}))}));return Nm(i).pipe(ZO())}var XO=function(){return function(){}}(),$O=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=nx(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new lO([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new iO(n,e),i=new dO(this.url,r);return this.inheritParamsAndData(i._root),Nm(i)}catch(a){return new T((function(t){return t.error(a)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=uO(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=FC(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(i),i},t.prototype.processSegment=function(t,e,n,r){var i,o;try{for(var s=a(t),c=s.next();!c.done;c=s.next()){var u=c.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(l){if(!(l instanceof XO))throw l}}}catch(d){i={error:d}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new XO},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new XO;if((t.outlet||"primary")!==r)throw new XO;var i,a=[],s=[];if("**"===t.path){var c=n.length>0?AC(n).parameters:{};i=new lO(n,c,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,ox(t),r,t.component,t,tx(e),ex(e)+n.length,ax(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new XO;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||SC)(n,t,e);if(!r)throw new XO;var i={};IC(r.posParams,(function(t,e){i[e]=t.path}));var a=r.consumed.length>0?o(o({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,s=n.slice(u.lastChild),i=new lO(a,u.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,ox(t),r,t.component,t,tx(e),ex(e)+a.length,ax(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),d=nx(e,a,s,l,this.relativeLinkResolution),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(l,p);return[new iO(i,f)]}if(0===l.length&&0===h.length)return[new iO(i,[])];var m=this.processSegment(l,p,h,"primary");return[new iO(i,m)]},t}();function tx(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ex(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nx(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return rx(t,e,n)&&"primary"!==ix(n)}))}(t,n,r)){var s=new LC(e,function(t,e,n,r){var i,o,s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var c=a(n),u=c.next();!u.done;u=c.next()){var l=u.value;if(""===l.path&&"primary"!==ix(l)){var d=new LC([],{});d._sourceSegment=t,d._segmentIndexShift=e.length,s[ix(l)]=d}}}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return s}(t,e,r,new LC(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return rx(t,e,n)}))}(t,n,r)){var c=new LC(t.segments,function(t,e,n,r,i,s){var c,u,l={};try{for(var d=a(r),p=d.next();!p.done;p=d.next()){var h=p.value;if(rx(t,n,h)&&!i[ix(h)]){var f=new LC([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===s?t.segments.length:e.length,l[ix(h)]=f}}}catch(m){c={error:m}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(c)throw c.error}}return o(o({},i),l)}(t,e,n,r,t.children,i));return c._sourceSegment=t,c._segmentIndexShift=e.length,{segmentGroup:c,slicedSegments:n}}var u=new LC(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function rx(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ix(t){return t.outlet||"primary"}function ox(t){return t.data||{}}function ax(t){return t.resolve||{}}function sx(t,e,n,r){var i=HO(t,e,r);return RC(i.resolve?i.resolve(e,n):i(e,n))}function cx(t){return function(e){return e.pipe($v((function(e){var n=t(e);return n?K(n).pipe(q((function(){return e}))):K([e])})))}}var ux=function(){return function(){}}(),lx=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),dx=new Jt("ROUTES"),px=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(q((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new CC(MC(i.injector.get(dx)).map(kC),i)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?K(this.loader.load(t)):RC(t()).pipe(J((function(t){return t instanceof pe?Nm(t):K(e.compiler.compileModuleAsync(t))})))},t}(),hx=function(){return function(){}}(),fx=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function mx(t){throw t}function gx(t,e,n){return e.parse("/")}function vx(t,e){return Nm(null)}var yx=function(){function t(t,e,n,r,i,o,a,s){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new D,this.errorHandler=mx,this.malformedUriErrorHandler=gx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vx,afterPreactivation:vx},this.urlHandlingStrategy=new fx,this.routeReuseStrategy=new lx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(de),this.console=i.get(Eu);var u=i.get(Bu);this.isNgZoneEnabled=u instanceof Bu,this.resetConfig(s),this.currentUrlTree=new NC(new LC([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new px(o,a,(function(t){return c.triggerEvent(new dC(t))}),(function(t){return c.triggerEvent(new pC(t))})),this.routerState=sO(this.currentUrlTree,this.rootComponentType),this.transitions=new LS({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Qm((function(t){return 0!==t.id})),q((function(t){return o(o({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),$v((function(t){var r,i,s,c=!1,u=!1;return Nm(t).pipe(jm((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?o(o({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),$v((function(t){var r,i,a,s,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Nm(t).pipe($v((function(t){var r=e.transitions.getValue();return n.next(new nC(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Xm:[t]})),$v((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe($v((function(t){return function(t,e,n,r,i){return new LO(t,e,n,r,i).apply()}(r,i,a,t.extractedUrl,s).pipe(q((function(e){return o(o({},t),{urlAfterRedirects:e})})))})))}),jm((function(t){e.currentNavigation=o(o({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,a){return function(r){return r.pipe(J((function(r){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new $O(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),i,a).pipe(q((function(t){return o(o({},r),{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),jm((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),jm((function(t){var r=new aC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,l=t.source,d=t.restoredState,p=t.extras,h=new nC(t.id,e.serializeUrl(u),l,d);n.next(h);var f=sO(u,e.rootComponentType).snapshot;return Nm(o(o({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:o(o({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Xm})),cx((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),jm((function(t){var n=new sC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),q((function(t){return o(o({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,a=n._root,WO(a,r?r._root:null,i,[a.value]))});var n,r,i,a})),function(t,e){return function(n){return n.pipe(J((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,c=a.canDeactivateChecks;return 0===c.length&&0===s.length?Nm(o(o({},n),{guardsResult:!0})):function(t,e,n,r){return K(t).pipe(J((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Nm(o.map((function(o){var a,s=HO(o,e,i);if(function(t){return t&&TO(t.canDeactivate)}(s))a=RC(s.canDeactivate(t,e,n,r));else{if(!TO(s))throw new Error("Invalid CanDeactivate guard");a=RC(s(t,e,n,r))}return a.pipe(YS())}))).pipe(ZO()):Nm(!0)}(t.component,t.route,n,e,r)})),YS((function(t){return!0!==t}),!0))}(c,r,i,t).pipe(J((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return K(e).pipe(e_((function(e){return K([YO(e.route.parent,r),QO(e.route,r),JO(t,e.path,n),KO(t,e.route,n)]).pipe(Yg(),YS((function(t){return!0!==t}),!0))})),YS((function(t){return!0!==t}),!0))}(r,s,t,e):Nm(n)})),q((function(t){return o(o({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),jm((function(t){if(MO(t.guardsResult)){var n=wC('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),jm((function(t){var n=new cC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Qm((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new iC(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),cx((function(t){if(t.guards.canActivateChecks.length)return Nm(t).pipe(jm((function(t){var n=new uC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(J((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?K(i).pipe(e_((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Nm({});if(1===i.length){var o=i[0];return sx(t[o],e,n,r).pipe(q((function(t){var e;return(e={})[o]=t,e})))}var a={};return K(i).pipe(J((function(i){return sx(t[i],e,n,r).pipe(q((function(t){return a[i]=t,t})))}))).pipe(QS(),q((function(){return a})))}(t._resolve,t,e,r).pipe(q((function(e){return t._resolvedData=e,t.data=o(o({},t.data),uO(t,n).resolve),null})))}(t.route,e,n,r)})),function(t,e){return arguments.length>=2?function(n){return k(XS(t,e),jS(1),GS(e))(n)}:function(e){return k(XS((function(e,n,r){return t(e,n,r+1)})),jS(1))(e)}}((function(t,e){return t})),q((function(e){return t}))):Nm(t)})))}),jm((function(t){var n=new lC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),cx((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),q((function(t){var n,r,i,s=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(u=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map((function(n){var i,o;try{for(var s=a(r.children),c=s.next();!c.done;c=s.next()){var u=c.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return t(e,n)}))}(e,n,r);return new iO(u,i)}var o=e.retrieve(n.value);if(o){var s=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,s),s}var c,u=new cO(new LS((c=n.value).url),new LS(c.params),new LS(c.queryParams),new LS(c.fragment),new LS(c.data),c.outlet,c.component,c);return i=n.children.map((function(n){return t(e,n)})),new iO(u,i)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(r=t.currentRouterState)?r._root:void 0),new aO(i,n));return o(o({},t),{targetRouterState:s})})),jm((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(r=e.rootContexts,i=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},q((function(t){return new kO(i,t.targetRouterState,t.currentRouterState,s).activate(r),t}))),jm({next:function(){c=!0},complete:function(){c=!0}}),Xb((function(){if(!c&&!u){e.resetUrlToCurrentUrlTree();var r=new iC(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);n.next(r),t.resolve(!1)}e.currentNavigation=null})),Yb((function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=MO(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new iC(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout((function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new oC(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(c){t.reject(c)}}var s;return Xm})))})))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t},t.prototype.setTransition=function(t){this.transitions.next(o(o({},this.getTransition()),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(n,r,i,{replaceUrl:!0})}),0)})))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){OC(t),this.config=t.map(kC),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,i=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;Vr()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,d=u?this.currentUrlTree.fragment:i,p=null;if(s)switch(s){case"merge":p=o(o({},this.currentUrlTree.queryParams),r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=a?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,r,i){if(0===n.length)return vO(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new yO(!0,0,t);var e=0,n=!1,r=t.reduce((function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return IC(r.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),c(t,[{outlets:o}])}if(r.segmentPath)return c(t,[r.segmentPath])}return"string"!=typeof r?c(t,[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))})),t):c(t,[r])}),[]);return new yO(n,e,r)}(n);if(o.toRoot())return vO(e.root,new LC([],{}),e,r,i);var a=function(t,e,n){if(t.isAbsolute)return new bO(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new bO(n.snapshot._urlSegment,!0,0);var r=gO(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new bO(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?SO(a.segmentGroup,a.index,o.commands):wO(a.segmentGroup,a.index,o.commands);return vO(a.segmentGroup,s,e,r,i)}(l,this.currentUrlTree,t,p,d)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Vr()&&this.isNgZoneEnabled&&!Bu.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=MO(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(MO(t))return DC(this.currentUrlTree,t,e);var n=this.parseUrl(t);return DC(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e[n]=r),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new rC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,n,r,i){var o,a,s,c=this.getTransition();if(c&&"imperative"!==e&&"imperative"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"hashchange"==e&&"popstate"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"popstate"==e&&"hashchange"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise((function(t,e){o=t,a=e}));var u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,n,r){var i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",o(o({},r),{navigationId:n})):this.location.go(i,"",o(o({},r),{navigationId:n}))},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t.\u0275fac=function(t){Ha()},t.\u0275dir=Ae({type:t}),t}(),bx=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new _x,this.attachRef=null}}(),_x=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new bx,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),wx=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Kc,this.deactivateEvents=new Kc,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Sx(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t.\u0275fac=function(e){return new(e||t)(Ua(_x),Ua(Tc),Ua(nc),za("name"),Ua(ca))},t.\u0275dir=Ae({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t}(),Sx=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===cO?this.route:t===_x?this.childContexts:this.parent.get(t,e)},t}(),Cx=function(){return function(){}}(),Ox=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(Yb((function(){return Nm(null)})))},t}(),xx=function(){function t(){}return t.prototype.preload=function(t,e){return Nm(null)},t}(),Ex=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new px(e,n,(function(e){return t.triggerEvent(new dC(e))}),(function(e){return t.triggerEvent(new pC(e))}))}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Qm((function(t){return t instanceof rC})),e_((function(){return t.preload()}))).subscribe((function(){}))},t.prototype.preload=function(){var t=this.injector.get(de);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,r,i=[];try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.loadChildren&&!c.canLoad&&c._loadedConfig){var u=c._loadedConfig;i.push(this.processRoutes(u.module,u.routes))}else c.loadChildren&&!c.canLoad?i.push(this.preloadConfig(t,c)):c.children&&i.push(this.processRoutes(t,c.children))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return K(i).pipe(et(),q((function(t){})))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,(function(){return n.loader.load(t.injector,e).pipe(J((function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})))}))},t.\u0275fac=function(e){return new(e||t)(ae(yx),ae(sl),ae(Lu),ae(Oa),ae(Cx))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),kx=function(){function t(t,e,n){void 0===n&&(n={}),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof nC?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof rC&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof vC&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new vC(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t.\u0275fac=function(t){Ha()},t.\u0275dir=Ae({type:t}),t}(),Px=new Jt("ROUTER_CONFIGURATION"),Tx=new Jt("ROUTER_FORROOT_GUARD"),Mx=[Rl,{provide:BC,useClass:UC},{provide:yx,useFactory:function(t,e,n,r,i,o,a,s,c,u){void 0===s&&(s={});var l=new yx(null,t,e,n,r,i,o,MC(a));if(c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=gl();l.events.subscribe((function(t){d.logGroup("Router Event: "+t.constructor.name),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[BC,_x,Rl,Oa,sl,Lu,dx,Px,[hx,new gt],[ux,new gt]]},_x,{provide:cO,useFactory:function(t){return t.routerState.root},deps:[yx]},{provide:sl,useClass:ll},Ex,xx,Ox,{provide:Px,useValue:{enableTracing:!1}}];function Ax(){return new tl("Router",yx)}var Ix=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[Mx,Lx(t),{provide:Tx,useFactory:Nx,deps:[[yx,new gt,new yt]]},{provide:Px,useValue:n||{}},{provide:Pl,useFactory:Dx,deps:[bl,[new mt(Ml),new gt],Px]},{provide:kx,useFactory:Rx,deps:[yx,ad,Px]},{provide:Cx,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:xx},{provide:tl,multi:!0,useFactory:Ax},[Vx,{provide:yu,multi:!0,useFactory:jx,deps:[Vx]},{provide:Bx,useFactory:Fx,deps:[Vx]},{provide:xu,multi:!0,useExisting:Bx}]]}},t.forChild=function(t){return{ngModule:e,providers:[Lx(t)]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(Tx,8),ae(yx,8))}}),t}();function Rx(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new kx(t,e,n)}function Dx(t,e,n){return void 0===n&&(n={}),n.useHash?new Il(t,e):new Al(t,e)}function Nx(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Lx(t){return[{provide:xa,multi:!0,useValue:t},{provide:dx,multi:!0,useValue:t}]}var Vx=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new D}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(wl,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),r=t.injector.get(yx),i=t.injector.get(Px);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Nm(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n}))},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Px),n=this.injector.get(Ex),r=this.injector.get(kx),i=this.injector.get(yx),o=this.injector.get(ol);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t.\u0275fac=function(e){return new(e||t)(ae(Oa))},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function jx(t){return t.appInitializer.bind(t)}function Fx(t){return t.bootstrapListener.bind(t)}var Bx=new Jt("Router Initializer"),Ux=function(t){var e=t.length,n=t.separator,r=t.style;this.dictionaries=t.dictionaries,this.separator=n,this.length=e,this.style=r};Ux.prototype.generate=function(){var t=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: "+this.length+". Number of dictionaries provided: "+this.dictionaries.length);return this.dictionaries.slice(0,this.length).reduce((function(e,n){var r=n[Math.floor(Math.random()*n.length)]||"";if("lowerCase"===t.style)r=r.toLowerCase();else if("capital"===t.style){var i=r.split(""),o=i[0],a=i.slice(1);r=o.toUpperCase()+a.join("")}else"upperCase"===t.style&&(r=r.toUpperCase());return e?""+e+t.separator+r:""+r}),"")};var zx={separator:"_",length:3,dictionaries:[]},Hx=["average","big","colossal","fat","giant","gigantic","great","huge","immense","large","little","long","mammoth","massive","miniature","petite","puny","short","small","tall","tiny","boiling","breezy","broken","bumpy","chilly","cold","cool","creepy","crooked","cuddly","curly","damaged","damp","dirty","dry","dusty","filthy","flaky","fluffy","wet","broad","chubby","crooked","curved","deep","flat","high","hollow","low","narrow","round","shallow","skinny","square","steep","straight","wide","ancient","brief","early","fast","late","long","modern","old","quick","rapid","short","slow","swift","young","abundant","empty","few","heavy","light","many","numerous","Sound","cooing","deafening","faint","harsh","hissing","hushed","husky","loud","melodic","moaning","mute","noisy","purring","quiet","raspy","resonant","screeching","shrill","silent","soft","squealing","thundering","voiceless","whispering","bitter","delicious","fresh","juicy","ripe","rotten","salty","sour","spicy","stale","sticky","strong","sweet","tasteless","tasty","thirsty","fluttering","fuzzy","greasy","grubby","hard","hot","icy","loose","melted","plastic","prickly","rainy","rough","scattered","shaggy","shaky","sharp","shivering","silky","slimy","slippery","smooth","soft","solid","steady","sticky","tender","tight","uneven","weak","wet","wooden","afraid","angry","annoyed","anxious","arrogant","ashamed","awful","bad","bewildered","bored","combative","condemned","confused","creepy","cruel","dangerous","defeated","defiant","depressed","disgusted","disturbed","eerie","embarrassed","envious","evil","fierce","foolish","frantic","frightened","grieving","helpless","homeless","hungry","hurt","ill","jealous","lonely","mysterious","naughty","nervous","obnoxious","outrageous","panicky","repulsive","scary","scornful","selfish","sore","tense","terrible","thoughtless","tired","troubled","upset","uptight","weary","wicked","worried","agreeable","amused","brave","calm","charming","cheerful","comfortable","cooperative","courageous","delightful","determined","eager","elated","enchanting","encouraging","energetic","enthusiastic","excited","exuberant","fair","faithful","fantastic","fine","friendly","funny","gentle","glorious","good","happy","healthy","helpful","hilarious","jolly","joyous","kind","lively","lovely","lucky","obedient","perfect","pleasant","proud","relieved","silly","smiling","splendid","successful","thoughtful","victorious","vivacious","witty","wonderful","zealous","zany","other","good","new","old","great","high","small","different","large","local","social","important","long","young","national","british","right","early","possible","big","little","political","able","late","general","full","far","low","public","available","bad","main","sure","clear","major","economic","only","likely","real","black","particular","international","special","difficult","certain","open","whole","white","free","short","easy","strong","european","central","similar","human","common","necessary","single","personal","hard","private","poor","financial","wide","foreign","simple","recent","concerned","american","various","close","fine","english","wrong","present","royal","natural","individual","nice","french","following","current","modern","labour","legal","happy","final","red","normal","serious","previous","total","prime","significant","industrial","sorry","dead","specific","appropriate","top","soviet","basic","military","original","successful","aware","hon","popular","heavy","professional","direct","dark","cold","ready","green","useful","effective","western","traditional","scottish","german","independent","deep","interesting","considerable","involved","physical","left","hot","existing","responsible","complete","medical","blue","extra","past","male","interested","fair","essential","beautiful","civil","primary","obvious","future","environmental","positive","senior","nuclear","annual","relevant","huge","rich","commercial","safe","regional","practical","official","separate","key","chief","regular","due","additional","active","powerful","complex","standard","impossible","light","warm","middle","fresh","sexual","front","domestic","actual","united","technical","ordinary","cheap","strange","internal","excellent","quiet","soft","potential","northern","religious","quick","very","famous","cultural","proper","broad","joint","formal","limited","conservative","lovely","usual","ltd","unable","rural","initial","substantial","christian","bright","average","leading","reasonable","immediate","suitable","equal","detailed","working","overall","female","afraid","democratic","growing","sufficient","scientific","eastern","correct","inc","irish","expensive","educational","mental","dangerous","critical","increased","familiar","unlikely","double","perfect","slow","tiny","dry","historical","thin","daily","southern","increasing","wild","alone","urban","empty","married","narrow","liberal","supposed","upper","apparent","tall","busy","bloody","prepared","russian","moral","careful","clean","attractive","japanese","vital","thick","alternative","fast","ancient","elderly","rare","external","capable","brief","wonderful","grand","typical","entire","grey","constant","vast","surprised","ideal","terrible","academic","funny","minor","pleased","severe","ill","corporate","negative","permanent","weak","brown","fundamental","odd","crucial","inner","used","criminal","contemporary","sharp","sick","near","roman","massive","unique","secondary","parliamentary","african","unknown","subsequent","angry","alive","guilty","lucky","enormous","well","communist","yellow","unusual","net","tough","dear","extensive","glad","remaining","agricultural","alright","healthy","italian","principal","tired","efficient","comfortable","chinese","relative","friendly","conventional","willing","sudden","proposed","voluntary","slight","valuable","dramatic","golden","temporary","federal","keen","flat","silent","indian","worried","pale","statutory","welsh","dependent","firm","wet","competitive","armed","radical","outside","acceptable","sensitive","living","pure","global","emotional","sad","secret","rapid","adequate","fixed","sweet","administrative","wooden","remarkable","comprehensive","surprising","solid","rough","mere","mass","brilliant","maximum","absolute","tory","electronic","visual","electric","cool","spanish","literary","continuing","supreme","chemical","genuine","exciting","written","stupid","advanced","extreme","classical","fit","favourite","socialist","widespread","confident","straight","catholic","proud","numerous","opposite","distinct","mad","helpful","given","disabled","consistent","anxious","nervous","awful","stable","constitutional","satisfied","conscious","developing","strategic","holy","smooth","dominant","remote","theoretical","outstanding","pink","pretty","clinical","minimum","honest","impressive","related","residential","extraordinary","plain","visible","accurate","distant","still","greek","complicated","musical","precise","gentle","broken","live","silly","fat","tight","monetary","round","psychological","violent","unemployed","inevitable","junior","sensible","grateful","pleasant","dirty","structural","welcome","deaf","above","continuous","blind","overseas","mean","entitled","delighted","loose","occasional","evident","desperate","fellow","universal","square","steady","classic","equivalent","intellectual","victorian","level","ultimate","creative","lost","medieval","clever","linguistic","convinced","judicial","raw","sophisticated","asleep","vulnerable","illegal","outer","revolutionary","bitter","changing","australian","native","imperial","strict","wise","informal","flexible","collective","frequent","experimental","spiritual","intense","rational","ethnic","generous","inadequate","prominent","logical","bare","historic","modest","dutch","acute","electrical","valid","weekly","gross","automatic","loud","reliable","mutual","liable","multiple","ruling","curious","arab","sole","jewish","managing","pregnant","latin","nearby","exact","underlying","identical","satisfactory","marginal","distinctive","electoral","urgent","presidential","controversial","oral","everyday","encouraging","organic","continued","expected","statistical","desirable","innocent","improved","exclusive","marked","experienced","unexpected","superb","sheer","disappointed","frightened","gastric","capitalist","romantic","naked","reluctant","magnificent","convenient","established","closed","uncertain","artificial","diplomatic","tremendous","marine","mechanical","retail","institutional","mixed","required","biological","known","functional","straightforward","superior","digital","spectacular","unhappy","confused","unfair","aggressive","spare","painful","abstract","asian","associated","legislative","monthly","intelligent","hungry","explicit","nasty","just","faint","coloured","ridiculous","amazing","comparable","successive","realistic","back","decent","unnecessary","flying","random","influential","dull","genetic","neat","marvellous","crazy","damp","giant","secure","bottom","skilled","subtle","elegant","brave","lesser","parallel","steep","intensive","casual","tropical","lonely","partial","preliminary","concrete","alleged","assistant","vertical","upset","delicate","mild","occupational","excessive","progressive","iraqi","exceptional","integrated","striking","continental","okay","harsh","combined","fierce","handsome","characteristic","chronic","compulsory","interim","objective","splendid","magic","systematic","obliged","payable","fun","horrible","primitive","fascinating","ideological","metropolitan","surrounding","estimated","peaceful","premier","operational","technological","kind","advisory","hostile","precious","gay","accessible","determined","excited","impressed","provincial","smart","endless","isolated","drunk","geographical","like","dynamic","boring","forthcoming","unfortunate","definite","super","notable","indirect","stiff","wealthy","awkward","lively","neutral","artistic","content","mature","colonial","ambitious","evil","magnetic","verbal","legitimate","sympathetic","empirical","head","shallow","vague","naval","depressed","shared","added","shocked","mid","worthwhile","qualified","missing","blank","absent","favourable","polish","israeli","developed","profound","representative","enthusiastic","dreadful","rigid","reduced","cruel","coastal","peculiar","racial","ugly","swiss","crude","extended","selected","eager","feminist","canadian","bold","relaxed","corresponding","running","planned","applicable","immense","allied","comparative","uncomfortable","conservation","productive","beneficial","bored","charming","minimal","mobile","turkish","orange","rear","passive","suspicious","overwhelming","fatal","resulting","symbolic","registered","neighbouring","calm","irrelevant","patient","compact","profitable","rival","loyal","moderate","distinguished","interior","noble","insufficient","eligible","mysterious","varying","managerial","molecular","olympic","linear","prospective","printed","parental","diverse","elaborate","furious","fiscal","burning","useless","semantic","embarrassed","inherent","philosophical","deliberate","awake","variable","promising","unpleasant","varied","sacred","selective","inclined","tender","hidden","worthy","intermediate","sound","protective","fortunate","slim","islamic","defensive","divine","stuck","driving","invisible","misleading","circular","mathematical","inappropriate","liquid","persistent","solar","doubtful","manual","architectural","intact","incredible","devoted","prior","tragic","respectable","optimistic","convincing","unacceptable","decisive","competent","spatial","respective","binding","relieved","nursing","toxic","select","redundant","integral","then","probable","amateur","fond","passing","specified","territorial","horizontal","inland","cognitive","regulatory","miserable","resident","polite","scared","marxist","gothic","civilian","instant","lengthy","adverse","korean","unconscious","anonymous","aesthetic","orthodox","static","unaware","costly","fantastic","foolish","fashionable","causal","compatible","wee","implicit","dual","ok","cheerful","subjective","forward","surviving","exotic","purple","cautious","visiting","aggregate","ethical","protestant","teenage","dying","disastrous","delicious","confidential","underground","thorough","grim","autonomous","atomic","frozen","colourful","injured","uniform","ashamed","glorious","wicked","coherent","rising","shy","novel","balanced","delightful","arbitrary","adjacent","psychiatric","worrying","weird","unchanged","rolling","evolutionary","intimate","sporting","disciplinary","formidable","lexical","noisy","gradual","accused","homeless","supporting","coming","renewed","excess","retired","rubber","chosen","outdoor","embarrassing","preferred","bizarre","appalling","agreed","imaginative","governing","accepted","vocational","palestinian","mighty","puzzled","worldwide","handicapped","organisational","sunny","eldest","eventual","spontaneous","vivid","rude","faithful","ministerial","innovative","controlled","conceptual","unwilling","civic","meaningful","disturbing","alive","brainy","breakable","busy","careful","cautious","clever","concerned","crazy","curious","dead","different","difficult","doubtful","easy","famous","fragile","helpful","helpless","important","impossible","innocent","inquisitive","modern","open","outstanding","poor","powerful","puzzled","real","rich","shy","sleepy","stupid","super","tame","uninterested","wandering","wild","wrong","adorable","alert","average","beautiful","blonde","bloody","blushing","bright","clean","clear","cloudy","colorful","crowded","cute","dark","drab","distinct","dull","elegant","fancy","filthy","glamorous","gleaming","graceful","grotesque","homely","light","misty","motionless","muddy","plain","poised","quaint","shiny","smoggy","sparkling","spotless","stormy","strange","ugly","unsightly","unusual","bad","better","beautiful","big","black","blue","bright","clumsy","crazy","dizzy","dull","fat","frail","friendly","funny","great","green","gigantic","gorgeous","grumpy","handsome","happy","horrible","itchy","jittery","jolly","kind","long","lazy","magnificent","magenta","many","mighty","mushy","nasty","new","nice","nosy","nutty","nutritious","odd","orange","ordinary","pretty","precious","prickly","purple","quaint","quiet","quick","quickest","rainy","rare","ratty","red","roasted","robust","round","sad","scary","scrawny","short","silly","stingy","strange","striped","spotty","tart","tall","tame","tan","tender","testy","tricky","tough","ugly","ugliest","vast","watery","wasteful","wonderful","yellow","yummy","zany"],Wx=["canidae","felidae","cat","cattle","dog","donkey","goat","horse","pig","rabbit","aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","capybara","cardinal","caribou","carp","cat","catshark","caterpillar","catfish","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","cicada","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragonfly","dragon","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","gamefowl","galliform","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","urial","vicuna","viper","vole","vulture","wallaby","walrus","wasp","warbler","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra","alpaca","cat","cattle","chicken","dog","donkey","ferret","gayal","goldfish","guppy","horse","koi","llama","sheep","yak","unicorn"],Gx=["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 qx(t,e){1&t&&(qa(0,"div",18),Ms(1," Room name is "),qa(2,"strong"),Ms(3,"required"),Za(),Za())}function Zx(t,e){1&t&&(qa(0,"div",19),Ms(1," Room name is "),qa(2,"strong"),Ms(3,"too short!"),Za(),Za())}var Qx=function(){function t(t,e){this.router=t,this.formBuilder=e,this.version=n("kiQV").version}return t.prototype.ngOnInit=function(){var t=function(t){var e=Object.assign({},zx,t,{dictionaries:[].concat(t&&t.dictionaries||zx.dictionaries)});if(!t||!t.dictionaries||!t.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 Ux(e).generate()}({dictionaries:[Hx,Gx,Wx],separator:"-"});this.roomForm=new Bp(t,[np.minLength(4),np.required])},t.prototype.goToVideoCall=function(){if(this.roomForm.valid){var t=this.roomForm.value.replace(/ /g,"-");this.roomForm.setValue(t),this.router.navigate(["/",t])}},t.\u0275fac=function(e){return new(e||t)(Ua(yx),Ua(ah))},t.\u0275cmp=xe({type:t,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_vert_white_bg_trans_cropped.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(t,e){1&t&&(qa(0,"div",0),qa(1,"mat-toolbar",1),qa(2,"a",2),Qa(3,"img",3),Za(),qa(4,"div",4),qa(5,"span"),Ms(6),Za(),Za(),Za(),qa(7,"div",5),qa(8,"div",6),Qa(9,"img",7),qa(10,"h4"),Ms(11,"Videoconference rooms in one click"),Za(),Za(),qa(12,"div",8),Ba(13,qx,4,0,"div",9),Ba(14,Zx,4,0,"div",10),qa(15,"form",11),ts("ngSubmit",(function(){return e.goToVideoCall()})),qa(16,"div",12),Qa(17,"input",13),qa(18,"button",14),Ms(19,"JOIN"),Za(),Za(),Za(),Za(),Za(),qa(20,"mat-toolbar",15),qa(21,"span"),Ms(22," Photo by "),qa(23,"a",16),Ms(24," Daniel Leone "),Za(),Ms(25," on "),qa(26,"a",17),Ms(27," Unsplash "),Za(),Za(),Za(),Za()),2&t&&(Di(6),As(e.version),Di(7),Wa("ngIf",e.roomForm.hasError("required")),Di(1),Wa("ngIf",e.roomForm.hasError("minlength")),Di(1),Wa("formGroup",e.roomForm),Di(2),Wa("formControl",e.roomForm))},directives:[eS,Wl,$p,Jd,ih,ew,Wd,Kd,nh],styles:[".section1[_ngcontent-%COMP%]{background:url(/assets/images/bg.jpg) top no-repeat;background-size:cover;height:100%;text-align:center;position:relative;color:#fff}#header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%]{background-color:transparent;color:#fff}.roomError[_ngcontent-%COMP%]{font-size:16px;color:#c01515}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;font-size:9px;height:auto}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}#header_img[_ngcontent-%COMP%]{max-width:200px;margin-right:10px;margin-top:10px}.ovVersion[_ngcontent-%COMP%]{position:absolute;right:5px;font-size:16px;font-weight:700}.ovLogo[_ngcontent-%COMP%]{margin:auto}#card_content[_ngcontent-%COMP%]{height:50%}h4[_ngcontent-%COMP%]{font-size:25px;font-weight:500;color:#fff;position:relative;padding-bottom:5px}#room_card[_ngcontent-%COMP%]{color:#303030;position:inherit;max-width:700px;width:75%;margin:auto;background:hsla(0,0%,86.7%,.856)}#room_card[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:auto;padding:0 5px}@media only screen and (max-width:600px){#header_img[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%], .ovVersion[_ngcontent-%COMP%]{display:none}.joinForm[_ngcontent-%COMP%], .ovLogo[_ngcontent-%COMP%]{max-width:80%}.inputForm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:16px}}.container[_ngcontent-%COMP%]{position:relative;width:100%;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.formContainer[_ngcontent-%COMP%]{font-size:20px;text-align:center}.joinForm[_ngcontent-%COMP%]{min-width:300px;margin:10px auto;max-width:50%;background:#fff;padding:6px 10px;position:relative;border-radius:10px 5px 10px 0;text-align:left}.inputForm[_ngcontent-%COMP%]{border:0;padding:4px 8px;font-size:17px;width:calc(100% - 90px);outline:none;caret-color:#000;color:#303030}.joinButton[_ngcontent-%COMP%]{position:absolute;top:0;right:-2px;bottom:0;border:0;background:none;font-size:16px;font-weight:700;padding:0 20px;background:#00ad4e;color:#fff;border-radius:0 5px 10px 0;transition:.3s;box-shadow:0 2px 15px rgba(0,0,0,.1);margin:0}.joinButton[_ngcontent-%COMP%]:hover{background:#009242}@media only screen and (min-width:600px){.ovLogo[_ngcontent-%COMP%]{max-width:75%}}@media only screen and (min-width:992px){.ovLogo[_ngcontent-%COMP%]{max-width:60%}.inputForm[_ngcontent-%COMP%]{font-size:20px!important}}@media only screen and (min-width:1200px){.section1[_ngcontent-%COMP%]{background-attachment:fixed}.ovLogo[_ngcontent-%COMP%]{max-width:50%}}"]}),t}(),Yx=function(){function t(){}return t.prototype.updateLayout=function(){var t=this;setTimeout((function(){if("none"!==t.layoutContainer.style.display){var e=t.layoutContainer.id;e||(e="OT_"+t.cheapUUID(),t.layoutContainer.id=e);var n=t.getHeight(t.layoutContainer)-t.getCSSNumber(t.layoutContainer,"borderTop")-t.getCSSNumber(t.layoutContainer,"borderBottom"),r=t.getWidth(t.layoutContainer)-t.getCSSNumber(t.layoutContainer,"borderLeft")-t.getCSSNumber(t.layoutContainer,"borderRight"),i=n/r,o=0,a=0,s=0,c=0,u=Array.prototype.filter.call(t.layoutContainer.querySelectorAll("#"+e+">."+t.opts.bigClass),t.filterDisplayNone),l=Array.prototype.filter.call(t.layoutContainer.querySelectorAll("#"+e+">*:not(."+t.opts.bigClass+")"),t.filterDisplayNone);if(u.length>0&&l.length>0){var d=void 0,p=void 0;i>t.getVideoRatio(u[0])?(d=r,s=n-(a=p=Math.floor(n*t.opts.bigPercentage))):(p=n,c=r-(o=d=Math.floor(r*t.opts.bigPercentage))),t.opts.bigFirst?(t.arrange(u,d,p,0,0,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate),t.arrange(l,r-o,n-a,o,a,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate)):(t.arrange(l,r-o,n-a,0,0,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate),t.arrange(u,d,p,c,s,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate))}else u.length>0&&0===l.length?t.arrange(u,r,n,0,0,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate):t.arrange(l,r-o,n-a,o,a,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate)}}),50)},t.prototype.initLayoutContainer=function(t,e){this.opts={maxRatio:null!=e.maxRatio?e.maxRatio:1.5,minRatio:null!=e.minRatio?e.minRatio:9/16,fixedRatio:null!=e.fixedRatio&&e.fixedRatio,animate:null!=e.animate&&e.animate,bigClass:null!=e.bigClass?e.bigClass:"OT_big",bigPercentage:null!=e.bigPercentage?e.bigPercentage:.8,bigFixedRatio:null!=e.bigFixedRatio&&e.bigFixedRatio,bigMaxRatio:null!=e.bigMaxRatio?e.bigMaxRatio:1.5,bigMinRatio:null!=e.bigMinRatio?e.bigMinRatio:9/16,bigFirst:null==e.bigFirst||e.bigFirst},this.layoutContainer="string"==typeof t?$(t):t},t.prototype.setLayoutOptions=function(t){this.opts=t},t.prototype.fixAspectRatio=function(t,e){var n=t.querySelector(".OT_root");if(n){var r=n.style.width;n.style.width=e+"px",n.style.width=r||""}},t.prototype.positionElement=function(t,e,n,r,i,o){var a=this,s={left:e+"px",top:n+"px",width:r+"px",height:i+"px"};this.fixAspectRatio(t,r),o&&$?($(t).stop(),$(t).animate(s,o.duration||200,o.easing||"swing",(function(){a.fixAspectRatio(t,r),o.complete&&o.complete.call(a)}))):$(t).css(s),this.fixAspectRatio(t,r)},t.prototype.getVideoRatio=function(t){if(!t)return 3/4;var e=t.querySelector("video");return e&&e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:3/4},t.prototype.getCSSNumber=function(t,e){var n=$(t).css(e);return n?parseInt(n,10):0},t.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},t.prototype.getHeight=function(t){var e=$(t).css("height");return e?parseInt(e,10):0},t.prototype.getWidth=function(t){var e=$(t).css("width");return e?parseInt(e,10):0},t.prototype.getBestDimensions=function(t,e,n,r,i,o){for(var a,s,c,u,l,d,p,h=1;h<=n;h++){var f=h,m=Math.ceil(n/f);(p=(d=Math.floor(i/m))/(l=Math.floor(r/f)))>e?d=l*(p=e):p<t&&(l=d/(p=t));var g=l*d*n;(void 0===a||g>a)&&(a=g,o=d,u=l,s=f,c=m)}return{maxArea:a,targetCols:s,targetRows:c,targetHeight:o,targetWidth:u,ratio:o/u}},t.prototype.arrange=function(t,e,n,r,i,o,a,s,c){var u,l,d=t.length;if(o){var p=this.getVideoRatio(t.length>0?t[0]:null);l=this.getBestDimensions(p,p,d,e,n,u)}else l=this.getBestDimensions(a,s,d,e,n,u);for(var h,f=0,m=0,g=[],v=0;v<t.length;v++){v%l.targetCols==0&&g.push(h={children:[],width:0,height:0}),h.children.push(O=t[v]);var y=l.targetWidth;u=l.targetHeight,o&&(y=u/this.getVideoRatio(O)),h.width+=y,h.height=u}var b=0,_=0;for(v=0;v<g.length;v++)(h=g[v]).width>e?(h.height=Math.floor(h.height*(e/h.width)),h.width=e):h.width<e&&(_+=1),b+=h.height;if(b<n&&_>0){var w=n-b;for(b=0,v=0;v<g.length;v++){if((h=g[v]).width<e){var S=w/_;S/h.height>(e-h.width)/h.width&&(S=Math.floor((e-h.width)/h.width*h.height)),h.width+=Math.floor(S/h.height*h.width),h.height+=S,w-=S,_-=1}b+=h.height}}for(m=(n-b)/2,v=0;v<g.length;v++){f=(e-(h=g[v]).width)/2;for(var C=0;C<h.children.length;C++){var O=h.children[C];y=l.targetWidth,u=h.height,o&&(y=Math.floor(u/this.getVideoRatio(O))),O.style.position="absolute";var x=y-this.getCSSNumber(O,"paddingLeft")-this.getCSSNumber(O,"paddingRight")-this.getCSSNumber(O,"marginLeft")-this.getCSSNumber(O,"marginRight")-this.getCSSNumber(O,"borderLeft")-this.getCSSNumber(O,"borderRight"),E=u-this.getCSSNumber(O,"paddingTop")-this.getCSSNumber(O,"paddingBottom")-this.getCSSNumber(O,"marginTop")-this.getCSSNumber(O,"marginBottom")-this.getCSSNumber(O,"borderTop")-this.getCSSNumber(O,"borderBottom");this.positionElement(O,f+r,m+i,x,E,c),f+=y}m+=u}},t.prototype.filterDisplayNone=function(t){return"none"!==t.style.display},t}(),Kx=function(t){return t.CAMERA="CAMERA",t.SCREEN="SCREEN",t.CUSTOM="CUSTOM",t}({}),Jx=function(t){return t.WINDOW="window",t.SCREEN="screen",t}({}),Xx=function(){function t(t,e,n){this.connectionId=t||"",this.nickname=n||"OpenVidu",this.streamManager=e||null}return t.prototype.isAudioActive=function(){var t,e;return null===(e=null===(t=this.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.audioActive},t.prototype.isVideoActive=function(){var t,e;return null===(e=null===(t=this.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.videoActive},t.prototype.getConnectionId=function(){var t,e,n;return null===(n=null===(e=null===(t=this.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.connection)||void 0===n?void 0:n.connectionId},t.prototype.getNickname=function(){return this.nickname},t.prototype.getStreamManager=function(){return this.streamManager},t.prototype.getAvatar=function(){return this.videoAvatar?this.videoAvatar.toDataURL():this.randomAvatar},t.prototype.isLocal=function(){return!this.isRemote()},t.prototype.isRemote=function(){var t;return null===(t=this.streamManager)||void 0===t?void 0:t.remote},t.prototype.isScreen=function(){var t,e;return(null===(e=null===(t=this.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.typeOfVideo)===Kx.SCREEN},t.prototype.isCamera=function(){var t,e;return(null===(e=null===(t=this.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.typeOfVideo)===Kx.CAMERA||this.isLocal()&&!this.isScreen()},t.prototype.setStreamManager=function(t){this.streamManager=t},t.prototype.setNickname=function(t){this.nickname=t},t.prototype.isVideoSizeBig=function(){return this.videoSizeBig},t.prototype.setVideoSizeBig=function(t){this.videoSizeBig=t},t.prototype.setUserAvatar=function(t){var e=this;return new Promise((function(n){if(t)e.randomAvatar=t,n();else{e.createVideoAvatar();var r=document.getElementById("video-"+e.getStreamManager().stream.streamId);e.videoAvatar.getContext("2d").drawImage(r,200,120,285,285,0,0,100,100),n()}}))},t.prototype.removeVideoAvatar=function(){this.videoAvatar=null},t.prototype.createVideoAvatar=function(){this.videoAvatar=document.createElement("canvas"),this.videoAvatar.className="user-img",this.videoAvatar.width=100,this.videoAvatar.height=100},t}(),$x=n("PZzU"),tE=function(t){return t.RANDOM="random",t.VIDEO="video",t}({}),eE=function(){function t(){this.log=window.console,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]],this.LOG_FNS=[this.log.log,this.log.warn,this.log.error]}return t.prototype.get=function(t){var e=this;return this.LOG_FNS.map((function(n,r){return n.bind(e.log,e.MSG_PREFIXES[r][0]+t+e.MSG_PREFIXES[r][1])})),{d:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},w:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}}},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)},providedIn:"root"}),t}(),nE=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},rE=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},iE=function(){function t(t){this.loggerSrv=t,this._OVUsers=new LS([]),this.OV=null,this.OVScreen=null,this.webcamSession=null,this.screenSession=null,this.webcamUser=null,this.screenUser=null,this.videoSource=void 0,this.audioSource=void 0,this.sessionId="",this.screenMediaStream=null,this.webcamMediaStream=null,this.log=this.loggerSrv.get("OpenViduSessionService"),this.OV=new $x.OpenVidu,this.OVScreen=new $x.OpenVidu,this.OV.enableProdMode(),this.OVScreen.enableProdMode(),this.OVUsers=this._OVUsers.asObservable(),this.webcamUser=new Xx,this._OVUsers.next([this.webcamUser])}return t.prototype.initSessions=function(){this.webcamSession=this.OV.initSession(),this.screenSession=this.OVScreen.initSession()},t.prototype.getWebcamSession=function(){return this.webcamSession},t.prototype.getConnectedUserSession=function(){return this.isWebCamEnabled()?this.getWebcamSession():this.getScreenSession()},t.prototype.getScreenSession=function(){return this.screenSession},t.prototype.connectWebcamSession=function(t){return nE(this,void 0,void 0,(function(){return rE(this,(function(e){switch(e.label){case 0:return t?[4,this.webcamSession.connect(t,{clientData:this.getWebcamUserName(),avatar:this.getWebCamAvatar()})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.connectScreenSession=function(t){return nE(this,void 0,void 0,(function(){return rE(this,(function(e){switch(e.label){case 0:return t?[4,this.screenSession.connect(t,{clientData:this.getScreenUserName(),avatar:this.getWebCamAvatar()})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.publishWebcam=function(){return nE(this,void 0,void 0,(function(){var t;return rE(this,(function(e){switch(e.label){case 0:return this.webcamSession.capabilities.publish&&(t=this.webcamUser.getStreamManager())?[4,this.webcamSession.publish(t)]:[3,2];case 1:return[2,e.sent()];case 2:return this.log.w("User cannot publish"),[2]}}))}))},t.prototype.publishScreen=function(){return nE(this,void 0,void 0,(function(){var t;return rE(this,(function(e){switch(e.label){case 0:return this.screenSession.capabilities.publish&&(t=this.screenUser.getStreamManager())?[4,this.screenSession.publish(t)]:[3,2];case 1:return[2,e.sent()];case 2:return this.log.w("User cannot publish"),[2]}}))}))},t.prototype.unpublishWebcam=function(){var t=this.webcamUser.getStreamManager();t&&(this.publishScreenAudio(this.hasWebcamAudioActive()),this.webcamSession.unpublish(t))},t.prototype.unpublishScreen=function(){var t=this.screenUser.getStreamManager();t&&this.screenSession.unpublish(t)},t.prototype.enableWebcamUser=function(){this._OVUsers.next([this.webcamUser,this.screenUser])},t.prototype.disableWebcamUser=function(){this._OVUsers.next([this.screenUser])},t.prototype.enableScreenUser=function(t){var e,n,r=null===(n=null===(e=this.screenSession)||void 0===e?void 0:e.connection)||void 0===n?void 0:n.connectionId;this.screenUser=new Xx(r,t,this.getScreenUserName()),this.screenUser.setUserAvatar(this.webcamUser.getAvatar()),this.isWebCamEnabled()?this._OVUsers.next([this.webcamUser,this.screenUser]):(this.log.d("ENABLED SCREEN SHARE"),this._OVUsers.next([this.screenUser]))},t.prototype.disableScreenUser=function(){this.destryoScreenUser(),this._OVUsers.next([this.webcamUser])},t.prototype.initCamPublisher=function(t,e){var n=this.initPublisher(t,e);return this.webcamUser.setStreamManager(n),n},t.prototype.publishVideo=function(t){this.webcamUser.getStreamManager().publishVideo(t),this._OVUsers.next(this._OVUsers.getValue())},t.prototype.publishWebcamAudio=function(t){var e,n=null===(e=this.webcamUser)||void 0===e?void 0:e.getStreamManager();n&&n.publishAudio(t)},t.prototype.publishScreenAudio=function(t){var e,n=null===(e=this.screenUser)||void 0===e?void 0:e.getStreamManager();n&&n.publishAudio(t)},t.prototype.replaceTrack=function(t,e,n){var r=this;return void 0===n&&(n=!0),new Promise((function(i,o){t&&(r.log.d("Replacing video track "+t),r.videoSource=t),e&&(r.log.d("Replacing audio track "+e),r.audioSource=e),r.destryoWebcamUser();var a=r.createProperties(r.videoSource,r.audioSource,r.hasWebcamVideoActive(),r.hasWebcamAudioActive(),n),s=r.initCamPublisher(void 0,a);s.once("streamPlaying",(function(){r.webcamUser.setStreamManager(s),i()})),s.once("accessDenied",(function(){o()}))}))},t.prototype.replaceScreenTrack=function(){return nE(this,void 0,void 0,(function(){var t,e,n,r;return rE(this,(function(i){switch(i.label){case 0:return t=Jx.SCREEN,e=!this.isWebCamEnabled(),n=this.createProperties(t,void 0,!0,e,!1),this.stopScreenTracks(),r=this,[4,this.OVScreen.getUserMedia(n)];case 1:return r.screenMediaStream=i.sent(),[4,this.screenUser.getStreamManager().replaceTrack(this.screenMediaStream.getVideoTracks()[0])];case 2:return i.sent(),[2]}}))}))},t.prototype.initScreenPublisher=function(t,e){return this.log.d("init screen properties",e),this.initPublisher(t,e)},t.prototype.destroyUsers=function(){this.destryoScreenUser(),this.destryoWebcamUser()},t.prototype.disconnect=function(){var t=this;this.webcamSession&&(this.log.d("Disconnecting screen session"),this.webcamSession.disconnect(),this.webcamSession=null),this.screenSession&&setTimeout((function(){t.log.d("Disconnecting screen session"),t.screenSession.disconnect(),t.stopScreenTracks(),t.screenSession=null}),50),this.destroyUsers(),this.screenUser=null,this.videoSource=void 0,this.audioSource=void 0,this.sessionId="",this.webcamUser=new Xx,this._OVUsers.next([this.webcamUser])},t.prototype.isWebCamEnabled=function(){return this._OVUsers.getValue()[0].isCamera()},t.prototype.isOnlyScreenConnected=function(){return this._OVUsers.getValue()[0].isScreen()},t.prototype.hasWebcamVideoActive=function(){return this.webcamUser.isVideoActive()},t.prototype.hasWebcamAudioActive=function(){var t;return null===(t=this.webcamUser)||void 0===t?void 0:t.isAudioActive()},t.prototype.hasScreenAudioActive=function(){var t;return null===(t=this.screenUser)||void 0===t?void 0:t.isAudioActive()},t.prototype.areBothConnected=function(){return 2===this._OVUsers.getValue().length},t.prototype.isOnlyWebcamConnected=function(){return this.isWebCamEnabled()&&!this.areBothConnected()},t.prototype.isScreenShareEnabled=function(){return this.areBothConnected()||this.isOnlyScreenConnected()},t.prototype.isMyOwnConnection=function(t){var e,n;return(null===(e=this.webcamUser)||void 0===e?void 0:e.getConnectionId())===t||(null===(n=this.screenUser)||void 0===n?void 0:n.getConnectionId())===t},t.prototype.createProperties=function(t,e,n,r,i){return{videoSource:t,audioSource:e,publishVideo:n,publishAudio:r,mirror:i}},t.prototype.setSessionId=function(t){this.sessionId=t},t.prototype.getSessionId=function(){return this.sessionId},t.prototype.setWebcamAvatar=function(){this.webcamUser.setUserAvatar()},t.prototype.setAvatar=function(t,e){(t===tE.RANDOM&&e||tE.VIDEO&&e)&&t===tE.RANDOM&&this.webcamUser.setUserAvatar(e)},t.prototype.setWebcamName=function(t){this.webcamUser.setNickname(t)},t.prototype.getWebCamAvatar=function(){return this.webcamUser.getAvatar()},t.prototype.getWebcamUserName=function(){return this.webcamUser.getNickname()},t.prototype.getScreenUserName=function(){return this.getWebcamUserName()+"_SCREEN"},t.prototype.resetUsersZoom=function(){var t,e;null===(t=this.webcamUser)||void 0===t||t.setVideoSizeBig(!1),null===(e=this.screenUser)||void 0===e||e.setVideoSizeBig(!1)},t.prototype.toggleZoom=function(t){this.webcamUser.getConnectionId()!==t?this.screenUser.setVideoSizeBig(!this.screenUser.isVideoSizeBig()):this.webcamUser.setVideoSizeBig(!this.webcamUser.isVideoSizeBig())},t.prototype.initPublisher=function(t,e){return this.OV.initPublisher(t,e)},t.prototype.destryoScreenUser=function(){var t;(null===(t=this.screenUser)||void 0===t?void 0:t.getStreamManager())&&(this.screenUser.getStreamManager().stream.disposeWebRtcPeer(),this.screenUser.getStreamManager().stream.disposeMediaStream())},t.prototype.destryoWebcamUser=function(){var t;(null===(t=this.webcamUser)||void 0===t?void 0:t.getStreamManager())&&(this.webcamUser.getStreamManager().stream.disposeWebRtcPeer(),this.webcamUser.getStreamManager().stream.disposeMediaStream())},t.prototype.stopScreenTracks=function(){this.screenMediaStream&&(this.stopAudioTracks(this.screenMediaStream),this.stopVideoTracks(this.screenMediaStream))},t.prototype.stopAudioTracks=function(t){var e,n;null===(e=t)||void 0===e||e.getAudioTracks().forEach((function(t){t.stop(),t.enabled=!1})),null===(n=this.webcamMediaStream)||void 0===n||n.getAudioTracks().forEach((function(t){t.stop()}))},t.prototype.stopVideoTracks=function(t){var e;null===(e=t)||void 0===e||e.getVideoTracks().forEach((function(t){t.stop()}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(eE))},providedIn:"root"}),t}(),oE=function(){function t(t){this.loggerSrv=t,this._remoteUsers=new LS([]),this.users=[],this.log=this.loggerSrv.get("RemoteService"),this.remoteUsers=this._remoteUsers.asObservable()}return t.prototype.updateUsers=function(){this._remoteUsers.next(this.users)},t.prototype.add=function(t,e){var n,r,i="",o="",a=t.stream.connection.connectionId;try{i=null===(n=JSON.parse(t.stream.connection.data))||void 0===n?void 0:n.clientData,o=null===(r=JSON.parse(t.stream.connection.data))||void 0===r?void 0:r.avatar}catch(c){i="Unknown"}var s=new Xx(a,e,i);s.setUserAvatar(o),this.users.push(s),this.updateUsers()},t.prototype.removeUserByConnectionId=function(t){this.log.w("Deleting user: ",t);var e=this.getRemoteUserByConnectionId(t),n=this.users.indexOf(e,0);n>-1&&(this.users.splice(n,1),this.updateUsers())},t.prototype.someoneIsSharingScreen=function(){return this.users.some((function(t){return t.isScreen()}))},t.prototype.toggleUserZoom=function(t){var e=this.getRemoteUserByConnectionId(t);e.setVideoSizeBig(!e.isVideoSizeBig())},t.prototype.resetUsersZoom=function(){this.users.forEach((function(t){return t.setVideoSizeBig(!1)}))},t.prototype.setUserZoom=function(t,e){var n;null===(n=this.getRemoteUserByConnectionId(t))||void 0===n||n.setVideoSizeBig(e)},t.prototype.getRemoteUserByConnectionId=function(t){return this.users.find((function(e){return e.getConnectionId()===t}))},t.prototype.updateNickname=function(t,e){var n;null===(n=this.getRemoteUserByConnectionId(t))||void 0===n||n.setNickname(e),this._remoteUsers.next(this.users)},t.prototype.clean=function(){this._remoteUsers=new LS([]),this.remoteUsers=this._remoteUsers.asObservable(),this.users=[]},t.prototype.getUserAvatar=function(t){return this.getRemoteUserByConnectionId(t).getAvatar()},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(eE))},providedIn:"root"}),t}(),aE=function(){function t(t){this.snackBar=t}return t.prototype.newMessage=function(t,e){this.launchNotification(t+" sent a message","OPEN","messageSnackbar",3e3).onAction().subscribe((function(){e()}))},t.prototype.launchNotification=function(t,e,n,r){return this.snackBar.open(t,e,{duration:r,verticalPosition:"top",horizontalPosition:"end",panelClass:n})},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(NS))},providedIn:"root"}),t}(),sE=function(){function t(t,e,n,r){this.loggerSrv=t,this.oVSessionService=e,this.remoteUsersService=n,this.notificationService=r,this._messageList=new LS([]),this._toggleChat=new LS(!1),this.messageList=[],this.messagesUnread=0,this._messagesUnread=new LS(0),this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.toggleChatObs=this._toggleChat.asObservable(),this.messagesUnreadObs=this._messagesUnread.asObservable()}return t.prototype.setChatComponent=function(t){this.chatComponent=t},t.prototype.subscribeToChat=function(){var t=this;this.oVSessionService.getWebcamSession().on("signal:chat",(function(e){var n=e.from.connectionId,r=JSON.parse(e.data),i=t.oVSessionService.isMyOwnConnection(n);t.messageList.push({isLocal:i,nickname:r.nickname,message:r.message,userAvatar:i?t.oVSessionService.getWebCamAvatar():t.remoteUsersService.getUserAvatar(n)}),t.isChatOpened()||(t.addMessageUnread(),t.notificationService.newMessage(r.nickname.toUpperCase(),t.toggleChat.bind(t))),t._messageList.next(t.messageList)}))},t.prototype.sendMessage=function(t){if(""!==(t=t.replace(/ +(?= )/g,""))&&" "!==t){var e={message:t,nickname:this.oVSessionService.getWebcamUserName()};this.oVSessionService.getConnectedUserSession().signal({data:JSON.stringify(e),type:"chat"})}},t.prototype.toggleChat=function(){var t=this;this.log.d("Toggling chat"),this.chatComponent.toggle().then((function(){t.chatOpened=t.chatComponent.opened,t._toggleChat.next(t.chatOpened),t.chatOpened&&(t.messagesUnread=0,t._messagesUnread.next(t.messagesUnread))}))},t.prototype.isChatOpened=function(){return this.chatOpened},t.prototype.addMessageUnread=function(){this.messagesUnread++,this._messagesUnread.next(this.messagesUnread)},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(eE),ae(iE),ae(oE),ae(aE))},providedIn:"root"}),t}(),cE={provide:xu,useFactory:function(t,e){return function(){if(rd(e)){var n=Array.from(t.querySelectorAll("[class*="+uE+"]")),r=/\bflex-layout-.+?\b/g;n.forEach((function(t){t.classList.contains(uE+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(r,"")}))}}},deps:[yl,Ou],multi:!0},uE="flex-layout-",lE=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},providers:[cE]}),t}(),dE=function(){function t(t,e,n,r,i){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r,this.priority=i,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),pE=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.\u0275prov=St({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),hE={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},fE=new Jt("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return hE}}),mE=new Jt("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),gE=new Jt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function vE(t,e){return t=t?t.clone():new dE,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var yE=["row","column","row-reverse","column-reverse"];function bE(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var _E=function(){function t(t,e,n,r){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new D,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,r)}}))},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(t);i&&r||(i=n.buildStyles(t,e),r&&this.styleCache.set(t,i)),this.mru=o({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach((function(e){t.mru[e]=""})),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),r=n[0];if(!n[1]&&e){var i=function(t){var e,n,r=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return yE.find((function(t){return t===n}))||(n=yE[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,bE(r),!!i]}(t);return void 0===(e=r[1])&&(e=null),void 0===(n=r[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null}}(r);this.styler.applyStyleToElements(i,[t])}return r.trim()}return"row"},t.prototype.hasWrap=function(t){return this.styler.hasWrap(t)},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)},t.\u0275fac=function(t){Ha()},t.\u0275dir=Ae({type:t,features:[zs]}),t}(),wE=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],SE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",CE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",OE="(orientation: portrait) and (min-width: 840px)",xE="(orientation: landscape) and (min-width: 1280px)",EE={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:SE+" , "+CE,WEB:OE+", "+xE+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:SE+" ",WEB_PORTRAIT:""+OE,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:""+CE,WEB_LANDSCAPE:""+xE},kE=[{alias:"handset",priority:2e3,mediaQuery:EE.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:EE.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:EE.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:EE.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:EE.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:EE.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:EE.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:EE.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:EE.WEB_PORTRAIT,overlapping:!0}],PE=/(\.|-|_)/g;function TE(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var ME=new Jt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=se(gE),e=se(fE),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach((function(t){r[t.alias]=t})),e.forEach((function(t){r[t.alias]?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}}(r[t.alias],t):r[t.alias]=t})),(n=Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){t.suffix||(t.suffix=t.alias.replace(PE,"|").split("|").map(TE).join(""),t.overlapping=!!t.overlapping)})),n}((e.disableDefaultBps?[]:wE).concat(e.addOrientationBps?kE:[]),n)}});function AE(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function IE(t,e){return(t.priority||0)-(e.priority||0)}var RE=function(){function t(t){this.findByMap=new Map,this.items=u(t).sort(IE)}return t.prototype.findByAlias=function(t){return t?this.findWithPredicate(t,(function(e){return e.alias==t})):null},t.prototype.findByQuery=function(t){return this.findWithPredicate(t,(function(e){return e.mediaQuery==t}))},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this.items.filter((function(t){return 1==t.overlapping}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this.items.map((function(t){return t.alias}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this.items.map((function(t){return t.suffix?t.suffix:""}))},enumerable:!0,configurable:!0}),t.prototype.findWithPredicate=function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null},t.\u0275prov=St({factory:function(){return new t(ae(ME))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(ME))},t}(),DE=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new LS(new dE(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return Object.defineProperty(t.prototype,"activations",{get:function(){var t=[];return this.registry.forEach((function(e,n){e.matches&&t.push(n)})),t},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some((function(t){return t.matches}))},t.prototype.observe=function(t,e){var n=this;if(void 0===e&&(e=!1),t&&t.length){var r=this._observable$.pipe(Qm((function(n){return!e||t.indexOf(n.mediaQuery)>-1})));return rt(new T((function(e){var r=n.registerQuery(t);if(r.length){var i=r.pop();r.forEach((function(t){e.next(t)})),n.source.next(i)}e.complete()})),r)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return function(t,e){var n=t.filter((function(t){return!NE[t]}));if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach((function(t){return NE[t]=i}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=function(n){e._zone.run((function(){return e.source.next(new dE(n.matches,t))}))},i=e.registry.get(t);i||((i=e.buildMQL(t)).addListener(n),e.pendingRemoveListenerFns.push((function(){return i.removeListener(n)})),e.registry.set(t,i)),i.matches&&r.push(new dE(!0,t))})),r},t.prototype.ngOnDestroy=function(){for(var t;t=this.pendingRemoveListenerFns.pop();)t()},t.prototype.buildMQL=function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(t,rd(this._platformId))},t.\u0275prov=St({factory:function(){return new t(ae(Bu),ae(Ou),ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(Bu),ae(Ou),ae(yl))},t}(),NE={},LE={alias:"print",mediaQuery:"print",priority:1e3},VE=function(){function t(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new jE,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return u(t,["print"])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith("print")},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t}))},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?u(this.printBreakPoints,[e]):this.printBreakPoints).sort(AE)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),vE(t,e)},t.prototype.registerBeforeAfterPrintHooks=function(t){var e=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new dE(!0,"print"))),t.updateStyles())},r=function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(r)}},t.prototype.interceptEvents=function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(AE))}},t.prototype.ngOnDestroy=function(){var t=this;this.beforePrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("beforeprint",e)})),this.afterPrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("afterprint",e)}))},t.\u0275prov=St({factory:function(){return new t(ae(RE),ae(fE),ae(yl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(RE),ae(fE),ae(yl))},t}(),jE=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(LE),t.sort(AE),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints},t.prototype.addBreakpoint=function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?u([t],this.printBreakpoints):u(this.printBreakpoints,[t]))},t.prototype.clear=function(){this.printBreakpoints=[]},t}();function FE(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.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":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var BE=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:FE(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:FE(t);e.forEach((function(t){n._applyMultiValueStyleToElement(r,t)}))},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||id(this._platformId)&&this._serverModuleLoaded?e:""]},t.prototype.hasWrap=function(t){return"wrap"===this.lookupStyle(t,"flex-wrap")},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return rd(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(rd(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach((function(r){var i=t[r],o=Array.isArray(i)?i:[i];o.sort();for(var a=0,s=o;a<s.length;a++){var c=s[a];c=c?c+"":"",rd(n._platformId)||!n._serverModuleLoaded?rd(n._platformId)?e.style.setProperty(r,c):n._setServerStyle(e,r,c):n._serverStylesheet.addStyleToElement(e,r,c)}}))},t.prototype._setServerStyle=function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var r=this._readStyleAttribute(t);r[e]=n||"",this._writeStyleAttribute(t,r)},t.prototype._getServerStyle=function(t,e){return this._readStyleAttribute(t)[e]||""},t.prototype._readStyleAttribute=function(t){var e={},n=t.getAttribute("style");if(n)for(var r=n.split(/;+/g),i=0;i<r.length;i++){var o=r[i].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.\u0275prov=St({factory:function(){return new t(ae(pE),ae(mE),ae(Ou),ae(fE))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(pE),ae(mE),ae(Ou),ae(fE))},t}(),UE=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}();function zE(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var r=[e,n,t],i=t.indexOf("calc");if(i>0)r[2]=HE(t.substring(i).trim()),2==(o=t.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=HE(t.trim());else{var o;r=3===(o=t.split(" ")).length?o:[e,n,t]}return r}function HE(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var WE=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,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 D,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=vE(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(AE),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(AE),this.updateStyles()))},t.prototype.init=function(t,e,n,r,i){void 0===i&&(i=[]),GE(this.updateMap,t,e,n),GE(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)},t.prototype.getValue=function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(Qm((function(n){return n.element===t&&n.key===e})))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach((function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach((function(e,i){t.updateElement(n,i,e),r.delete(i)})),r.forEach((function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)}))}))},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((function(e,r){return n.updateElement(t,r,e)})))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var r=this;if(n&&n.length){var i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){var o=rt.apply(void 0,n).subscribe((function(){var n=r.getValue(t,e);r.updateElement(t,e,n)}));i.set(e,o)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n<this.activatedBreakpoints.length;n++){var r=t.get(this.activatedBreakpoints[n].alias);if(r&&(void 0===e||r.has(e)&&null!=r.get(e)))return r}var i=t.get("");return void 0===e||i&&i.has(e)?i:void 0},t.prototype.observeActivations=function(){var t=this.breakpoints.items.map((function(t){return t.mediaQuery}));this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(jm(this.hook.interceptEvents(this)),Qm(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))},t.\u0275prov=St({factory:function(){return new t(ae(DE),ae(RE),ae(VE))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ae(DE),ae(RE),ae(VE))},t}();function GE(t,e,n,r){if(void 0!==r){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}}var qE=["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"],ZE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=qE,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i,o,a,s){var c=t.call(this,e,null,n,r)||this;return c.ngClassInstance=s,c.DIRECTIVE_KEY="ngClass",c.ngClassInstance||(c.ngClassInstance=new Bl(i,o,e,a)),c.init(),c.setValue("",""),c}return i(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this.ngClassInstance.klass=t,this.setValue(t,"")},enumerable:!0,configurable:!0}),e.prototype.updateWithValue=function(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()},e.prototype.ngDoCheck=function(){this.ngClassInstance.ngDoCheck()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(WE),Ua(Sc),Ua(Cc),Ua(sc),Ua(Bl,10))},e.\u0275dir=Ae({type:e,inputs:{klass:["class","klass"]},features:[Ls]}),e}(_E)),QE=function(){return function(t,e,n){void 0===n&&(n=!0),this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}();function YE(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function KE(t){var e=t.split(":"),n=e[0],r=e.slice(1);return new QE(n,r.join(":"))}function JE(t,e){return e.key&&(t[e.key]=e.value),t}var XE=["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"],$E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=XE,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i,o,a,s,c,u){var l=t.call(this,e,null,n,r)||this;l.sanitizer=i,l.ngStyleInstance=s,l.DIRECTIVE_KEY="ngStyle",l.ngStyleInstance||(l.ngStyleInstance=new Jl(e,o,a)),l.init();var d=l.nativeElement.getAttribute("style")||"";return l.fallbackStyles=l.buildStyleMap(d),l.isServer=c&&id(u),l}return i(e,t),e.prototype.updateWithValue=function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=o(o({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()},e.prototype.clearStyles=function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()},e.prototype.buildStyleMap=function(t){var e,n=this,r=function(t){return n.sanitizer.sanitize(ai.STYLE,t)||""};if(t)switch(YE(t)){case"string":return tk((void 0===e&&(e=";"),String(t).trim().split(e).map((function(t){return t.trim()})).filter((function(t){return""!==t}))),r);case"array":return tk(t,r);case"set":default:return function(t,e){var n=[];return"set"===YE(t)?t.forEach((function(t){return n.push(t)})):Object.keys(t).forEach((function(e){n.push(e+":"+t[e])})),function(t,e){return t.map(KE).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(JE,{})}(n,e)}(t,r)}return{}},e.prototype.ngDoCheck=function(){this.ngStyleInstance.ngDoCheck()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(WE),Ua(Id),Ua(Cc),Ua(sc),Ua(Jl,10),Ua(mE),Ua(Ou))},e.\u0275dir=Ae({type:e,features:[Ls]}),e}(_E));function tk(t,e){return t.map(KE).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(JE,{})}var ek=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[lE]]}),t}(),nk=n("dP7y"),rk=n("joaK"),ik=n.n(rk),ok=n("bGVd"),ak=n.n(ok),sk=(n("mgp7"),function(){function t(){}return t.prototype.linkify=function(t,e){return t.linkify(e)},t.prototype.find=function(t){return Object(nk.find)(t)},t.prototype.test=function(t){return"string"==typeof t?Object(nk.test)(t):nk.test.apply(nk,t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:function(e){return t.\u0275fac(e)}}),t}()),ck=new Jt("NgxLinkifyjsConfig"),uk={enableHash:!0,enableMention:!0},lk=function(){function t(t){this.config=t,t.enableHash&&ik()(nk),t.enableMention&&ak()(nk)}return t.forRoot=function(e){return void 0===e&&(e=uk),{ngModule:t,providers:[sk,{provide:ck,useValue:e}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(ck))},imports:[[nd]]}),t}(),dk=function(){function t(t){this.linkifyService=t}return t.prototype.transform=function(t){return t?this.linkifyService.linkify(t):t},t.\u0275fac=function(e){return new(e||t)(Ua(sk))},t.\u0275pipe=Ie({name:"linkify",type:t,pure:!0}),t}(),pk=["chatScroll"],hk=["chatInput"];function fk(t,e){if(1&t&&(qa(0,"div",13),Qa(1,"img",14),qa(2,"div",15),qa(3,"div",16),qa(4,"p"),Ms(5),Za(),Za(),qa(6,"div",17),Qa(7,"span",18),Qa(8,"p",19),Qc(9,"linkify"),Za(),Za(),Za()),2&t){var n=e.$implicit;Wa("ngClass",n.isLocal?"right":"left"),Di(1),Wa("src",n.userAvatar,pi),Di(4),As(n.nickname),Di(3),Wa("innerHTML",Yc(9,4,n.message),li)}}var mk=function(){function t(t){this.chatService=t,this.messageList=[]}return t.prototype.onKeydownHandler=function(t){console.log(t),this.chatOpened&&this.close()},t.prototype.ngOnInit=function(){this.subscribeToMessages(),this.subscribeToToggleChat()},t.prototype.ngOnDestroy=function(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe(),this.chatToggleSubscription&&this.chatToggleSubscription.unsubscribe()},t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.sendMessage()},t.prototype.sendMessage=function(){this.chatService.sendMessage(this.message),this.message=""},t.prototype.scrollToBottom=function(){var t=this;setTimeout((function(){try{t.chatScroll.nativeElement.scrollTop=t.chatScroll.nativeElement.scrollHeight}catch(e){}}),20)},t.prototype.close=function(){this.chatService.toggleChat()},t.prototype.subscribeToMessages=function(){var t=this;this.chatMessageSubscription=this.chatService.messagesObs.subscribe((function(e){t.messageList=e}))},t.prototype.subscribeToToggleChat=function(){var t=this;this.chatToggleSubscription=this.chatService.toggleChatObs.subscribe((function(e){t.chatOpened=e,t.chatOpened&&(t.scrollToBottom(),setTimeout((function(){t.chatInput.nativeElement.focus()})))}))},t.\u0275fac=function(e){return new(e||t)(Ua(sE))},t.\u0275cmp=xe({type:t,selectors:[["chat-component"]],viewQuery:function(t,e){var n;1&t&&(uu(pk,!0),uu(hk,!0)),2&t&&(su(n=fu())&&(e.chatScroll=n.first),su(n=fu())&&(e.chatInput=n.first))},hostBindings:function(t,e){1&t&&ts("keydown.escape",(function(t){return e.onKeydownHandler(t)}),!1,nr)},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(t,e){1&t&&(qa(0,"div",0),qa(1,"div",1),qa(2,"div",2),qa(3,"span"),Ms(4," CHAT"),Za(),qa(5,"button",3),ts("click",(function(){return e.close()})),qa(6,"mat-icon",4),Ms(7,"highlight_off"),Za(),Za(),Za(),qa(8,"div",5,6),Ba(10,fk,10,6,"div",7),Za(),qa(11,"div",8),qa(12,"input",9,10),ts("keypress",(function(t){return e.eventKeyPress(t)}))("ngModelChange",(function(t){return e.message=t})),Za(),qa(14,"button",11),ts("click",(function(){return e.sendMessage()})),qa(15,"mat-icon",12),Ms(16,"send"),Za(),Za(),Za(),Za(),Za()),2&t&&(Di(1),bs("chatComponentLight",e.lightTheme),Di(9),Wa("ngForOf",e.messageList),Di(2),Wa("ngModel",e.message))},directives:[jv,Z_,wS,zl,Wd,Kd,Xp,Bl,ZE],pipes:[dk],styles:["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:calc(100% - 20px)}input[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#chatToolbar[_ngcontent-%COMP%]{height:30px;background-color:#3d3d3d;box-sizing:border-box;font-weight:700;font-size:14px;text-align:center;padding-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff}#closeButton[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px}#chatComponent[_ngcontent-%COMP%]{background-color:#b8b8b8;position:absolute;z-index:99999;top:0;left:0;right:0;bottom:0;margin:auto;height:calc(100% - 30px);width:calc(100% - 30px);border-radius:20px}.message-wrap[_ngcontent-%COMP%]{padding:0 15px;height:calc(100% - 80px);overflow:auto}.message[_ngcontent-%COMP%]{position:relative;padding:7px 0}.user-img[_ngcontent-%COMP%]{position:absolute;border-radius:45px;width:60px;height:60px;top:15px}.msg-detail[_ngcontent-%COMP%]{width:calc(100% - 65px);display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:15px}.msg-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8em;color:#000;font-style:italic}.msg-content[_ngcontent-%COMP%]{position:relative;margin-top:5px;border-radius:5px;padding:8px;color:#000;width:auto;max-width:95%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;transform:rotate(45deg);position:absolute}.text[_ngcontent-%COMP%]{word-break:break-all}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%]{padding-left:65px}.message.left[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{left:-5px;border:1px solid hsla(0,0%,94.1%,.58)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#f0f0f0;float:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#f0f0f0;border-bottom-width:0;border-left-width:0;left:-5px}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{right:-5px;border:1px solid rgba(200,255,232,.67)}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#c8ffe8;float:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#c8ffe8;border-bottom-width:0;border-left-width:0;right:-5px}#messageInput[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:#fff;text-align:center;padding:10px 0;height:30px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}#messageInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%;height:100%;border:none;outline:none;font-size:14px;margin-left:-6%}#sendButton[_ngcontent-%COMP%]{background-color:#81e9b0;position:absolute;right:10px;top:0;bottom:0;margin:auto;border:1px solid #7ae2a9;box-shadow:none!important}#sendButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:3px!important;margin-bottom:2px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6b6b6b}.chatComponentLight[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#eee!important}"]}),t}(),gk=function(){function t(){this.ovSettings={chat:!0,autopublish:!1,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,layoutSpeaking:!0,exit:!0}}}return t.prototype.set=function(t){this.ovSettings=t},t.prototype.isAutoPublish=function(){return this.ovSettings.autopublish},t.prototype.hasVideo=function(){return this.ovSettings.toolbarButtons.video},t.prototype.hasScreenSharing=function(){return this.ovSettings.toolbarButtons.screenShare},t.prototype.hasLayoutSpeaking=function(){return this.ovSettings.toolbarButtons.layoutSpeaking},t.prototype.hasFullscreen=function(){return this.ovSettings.toolbarButtons.fullscreen},t.prototype.hasAudio=function(){return this.ovSettings.toolbarButtons.audio},t.prototype.hasChat=function(){return this.ovSettings.chat},t.prototype.hasExit=function(){return this.ovSettings.toolbarButtons.exit},t.prototype.setScreenSharing=function(t){this.ovSettings.toolbarButtons.screenShare=t},t}(),vk=function(t){return t.ROOT_CLASS="OT_root",t}({}),yk=function(t){return t.BIG_ELEMENT_CLASS="OV_big",t}({}),bk=function(t){return t.DARK="dark",t.LIGHT="light",t}({}),_k=function(){function t(){this.theme=bk.DARK,this.ovSettings=new gk}return t.prototype.getComponentName=function(){},t.prototype.getOvSettings=function(){return this.ovSettings},t.prototype.getSessionName=function(){return this.sessionName},t.prototype.getOvServerUrl=function(){return this.ovServerUrl},t.prototype.getOvSecret=function(){return this.ovSecret},t.prototype.getTheme=function(){return this.theme},t.prototype.getNickname=function(){return this.nickname},t.prototype.getTokens=function(){return this.tokens},t.prototype.getScreenToken=function(){return this.tokens[1]},t.prototype.getWebcamToken=function(){return this.tokens[0]},t.prototype.setOvSettings=function(t){t&&this.ovSettings.set(t)},t.prototype.setSessionName=function(t){this.sessionName=t},t.prototype.setOvServerUrl=function(t){this.ovServerUrl=t},t.prototype.setOvSecret=function(t){this.ovSecret=t},t.prototype.setTheme=function(t){Object.values(bk).includes(t)&&(this.theme=t===bk.DARK?bk.DARK:bk.LIGHT)},t.prototype.setNickname=function(t){this.nickname=t},t.prototype.setTokens=function(t){this.tokens=t},t.prototype.setAppLogoUrl=function(t){t&&(this.appLogoUrl=t)},t.prototype.getChatAvatarURL=function(){return this.chatAvatarURL},t.prototype.setChatAvatarURL=function(t){t&&(this.chatAvatarURL=t)},t.prototype.getAppLogoUrl=function(){return this.appLogoUrl},t.prototype.canJoinToSession=function(){return this.canOVCallGenerateToken()||this.hasReceivedToken()},t.prototype.hasTokens=function(){var t;return(null===(t=this.tokens)||void 0===t?void 0:t.length)>0},t.prototype.canOVCallGenerateToken=function(){return!!(this.sessionName&&this.ovServerUrl&&this.ovSecret&&this.nickname)},t.prototype.hasReceivedToken=function(){return!!this.tokens&&this.tokens.length>0&&!!this.nickname},t}(),wk=function(t){return t.FRONT="FRONT",t.BACK="BACK",t}({}),Sk=function(){function t(t,e){this.dialogRef=t,this.data=e}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Ua(ob),Ua(ab))},t.\u0275cmp=xe({type:t,selectors:[["app-dialog-error"]],decls:5,vars:2,consts:[["mat-dialog-title",""]],template:function(t,e){1&t&&(qa(0,"div"),qa(1,"h1",0),Ms(2),Za(),qa(3,"span"),Ms(4),Za(),Za()),2&t&&(Di(2),As(e.data.header),Di(2),Is(" ",e.data.message," "))},directives:[pb],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),t}(),Ck=function(){function t(t){this.dialog=t}return t.prototype.toggleFullscreen=function(t){var e=window.document,n=e.getElementById(t);e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement?e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen&&e.webkitExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()},t.prototype.getOpenViduAvatar=function(){return"https://openvidu.io/img/logos/openvidu_globe_bg_transp_cropped.png"},t.prototype.getOpenViduLogo=function(){return"https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/openvidu-call-front/src/assets/images/openvidu_logo.png"},t.prototype.handlerScreenShareError=function(t){t&&"SCREEN_SHARING_NOT_SUPPORTED"===t.name?alert("Your browser does not support screen sharing"):t&&"SCREEN_EXTENSION_DISABLED"===t.name&&alert("You need to enable screen sharing extension")},t.prototype.getOpenviduLayoutOptions=function(){return{maxRatio:1.5,minRatio:.6,fixedRatio:!1,bigClass:yk.BIG_ELEMENT_CLASS,bigPercentage:.85,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0}},t.prototype.generateNickname=function(){return"OpenVidu_User"+Math.floor(100*Math.random())},t.prototype.isFF=function(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)},t.prototype.isMobile=function(){return this.isAndroid()||this.isIos()},t.prototype.showErrorMessage=function(t,e,n){void 0===n&&(n=!1),this.dialogRef=this.dialog.open(Sk,{data:{header:t,message:e},disableClose:n})},t.prototype.closeDialog=function(){this.dialogRef.close()},t.prototype.getHTMLElementByClassName=function(t,e){for(;t&&t!==document.body;){if(t.className.includes(e))return t;t=t.parentElement}return null},t.prototype.toggleBigElementClass=function(t){var e,n;(null===(e=t)||void 0===e?void 0:e.className.includes(yk.BIG_ELEMENT_CLASS))?null===(n=t)||void 0===n||n.classList.remove(yk.BIG_ELEMENT_CLASS):t.classList.add(yk.BIG_ELEMENT_CLASS)},t.prototype.removeAllBigElementClass=function(){for(var t=document.getElementsByClassName(yk.BIG_ELEMENT_CLASS);t.length>0;)this.toggleBigElementClass(t[0])},t.prototype.isAndroid=function(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)},t.prototype.isIos=function(){return/\b(\w*iOS\w*)\b/.test(navigator.userAgent)},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(lb))},providedIn:"root"}),t}(),Ok=function(){function t(t){this.loggerSrv=t,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}return t.prototype.set=function(t,e){var n=JSON.stringify({item:e});this.log.d('Storing on localStorage "'+t+'" with value "'+n+'"'),this.storage.setItem(t,n)},t.prototype.get=function(t){var e,n=JSON.parse(this.storage.getItem(t));return(null===(e=n)||void 0===e?void 0:e.item)?n.item:null},t.prototype.clear=function(){this.log.d("Clearing localStorage"),this.storage.clear()},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(eE))},providedIn:"root"}),t}(),xk=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},Ek=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},kk=function(){function t(t,e,n){this.loggerSrv=t,this.utilSrv=e,this.storageSrv=n,this.VIDEO_DEVICE="openviduCallVideoDevice",this.AUDIO_DEVICE="openviduCallAudioDevice",this.OV=null,this.cameras=[],this.microphones=[],this.log=this.loggerSrv.get("DevicesService"),this.OV=new $x.OpenVidu}return t.prototype.initDevices=function(){return xk(this,void 0,void 0,(function(){return Ek(this,(function(t){switch(t.label){case 0:return[4,this.initOpenViduDevices()];case 1:return t.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(t){return t.type===wk.FRONT}))),[2]}}))}))},t.prototype.initOpenViduDevices=function(){return xk(this,void 0,void 0,(function(){var t;return Ek(this,(function(e){switch(e.label){case 0:return t=this,[4,this.OV.getDevices()];case 1:return t.devices=e.sent(),[2]}}))}))},t.prototype.initAudioDevices=function(){var t=this;this.devices.filter((function(t){return"audioinput"===t.kind})).forEach((function(e){t.microphones.push({label:e.label,device:e.deviceId})}))},t.prototype.initVideoDevices=function(){var t=this;this.devices.filter((function(t){return"videoinput"===t.kind})).forEach((function(e,n){var r={label:e.label,device:e.deviceId,type:wk.BACK};t.utilSrv.isMobile()?r.label.toLowerCase().includes(wk.FRONT.toLowerCase())&&(r.type=wk.FRONT):0===n&&(r.type=wk.FRONT),t.cameras.push(r)})),this.log.d("Camera selected",this.camSelected)},t.prototype.getCamSelected=function(){if(0!==this.cameras.length)return this.getCamFromStorage()||this.camSelected||this.cameras[0];this.log.e("No video devices found!")},t.prototype.getCamFromStorage=function(){var t,e=this.storageSrv.get(this.VIDEO_DEVICE);if(e=this.getCameraByDeviceField(null===(t=e)||void 0===t?void 0:t.device))return e},t.prototype.getMicSelected=function(){if(0!==this.microphones.length)return this.getMicFromStogare()||this.micSelected||this.microphones[0];this.log.e("No audio devices found!")},t.prototype.getMicFromStogare=function(){var t,e=this.storageSrv.get(this.AUDIO_DEVICE);if(e=this.getMicrophoneByDeviceField(null===(t=e)||void 0===t?void 0:t.device))return e},t.prototype.setCamSelected=function(t){this.camSelected=this.getCameraByDeviceField(t),this.saveCamToStorage(this.camSelected)},t.prototype.saveCamToStorage=function(t){this.storageSrv.set(this.VIDEO_DEVICE,t)},t.prototype.setMicSelected=function(t){this.micSelected=this.getMicrophoneByDeviceField(t),this.saveMicToStorage(this.micSelected)},t.prototype.saveMicToStorage=function(t){this.storageSrv.set(this.AUDIO_DEVICE,t)},t.prototype.needUpdateVideoTrack=function(t){return this.getCamSelected().device!==t},t.prototype.needUpdateAudioTrack=function(t){return this.getMicSelected().device!==t},t.prototype.getCameras=function(){return this.cameras},t.prototype.getMicrophones=function(){return this.microphones},t.prototype.hasVideoDeviceAvailable=function(){var t;return!!(null===(t=this.devices)||void 0===t?void 0:t.find((function(t){return"videoinput"===t.kind})))},t.prototype.hasAudioDeviceAvailable=function(){var t;return!!(null===(t=this.devices)||void 0===t?void 0:t.find((function(t){return"audioinput"===t.kind})))},t.prototype.cameraNeedsMirror=function(t){var e;return(null===(e=this.getCameraByDeviceField(t))||void 0===e?void 0:e.type)===wk.FRONT},t.prototype.areEmptyLabels=function(){return!!this.cameras.find((function(t){return""===t.label}))||!!this.microphones.find((function(t){return""===t.label}))},t.prototype.getCameraByDeviceField=function(t){return this.cameras.find((function(e){return e.device===t||e.label===t}))},t.prototype.getMicrophoneByDeviceField=function(t){return this.microphones.find((function(e){return e.device===t||e.label===t}))},t.prototype.resetDevicesArray=function(){this.cameras=[{label:"None",device:null,type:null}],this.microphones=[{label:"None",device:null,type:null}]},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(eE),ae(Ck),ae(Ok))},providedIn:"root"}),t}(),Pk=function(){function t(t,e){this.http=t,this.loggerSrv=e,this.log=this.loggerSrv.get("NetworkService"),this.baseHref="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":"")}return t.prototype.getToken=function(t,e,n){return r=this,void 0,o=function(){var r,i;return function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return e&&n?[4,this.createSession(t,e,n)]:[3,3];case 1:return r=o.sent(),[4,this.createToken(r,e,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:t}).toPromise()];case 4:return[2,o.sent()];case 5:if(404===(i=o.sent()).status)throw{status:i.status,message:"Cannot connect with backend. "+i.url+" not found"};throw i;case 6:return[2]}}))},new((i=void 0)||(i=Promise))((function(t,e){function n(t){try{s(o.next(t))}catch(n){e(n)}}function a(t){try{s(o.throw(t))}catch(n){e(n)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,a)}s((o=o.apply(r,[])).next())}));var r,i,o},t.prototype.createSession=function(t,e,n){var r=this;return new Promise((function(i,o){var a=JSON.stringify({customSessionId:t}),s={headers:new i_({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return r.http.post(e+"/api/sessions",a,s).pipe(Yb((function(e){return 409===e.status&&i(t),"Unknown Error"===e.statusText&&o({status:401,message:"ERR_CERT_AUTHORITY_INVALID"}),ny(e)}))).subscribe((function(t){i(t.id)}))}))},t.prototype.createToken=function(t,e,n){var r=this;return new Promise((function(i,o){var a=JSON.stringify({session:t}),s={headers:new i_({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return r.http.post(e+"/api/tokens",a,s).pipe(Yb((function(t){return o(t),ny(t)}))).subscribe((function(t){r.log.d(t),i(t.token)}))}))},t.\u0275prov=St({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ae(y_),ae(eE))},providedIn:"root"}),t}(),Tk=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||t.touched||e&&e.submitted))},t}(),Mk=function(t,e){return{titleContent:!0,titleContentLight:t,titleContentDark:e}};function Ak(t,e){if(1&t&&(qa(0,"div",3),qa(1,"span",4),Ms(2),Za(),Za()),2&t){var n=os();Wa("ngClass",(r=2,i=Mk,o=n.lightTheme,a=!n.lightTheme,function(t,e,n,r,i,o,a){var s=e+n;return function(t,e,n,r){var i=Va(t,e,n);return Va(t,e+1,r)||i}(t,s,i,o)?La(t,s+2,a?r.call(a,i,o):r(i,o)):qc(t,s+2)}(cn(),vn(),r,i,o,a,s))),Di(2),As(n.sessionId)}var r,i,o,a,s}var Ik=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["app-logo"]],inputs:{lightTheme:"lightTheme",compact:"compact",sessionId:"sessionId",logoURL:"logoURL"},decls:3,vars:2,consts:[["id","navSessionInfo"],["id","header_img",3,"src"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["id","session-title"]],template:function(t,e){1&t&&(qa(0,"div",0),Qa(1,"img",1),Ba(2,Ak,3,5,"div",2),Za()),2&t&&(Di(1),Wa("src",e.logoURL,pi),Di(1),Wa("ngIf",!e.compact&&e.sessionId))},directives:[Wl,Bl,ZE],styles:["#header_img[_ngcontent-%COMP%]{max-width:140px;margin-right:10px;margin-top:-3px}.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}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}@media (max-width:600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),t}(),Rk=["row","column","row-reverse","column-reverse"];function Dk(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return Rk.find((function(t){return t===n}))||(n=Rk[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,Lk(r),!!i]}function Nk(t){return Dk(t)[0].indexOf("row")>-1}function Lk(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var Vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.buildStyles=function(t){return void 0===(e=(r=Dk(t))[1])&&(e=null),void 0===(n=r[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null};var e,n,r},e.\u0275prov=St({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=wr(e);return e}(UE),jk=["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"],Fk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=jk,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.DIRECTIVE_KEY="layout",o.styleCache=Bk,o.init(),o}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(Vk),Ua(WE))},e.\u0275dir=Ae({type:e,features:[Ls]}),e}(_E)),Bk=new Map,Uk={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},zk=function(t){function e(e){var n=t.call(this)||this;return n._styler=e,n}return i(e,t),e.prototype.buildStyles=function(t,e){return t.endsWith(Yk)?(n=t=t.slice(0,t.indexOf(Yk)),r=e.directionality,o=(i=n.split(" "))[0],s="0px",c=(a=function(t){return"-"+t})(i[1]||o),u="0px","rtl"===r?u=a(o):s=a(o),{margin:"0px "+s+" "+c+" "+u}):{};var n,r,i,o,a,s,c,u},e.prototype.sideEffect=function(t,e,n){var r,i,a,s,c,u,l=n.items;if(t.endsWith(Yk)){var d=(r=t=t.slice(0,t.indexOf(Yk)),i=n.directionality,s=(a=r.split(" "))[0],c="0px",u="0px","rtl"===i?u=s:c=s,{padding:"0px "+c+" "+(a[1]||s)+" "+u});this._styler.applyStyleToElements(d,n.items)}else{var p=l.pop(),h=function(t,e){var n=Kk(e.directionality,e.layout),r=o({},Uk);return r[n]=t,r}(t,n);this._styler.applyStyleToElements(h,l),this._styler.applyStyleToElements(Uk,[p])}},e.\u0275prov=St({factory:function(){return new e(ae(BE))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(ae(BE))},e}(UE),Hk=["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"],Wk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Hk,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,o,i,a)||this;s.zone=n,s.directionality=r,s.styleUtils=i,s.layout="row",s.DIRECTIVE_KEY="layout-gap",s.observerSubject=new D;var c=[s.directionality.change,s.observerSubject.asObservable()];return s.init(c),s.marshal.trackValue(s.nativeElement,"layout").pipe(Kv(s.destroySubject)).subscribe(s.onLayoutChange.bind(s)),s}return i(e,t),Object.defineProperty(e.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.buildChildObservable(),this.triggerUpdate()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.observer&&this.observer.disconnect()},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],Rk.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e.prototype.updateWithValue=function(t){var e=this,n=this.childrenNodes.filter((function(t){return 1===t.nodeType&&e.willDisplay(t)})).sort((function(t,n){var r=+e.styler.lookupStyle(t,"order"),i=+e.styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1}));if(n.length>0){var r=this.directionality.value,i=this.layout;"row"===i&&"rtl"===r?this.styleCache=Gk:"row"===i&&"rtl"!==r?this.styleCache=Zk:"column"===i&&"rtl"===r?this.styleCache=qk:"column"===i&&"rtl"!==r&&(this.styleCache=Qk),this.addStyles(t,{directionality:r,items:n,layout:i})}},e.prototype.clearStyles=function(){var e,n=Object.keys(this.mru).length>0,r=n?"padding":Kk(this.directionality.value,this.layout);n&&t.prototype.clearStyles.call(this),this.styleUtils.applyStyleToElements(((e={})[r]="",e),this.childrenNodes)},e.prototype.willDisplay=function(t){var e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")},e.prototype.buildChildObservable=function(){var t=this;this.zone.runOutsideAngular((function(){"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver((function(e){e.some((function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0}))&&t.observerSubject.next()})),t.observer.observe(t.nativeElement,{childList:!0}))}))},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(Bu),Ua(qg),Ua(BE),Ua(zk),Ua(WE))},e.\u0275dir=Ae({type:e,features:[Ls]}),e}(_E)),Gk=new Map,qk=new Map,Zk=new Map,Qk=new Map,Yk=" grid";function Kk(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function Jk(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}var Xk=function(t){function e(e){var n=t.call(this)||this;return n.layoutConfig=e,n}return i(e,t),e.prototype.buildStyles=function(t,e){var n=t.split(" "),r=n[0],i=n[1],o=n.slice(2).join(" "),a=e.direction.indexOf("column")>-1?"column":"row",s=Nk(a)?"max-width":"max-height",c=Nk(a)?"min-width":"min-height",u=String(o).indexOf("calc")>-1,l=u||"auto"===o,d=String(o).indexOf("%")>-1&&!u,p=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,h=u||p;i="0"==i?0:i;var f=!(r="0"==r?0:r)&&!i,m={},g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,o="auto";break;case"grow":o="100%";break;case"noshrink":i=0,o="auto";break;case"auto":break;case"none":r=0,i=0,o="auto";break;default:h||d||isNaN(o)||(o+="%"),"0%"===o&&(h=!0),"0px"===o&&(o="0%"),m=Jk(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":h?o:"100%"}:{flex:r+" "+i+" "+(h?o:"100%")})}return m.flex||m["flex-grow"]||(m=Jk(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":o}:{flex:r+" "+i+" "+o})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[c]=f||h&&r?o:null,m[s]=f||!l&&i?o:null),m[c]||m[s]?e.hasWrap&&(m[u?"flex-basis":"flex"]=m[s]?u?m[s]:r+" "+i+" "+m[s]:u?m[c]:r+" "+i+" "+m[c]):m=Jk(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":o}:{flex:r+" "+i+" "+o}),Jk(m,{"box-sizing":"border-box"})},e.\u0275prov=St({factory:function(){return new e(ae(fE))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(ae(fE))},e}(UE),$k=["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"],tP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=$k,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i,o){var a=t.call(this,e,i,n,o)||this;return a.layoutConfig=r,a.marshal=o,a.DIRECTIVE_KEY="flex",a.direction=void 0,a.wrap=void 0,a.flexGrow="1",a.flexShrink="1",a.init(),a}return i(e,t),Object.defineProperty(e.prototype,"shrink",{get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grow",{get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Kv(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Kv(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))},e.prototype.onLayoutChange=function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()},e.prototype.updateWithValue=function(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var e=this.direction,n=e.startsWith("row"),r=this.wrap;n&&r?this.styleCache=rP:n&&!r?this.styleCache=eP:!n&&r?this.styleCache=iP:n||r||(this.styleCache=nP);var i=zE(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(i.join(" "),{direction:e,hasWrap:r})},e.prototype.triggerReflow=function(){var t=this.activatedValue;if(void 0!==t){var e=zE(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(fE),Ua(Xk),Ua(WE))},e.\u0275dir=Ae({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Ls]}),e}(_E)),eP=new Map,nP=new Map,rP=new Map,iP=new Map,oP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.buildStyles=function(t){return{order:t&&parseInt(t,10)||""}},e.\u0275prov=St({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=wr(e);return e}(UE),aP=["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"],sP=function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.DIRECTIVE_KEY="flex-order",o.styleCache=cP,o.init(),o}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(oP),Ua(WE))},e.\u0275dir=Ae({type:e,features:[Ls]}),e}(_E),cP=new Map,uP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=aP,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(sP),lP={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},dP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.buildStyles=function(t){return lP},e.\u0275prov=St({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=wr(e);return e}(UE),pP=function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.styleCache=hP,o.addStyles(""),o}return i(e,t),e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(dP),Ua(WE))},e.\u0275dir=Ae({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Ls]}),e}(_E),hP=new Map,fP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}i(e,t),e.prototype.buildStyles=function(t,e){var n={},r=t.split(" "),i=r[1];switch(r[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(i){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 Jk(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===i?Nk(e.layout)?null:"100%":null,"max-height":"stretch"===i&&Nk(e.layout)?"100%":null})},e.\u0275prov=St({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=wr(e);return e}(UE),mP=["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"],gP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=mP,e}i(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({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:[Ls]});var n=wr(e);return e}(function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Kv(o.destroySubject)).subscribe(o.onLayoutChange.bind(o)),o}return i(e,t),e.prototype.updateWithValue=function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=wP:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=CP:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=SP:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=OP:"column-reverse"!==e||n||(this.styleCache=_P):this.styleCache=yP:this.styleCache=bP:this.styleCache=vP,this.addStyles(t,{layout:e,inline:n})},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),Rk.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e.\u0275fac=function(t){return new(t||e)(Ua(rc),Ua(BE),Ua(fP),Ua(WE))},e.\u0275dir=Ae({type:e,features:[Ls]}),e}(_E)),vP=new Map,yP=new Map,bP=new Map,_P=new Map,wP=new Map,SP=new Map,CP=new Map,OP=new Map,xP=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[lE,Zg]]}),t}(),EP=["videoElement"],kP=function(){function t(){this.toggleVideoSizeEvent=new Kc}return t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t._streamManager&&t._videoElement&&t._streamManager.addVideoElement(t._videoElement.nativeElement)}))},Object.defineProperty(t.prototype,"videoElement",{set:function(t){this._videoElement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamManager",{set:function(t){var e=this;setTimeout((function(){e._streamManager=t,e._videoElement&&e._streamManager&&(e._streamManager.stream.typeOfVideo===Kx.SCREEN?(e._videoElement.nativeElement.style.objectFit="contain",e._videoElement.nativeElement.style.background="#272727",e.enableVideoSizeBig()):e._videoElement.nativeElement.style.objectFit="cover",e._streamManager.addVideoElement(e._videoElement.nativeElement))}))},enumerable:!0,configurable:!0}),t.prototype.enableVideoSizeBig=function(){var t=this;setTimeout((function(){t.toggleVideoSizeEvent.emit(!0)}),590)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["ov-video"]],viewQuery:function(t,e){var n;1&t&&uu(EP,!0),2&t&&su(n=fu())&&(e.videoElement=n.first)},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},outputs:{toggleVideoSizeEvent:"toggleVideoSizeEvent"},decls:2,vars:2,consts:[[3,"muted"],["videoElement",""]],template:function(t,e){1&t&&Qa(0,"video",0,1),2&t&&(Wa("muted",e.mutedSound),ja("id",e.streamManager&&e._streamManager.stream?"video-"+e._streamManager.stream.streamId:"video-undefined"))},styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.37);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:9999999;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} .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}"]}),t}(),PP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasChat()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasChat",type:t,pure:!0}),t}(),TP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasAudio()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasAudio",type:t,pure:!0}),t}(),MP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasVideo()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasVideo",type:t,pure:!0}),t}(),AP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.isAutoPublish()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"isAutoPublish",type:t,pure:!0}),t}(),IP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasScreenSharing()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasScreenSharing",type:t,pure:!0}),t}(),RP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasFullscreen()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasFullscreen",type:t,pure:!0}),t}(),DP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasLayoutSpeaking()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasLayoutSpeaking",type:t,pure:!0}),t}(),NP=function(){function t(){}return t.prototype.transform=function(t){return!t||t.hasExit()},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"hasExit",type:t,pure:!0}),t}(),LP=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},VP=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},jP=["bodyCard"];function FP(t,e){if(1&t&&Qa(0,"ov-video",38),2&t){var n=os(),r=n.$implicit,i=n.index,o=os(2);Wa("streamManager",r.streamManager)("className",o.localUsers.length>1&&0===i?"ovVideoSmall":"")}}function BP(t,e){1&t&&(qa(0,"div",39),qa(1,"span"),Ms(2,"Oops! Camera is not available"),Za(),Za())}function UP(t,e){if(1&t&&(qa(0,"div"),Ba(1,FP,1,2,"ov-video",36),Ba(2,BP,3,0,"div",37),Za()),2&t){var n=e.$implicit,r=os(2);Di(1),Wa("ngIf",n.isCamera()&&r.hasVideoDevices||n.isScreen()),Di(1),Wa("ngIf",n.isCamera()&&!r.hasVideoDevices)}}function zP(t,e){1&t&&(qa(0,"div",46),qa(1,"span"),Ms(2,"Press Avatar Button"),Za(),Za())}function HP(t,e){1&t&&Qa(0,"img",47),2&t&&Wa("src",os(3).videoAvatar,pi)}function WP(t,e){1&t&&Qa(0,"mat-spinner",48),2&t&&Wa("diameter",70)}function GP(t,e){1&t&&Qa(0,"img",47),2&t&&Wa("src",os(3).randomAvatar,pi)}function qP(t,e){if(1&t){var n=Ja();qa(0,"div",40),qa(1,"div",41),qa(2,"div",42),ts("click",(function(){return ln(n),os(2).setAvatar("video")})),Ba(3,zP,3,0,"div",43),Ba(4,HP,1,1,"img",44),Za(),qa(5,"div",42),ts("click",(function(){return ln(n),os(2).setAvatar("random")})),Ba(6,WP,1,1,"mat-spinner",45),Ba(7,GP,1,1,"img",44),Za(),Za(),Za()}if(2&t){var r=os(2);Di(2),ys("background","video"===r.avatarSelected?"lightgreen":"transparent",hi),Di(1),Wa("ngIf",!r.videoAvatar),Di(1),Wa("ngIf",r.videoAvatar),Di(1),ys("background","random"===r.avatarSelected?"lightgreen":"transparent",hi),Di(1),Wa("ngIf",!r.randomAvatar),Di(1),Wa("ngIf",r.randomAvatar)}}function ZP(t,e){1&t&&(qa(0,"mat-error"),Ms(1," Nickname is "),qa(2,"strong"),Ms(3,"required"),Za(),Za())}function QP(t,e){1&t&&(qa(0,"mat-error"),Ms(1," Nickname is "),qa(2,"strong"),Ms(3,"too long!"),Za(),Za())}function YP(t,e){1&t&&(qa(0,"mat-icon",55),Ms(1,"mic"),Za())}function KP(t,e){1&t&&(qa(0,"mat-icon",56),Ms(1,"mic_off"),Za())}function JP(t,e){if(1&t&&(qa(0,"mat-option",57),Ms(1),Za()),2&t){var n=e.$implicit;Wa("value",n.device),Di(1),Is(" ",n.label," ")}}function XP(t,e){if(1&t){var n=Ja();qa(0,"div",24),qa(1,"div",25),qa(2,"div",26),qa(3,"button",49),ts("click",(function(){return ln(n),os(2).toggleMic()})),Ba(4,YP,2,0,"mat-icon",50),Ba(5,KP,2,0,"mat-icon",51),Za(),Za(),qa(6,"div",29),qa(7,"mat-form-field",52),qa(8,"mat-select",53),ts("selectionChange",(function(t){return ln(n),os(2).onMicrophoneSelected(t)})),Ba(9,JP,2,2,"mat-option",54),Za(),Za(),Za(),Za(),Za()}if(2&t){var r=os(2);Di(4),Wa("ngIf",r.isAudioActive),Di(1),Wa("ngIf",!r.isAudioActive),Di(3),Wa("ngModel",r.isAudioActive&&r.micSelected?r.micSelected.device:"None"),Di(1),Wa("ngForOf",r.microphones)}}function $P(t,e){1&t&&(qa(0,"mat-icon",62),Ms(1,"videocam"),Za())}function tT(t,e){1&t&&(qa(0,"mat-icon",63),Ms(1,"videocam_off"),Za())}function eT(t,e){if(1&t&&(qa(0,"mat-option",57),Ms(1),Za()),2&t){var n=e.$implicit;Wa("value",n.device),Di(1),Is(" ",n.label," ")}}function nT(t,e){if(1&t){var n=Ja();qa(0,"div",24),qa(1,"div",25),qa(2,"div",26),qa(3,"button",58),ts("click",(function(){return ln(n),os(2).toggleCam()})),Ba(4,$P,2,0,"mat-icon",59),Ba(5,tT,2,0,"mat-icon",60),Za(),Za(),qa(6,"div",29),qa(7,"mat-form-field",52),qa(8,"mat-select",61),ts("selectionChange",(function(t){return ln(n),os(2).onCameraSelected(t)})),Ba(9,eT,2,2,"mat-option",54),Za(),Za(),Za(),Za(),Za()}if(2&t){var r=os(2);Di(4),Wa("ngIf",r.isVideoActive),Di(1),Wa("ngIf",!r.isVideoActive),Di(3),Wa("ngModel",r.isVideoActive&&r.camSelected?r.camSelected.device:"None"),Di(1),Wa("ngForOf",r.cameras)}}function rT(t,e){1&t&&(qa(0,"mat-icon",68),Ms(1,"screen_share"),Za())}function iT(t,e){1&t&&(qa(0,"mat-icon",69),Ms(1," stop_screen_share"),Za())}function oT(t,e){if(1&t){var n=Ja();qa(0,"div",24),qa(1,"div",25),qa(2,"div",26),qa(3,"button",64),ts("click",(function(){return ln(n),os(2).toggleScreenShare()})),Ba(4,rT,2,0,"mat-icon",65),Ba(5,iT,2,0,"mat-icon",66),Za(),Za(),qa(6,"div",29),qa(7,"mat-form-field",52),Qa(8,"input",67),Za(),Za(),Za(),Za()}if(2&t){var r=os(2);Di(4),Wa("ngIf",r.oVSessionService.isScreenShareEnabled()),Di(1),Wa("ngIf",!r.oVSessionService.isScreenShareEnabled()),Di(3),Wa("ngModel",r.oVSessionService.isScreenShareEnabled()?"Screen":"None")}}function aT(t,e){if(1&t){var n=Ja();qa(0,"div",2),qa(1,"div",3),qa(2,"div",4),qa(3,"div",5),qa(4,"div",6),Qa(5,"app-logo",7),Za(),qa(6,"h3",8),Ms(7),Za(),qa(8,"button",9),ts("click",(function(){return ln(n),os().close()})),qa(9,"mat-icon",10),Ms(10,"highlight_off"),Za(),Za(),Za(),qa(11,"div",11,12),qa(13,"div",13),qa(14,"div",14),qa(15,"div",15),Ba(16,UP,3,2,"div",16),Za(),qa(17,"div",17),qa(18,"button",18),ts("click",(function(){return ln(n),os().takePhoto()})),qa(19,"mat-icon",19),Ms(20,"photo_camera"),Za(),qa(21,"span",20),Ms(22,"Capture Avatar"),Za(),Za(),Za(),Za(),qa(23,"div",21),qa(24,"div",22),qa(25,"h3"),Ms(26,"Avatar"),Za(),Za(),Ba(27,qP,8,8,"div",23),qa(28,"div",24),qa(29,"div",25),qa(30,"div",26),qa(31,"button",27),ts("click",(function(){return ln(n),os().setNicknameForm()})),qa(32,"mat-icon",28),Ms(33,"person"),Za(),Za(),Za(),qa(34,"div",29),qa(35,"form",30),qa(36,"mat-form-field"),qa(37,"input",31),ts("keypress",(function(t){return ln(n),os().eventKeyPress(t)})),Za(),Ba(38,ZP,4,0,"mat-error",32),Ba(39,QP,4,0,"mat-error",32),Za(),Za(),Za(),Za(),Za(),Ba(40,XP,10,4,"div",33),Qc(41,"hasAudio"),Ba(42,nT,10,4,"div",33),Qc(43,"hasVideo"),Ba(44,oT,9,3,"div",33),Qc(45,"hasScreenSharing"),Za(),Za(),Za(),qa(46,"div",34),qa(47,"button",35),ts("click",(function(){return ln(n),os().joinSession()})),Ms(48,"JOIN"),Za(),Za(),Za(),Za(),Za()}if(2&t){var r=os();Di(3),bs("cardHeaderLight",r.lightTheme),Di(2),Wa("logoURL",r.logoURL),Di(1),bs("headerTitleLight",r.lightTheme),Di(1),As(r.mySessionId),Di(9),Wa("ngForOf",r.localUsers),Di(11),Wa("ngIf",r.hasVideoDevices),Di(10),Wa("formControl",r.nicknameFormControl)("errorStateMatcher",r.matcher),Di(1),Wa("ngIf",r.nicknameFormControl.hasError("required")),Di(1),Wa("ngIf",r.nicknameFormControl.hasError("maxlength")),Di(1),Wa("ngIf",r.hasAudioDevices&&Yc(41,15,r.ovSettings)),Di(2),Wa("ngIf",r.hasVideoDevices&&Yc(43,17,r.ovSettings)),Di(2),Wa("ngIf",Yc(45,19,r.ovSettings))}}var sT=function(t){return{display:t}},cT=function(){function t(t,e,n,r,i,o){this.route=t,this.utilsSrv=e,this.oVSessionService=n,this.oVDevicesService=r,this.loggerSrv=i,this.storageSrv=o,this.USER_NICKNAME="openviduCallNickname",this.join=new Kc,this.leaveSession=new Kc,this.publisherCreated=new Kc,this.isVideoActive=!0,this.isAudioActive=!0,this.localUsers=[],this.nicknameFormControl=new Bp("",[np.maxLength(25),np.required]),this.matcher=new Tk,this.log=this.loggerSrv.get("RoomConfigComponent")}return t.prototype.beforeunloadHandler=function(){this.close()},t.prototype.ngOnInit=function(){return LP(this,void 0,void 0,(function(){return VP(this,(function(t){switch(t.label){case 0:return this.subscribeToUsers(),this.setNicknameForm(),this.setRandomAvatar(),this.columns=window.innerWidth>900?2:1,this.setSessionName(),[4,this.oVDevicesService.initDevices()];case 1:return t.sent(),this.setDevicesInfo(),this.initwebcamPublisher(),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.oVUsersSubscription.unsubscribe()},t.prototype.onCameraSelected=function(t){var e;return LP(this,void 0,void 0,(function(){var n,r;return VP(this,(function(i){switch(i.label){case 0:return(n=null===(e=t)||void 0===e?void 0:e.value)?this.oVDevicesService.needUpdateVideoTrack(n)?(r=this.oVDevicesService.cameraNeedsMirror(n),[4,this.oVSessionService.replaceTrack(n,null,r)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setCamSelected(n),this.camSelected=this.oVDevicesService.getCamSelected(),i.label=2;case 2:return this.oVSessionService.publishVideo(!0),this.isVideoActive=!0,[2];case 3:return this.oVSessionService.publishVideo(!1),this.isVideoActive=!1,[2]}}))}))},t.prototype.onMicrophoneSelected=function(t){var e;return LP(this,void 0,void 0,(function(){var n,r;return VP(this,(function(i){switch(i.label){case 0:return(n=null===(e=t)||void 0===e?void 0:e.value)?this.oVDevicesService.needUpdateAudioTrack(n)?(console.log(this.camSelected),r=this.oVDevicesService.cameraNeedsMirror(this.camSelected.device),[4,this.oVSessionService.replaceTrack(null,n,r)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setMicSelected(n),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]}}))}))},t.prototype.toggleCam=function(){this.isVideoActive=!this.isVideoActive,this.oVSessionService.publishVideo(this.isVideoActive),this.oVSessionService.areBothConnected()?(this.oVSessionService.disableWebcamUser(),this.oVSessionService.publishScreenAudio(this.isAudioActive)):this.oVSessionService.isOnlyScreenConnected()&&this.oVSessionService.enableWebcamUser()},t.prototype.toggleScreenShare=function(){var t=this;if(this.oVSessionService.areBothConnected())this.oVSessionService.disableScreenUser();else{if(this.oVSessionService.isOnlyWebcamConnected()){var e=this.initScreenPublisher();return e.on("accessAllowed",(function(n){e.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",(function(){t.log.d("Clicked native stop button. Stopping screen sharing"),t.toggleScreenShare()})),t.oVSessionService.enableScreenUser(e),t.oVSessionService.hasWebcamVideoActive()||t.oVSessionService.disableWebcamUser()})),void e.on("accessDenied",(function(e){t.log.w("ScreenShare: Access Denied")}))}this.oVSessionService.enableWebcamUser(),this.oVSessionService.disableScreenUser()}},t.prototype.toggleMic=function(){this.isAudioActive=!this.isAudioActive,this.publishAudio(this.isAudioActive)},t.prototype.takePhoto=function(){this.oVSessionService.setWebcamAvatar(),this.videoAvatar=this.oVSessionService.getWebCamAvatar(),this.oVSessionService.setAvatar(tE.VIDEO)},t.prototype.setNicknameForm=function(){if(this.externalConfig)this.nicknameFormControl.setValue(this.externalConfig.getNickname());else{var t=this.storageSrv.get(this.USER_NICKNAME)||this.utilsSrv.generateNickname();this.nicknameFormControl.setValue(t)}},t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.nicknameFormControl.valid&&this.joinSession()},t.prototype.onResize=function(t){this.columns=t.target.innerWidth>900?2:1},t.prototype.joinSession=function(){this.nicknameFormControl.valid&&(this.oVSessionService.setWebcamName(this.nicknameFormControl.value),this.storageSrv.set(this.USER_NICKNAME,this.nicknameFormControl.value),this.join.emit()),this.scrollToBottom()},t.prototype.close=function(){this.leaveSession.emit(),this.showConfigCard=!1},t.prototype.setAvatar=function(t){var e=t===tE.VIDEO?tE.VIDEO:tE.RANDOM;(e===tE.RANDOM&&this.randomAvatar||e===tE.VIDEO&&this.videoAvatar)&&(this.avatarSelected=e)},t.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()},t.prototype.setSessionName=function(){var t=this;this.route.params.subscribe((function(e){t.mySessionId=t.externalConfig?t.externalConfig.getSessionName():e.roomName,t.oVSessionService.setSessionId(t.mySessionId)}))},t.prototype.setRandomAvatar=function(){this.randomAvatar=this.chatAvatarURL,this.oVSessionService.setAvatar(tE.RANDOM,this.randomAvatar),this.avatarSelected=tE.RANDOM},t.prototype.scrollToBottom=function(){try{this.bodyCard.nativeElement.scrollTop=this.bodyCard.nativeElement.scrollHeight}catch(t){}},t.prototype.initScreenPublisher=function(){var t=Jx.SCREEN,e=this.oVSessionService.isWebCamEnabled()&&this.oVSessionService.hasWebcamVideoActive(),n=this.oVSessionService.createProperties(t,void 0,!0,!e&&this.isAudioActive,!1);try{return this.oVSessionService.initScreenPublisher(void 0,n)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},t.prototype.publishAudio=function(t){this.oVSessionService.isWebCamEnabled()?this.oVSessionService.publishWebcamAudio(t):this.oVSessionService.publishScreenAudio(t)},t.prototype.subscribeToUsers=function(){var t=this;this.oVUsersSubscription=this.oVSessionService.OVUsers.subscribe((function(e){t.localUsers=e}))},t.prototype.initwebcamPublisher=function(){var t,e,n=(null===(t=this.micSelected)||void 0===t?void 0:t.device)||void 0,r=(null===(e=this.camSelected)||void 0===e?void 0:e.device)||void 0,i=this.oVSessionService.createProperties(!!this.hasVideoDevices&&r,!!this.hasAudioDevices&&n,!!this.hasVideoDevices&&this.isVideoActive,!!this.hasAudioDevices&&this.isAudioActive,this.camSelected&&this.camSelected.type===wk.FRONT),o=this.oVSessionService.initCamPublisher(void 0,i);this.handlePublisherSuccess(o),this.handlePublisherError(o)},t.prototype.emitPublisher=function(t){this.publisherCreated.emit(t)},t.prototype.handlePublisherSuccess=function(t){var e=this;t.once("accessAllowed",(function(){return LP(e,void 0,void 0,(function(){var e,n;return VP(this,(function(r){switch(r.label){case 0:return this.oVDevicesService.areEmptyLabels()?[4,this.oVDevicesService.initDevices()]:[3,2];case 1:r.sent(),this.hasAudioDevices&&(e=t.stream.getMediaStream().getAudioTracks()[0].label,this.oVDevicesService.setMicSelected(e)),this.hasVideoDevices&&(n=t.stream.getMediaStream().getVideoTracks()[0].label,this.oVDevicesService.setCamSelected(n)),this.setDevicesInfo(),r.label=2;case 2:return this.emitPublisher(t),this.ovSettings.isAutoPublish()?(this.joinSession(),[2]):(this.showConfigCard=!0,[2])}}))}))}))},t.prototype.handlePublisherError=function(t){var e=this;t.once("accessDenied",(function(t){var n;"DEVICE_ACCESS_DENIED"===t.name&&(n="Access to media devices was not allowed."),"NO_INPUT_SOURCE_SET"===t.name&&(n="No video or audio devices have been found. Please, connect at least one."),e.utilsSrv.showErrorMessage(t.name.replace(/_/g," "),n,!0),e.log.e(t.message)}))},t.\u0275fac=function(e){return new(e||t)(Ua(cO),Ua(Ck),Ua(iE),Ua(kk),Ua(eE),Ua(Ok))},t.\u0275cmp=xe({type:t,selectors:[["app-room-config"]],viewQuery:function(t,e){var n;1&t&&uu(jP,!0),2&t&&su(n=fu())&&(e.bodyCard=n.first)},hostBindings:function(t,e){1&t&&ts("beforeunload",(function(){return e.beforeunloadHandler()}),!1,er)},inputs:{logoURL:"logoURL",lightTheme:"lightTheme",chatAvatarURL:"chatAvatarURL",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"],[3,"logoURL"],[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"],[1,"avatarButton"],["mat-stroked-button","",3,"click"],["matTooltip","Take Photo"],[2,"margin-left","5px"],[1,"col-sm-6","col-md-6","col-lg-6","rightSection"],[1,"avatarContainer"],["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",3,"click"],["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"],["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","color","accent",3,"diameter",4,"ngIf"],["id","imgText"],["id","avatarImg",3,"src"],["id","imgText","color","accent",3,"diameter"],["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(t,e){var n,r;1&t&&(qa(0,"div",0),Qc(1,"isAutoPublish"),Ba(2,aT,49,21,"div",1),Za()),2&t&&(Wa("ngStyle",(4,n=sT,r=Yc(1,2,e.ovSettings)?"none":"block",Zc(cn(),vn(),4,n,r,void 0))),Di(2),Wa("ngIf",e.showConfigCard))},directives:[Jl,$E,Wl,Ik,jv,Z_,wS,zl,Fk,pP,tP,gP,$p,Jd,Gp,qb,ew,Wd,Kd,nh,kP,uw,Ib,Pw,Xp,Pv],pipes:[AP,TP,MP,IP],styles:[".cardHeader[_ngcontent-%COMP%]{background-color:#333;border-radius:14px 14px 0 0;text-align:center;height:50px}.cardHeaderLight[_ngcontent-%COMP%]{background-color:#ccc!important}.headerLogo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:inherit}.headerTitle[_ngcontent-%COMP%]{font-size:large;margin:auto;color:#fff}.headerTitleLight[_ngcontent-%COMP%]{color:#000!important}.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:60%}}@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%}}"]}),t}(),uT=function(t){return t.BIG="zoom_in",t.NORMAL="zoom_out",t}({}),lT=function(t){return t.BIG="fullscreen",t.NORMAL="fullscreen_exit",t}({});function dT(t,e){1&t&&(qa(0,"mat-icon",14),Ms(1,"mic"),Za())}function pT(t,e){1&t&&(qa(0,"mat-icon",15),Ms(1,"mic_off"),Za())}function hT(t,e){if(1&t){var n=Ja();qa(0,"button",11),ts("click",(function(){return ln(n),os().toggleMicrophone()})),Ba(1,dT,2,0,"mat-icon",12),Ba(2,pT,2,0,"mat-icon",13),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(1),Wa("ngIf",r.isWebcamAudioEnabled),Di(1),Wa("ngIf",!r.isWebcamAudioEnabled)}}function fT(t,e){1&t&&(qa(0,"mat-icon",19),Ms(1,"videocam"),Za())}function mT(t,e){1&t&&(qa(0,"mat-icon",20),Ms(1,"videocam_off"),Za())}function gT(t,e){if(1&t){var n=Ja();qa(0,"button",16),ts("click",(function(){return ln(n),os().toggleCamera()})),Ba(1,fT,2,0,"mat-icon",17),Ba(2,mT,2,0,"mat-icon",18),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(1),Wa("ngIf",r.isWebcamVideoEnabled),Di(1),Wa("ngIf",!r.isWebcamVideoEnabled)}}function vT(t,e){1&t&&(qa(0,"mat-icon",24),Ms(1,"stop_screen_share"),Za())}function yT(t,e){1&t&&(qa(0,"mat-icon",25),Ms(1,"screen_share"),Za())}function bT(t,e){if(1&t){var n=Ja();qa(0,"button",21),ts("click",(function(){return ln(n),os().toggleScreenShare()})),Ba(1,vT,2,0,"mat-icon",22),Ba(2,yT,2,0,"mat-icon",23),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(1),Wa("ngIf",!r.isScreenEnabled),Di(1),Wa("ngIf",r.isScreenEnabled)}}function _T(t,e){if(1&t){var n=Ja();qa(0,"button",26),ts("click",(function(){return ln(n),os().toggleFullscreen()})),qa(1,"mat-icon",27),Ms(2),Za(),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(2),As(r.fullscreenIcon)}}function wT(t,e){1&t&&(qa(0,"mat-icon",30),Ms(1,"voice_over_off"),Za())}function ST(t,e){1&t&&(qa(0,"mat-icon",31),Ms(1,"record_voice_over"),Za())}function CT(t,e){if(1&t){var n=Ja();qa(0,"button",26),ts("click",(function(){return ln(n),os().toggleSpeakerLayout()})),Ba(1,wT,2,0,"mat-icon",28),Ba(2,ST,2,0,"mat-icon",29),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(1),Wa("ngIf",!r.isAutoLayout),Di(1),Wa("ngIf",r.isAutoLayout)}}function OT(t,e){if(1&t){var n=Ja();qa(0,"button",32),ts("click",(function(){return ln(n),os().leaveSession()})),qa(1,"mat-icon",33),Ms(2,"power_settings_new"),Za(),Za()}}function xT(t,e){if(1&t){var n=Ja();qa(0,"button",26),ts("click",(function(){return ln(n),os().toggleChat()})),qa(1,"mat-icon",34),Ms(2,"chat"),Za(),Za()}if(2&t){var r=os();Wa("disabled",r.isConnectionLost),Di(1),us("matBadge",r.newMessagesNum),Wa("matBadgeHidden",0===r.newMessagesNum)}}var ET=function(){function t(t,e){var n=this;this.utilsSrv=t,this.chatService=e,this.micButtonClicked=new Kc,this.camButtonClicked=new Kc,this.screenShareClicked=new Kc,this.layoutButtonClicked=new Kc,this.leaveSessionButtonClicked=new Kc,this.fullscreenIcon=lT.BIG,this.participantsNames=[],this.chatServiceSubscription=this.chatService.messagesUnreadObs.subscribe((function(t){n.newMessagesNum=t}))}return t.prototype.ngOnDestroy=function(){this.chatServiceSubscription.unsubscribe()},t.prototype.sizeChange=function(t){var e=window.screen.height,n=window.screen.width,r=window.innerHeight;n!==window.innerWidth&&e!==r&&(this.fullscreenIcon=lT.BIG)},t.prototype.ngOnInit=function(){},t.prototype.toggleMicrophone=function(){this.micButtonClicked.emit()},t.prototype.toggleCamera=function(){this.camButtonClicked.emit()},t.prototype.toggleScreenShare=function(){this.screenShareClicked.emit()},t.prototype.toggleSpeakerLayout=function(){this.layoutButtonClicked.emit()},t.prototype.leaveSession=function(){this.leaveSessionButtonClicked.emit()},t.prototype.toggleChat=function(){this.chatService.toggleChat()},t.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("videoRoomNavBar"),this.fullscreenIcon=this.fullscreenIcon===lT.BIG?lT.NORMAL:lT.BIG},t.\u0275fac=function(e){return new(e||t)(Ua(Ck),Ua(sE))},t.\u0275cmp=xe({type:t,selectors:[["app-toolbar"]],hostBindings:function(t,e){1&t&&ts("resize",(function(t){return e.sizeChange(t)}),!1,er)},inputs:{lightTheme:"lightTheme",mySessionId:"mySessionId",compact:"compact",showNotification:"showNotification",ovSettings:"ovSettings",isWebcamVideoEnabled:"isWebcamVideoEnabled",isWebcamAudioEnabled:"isWebcamAudioEnabled",isScreenEnabled:"isScreenEnabled",isAutoLayout:"isAutoLayout",isConnectionLost:"isConnectionLost",hasVideoDevices:"hasVideoDevices",hasAudioDevices:"hasAudioDevices",logoURL:"logoURL"},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(t,e){1&t&&(qa(0,"mat-toolbar",0),qa(1,"div",1),Qa(2,"app-logo",2),Za(),qa(3,"div",3),qa(4,"div",4),Ba(5,hT,3,3,"button",5),Qc(6,"hasAudio"),Ba(7,gT,3,3,"button",6),Qc(8,"hasVideo"),Ba(9,bT,3,3,"button",7),Qc(10,"hasScreenSharing"),Ba(11,_T,3,2,"button",8),Qc(12,"hasFullscreen"),Ba(13,CT,3,3,"button",8),Qc(14,"hasLayoutSpeaking"),Ba(15,OT,3,0,"button",9),Qc(16,"hasExit"),Za(),Za(),qa(17,"div",10),Ba(18,xT,3,3,"button",8),Qc(19,"hasChat"),Za(),Za()),2&t&&(bs("headerLight",e.lightTheme),Di(2),Wa("lightTheme",e.lightTheme)("sessionId",e.mySessionId)("compact",e.compact)("logoURL",e.logoURL),Di(3),Wa("ngIf",e.hasAudioDevices&&Yc(6,13,e.ovSettings)),Di(2),Wa("ngIf",!e.ovSettings||e.hasVideoDevices&&Yc(8,15,e.ovSettings)),Di(2),Wa("ngIf",Yc(10,17,e.ovSettings)),Di(2),Wa("ngIf",Yc(12,19,e.ovSettings)),Di(2),Wa("ngIf",Yc(14,21,e.ovSettings)),Di(2),Wa("ngIf",Yc(16,23,e.ovSettings)),Di(3),Wa("ngIf",Yc(19,25,e.ovSettings)))},directives:[eS,Fk,gP,Wk,tP,Ik,uP,Wl,jv,Z_,wS,Rv],pipes:[TP,MP,IP,RP,DP,NP,PP],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}#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}#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}"]}),t}(),kT=function(){function t(){}return t.prototype.transform=function(t){var e="";return t.forEach((function(t){e+="\u2022 "+t+"\n"})),e},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ie({name:"tooltipList",type:t,pure:!0}),t}(),PT=function(){function t(){this.participantsNames=[]}return t.prototype.sizeChange=function(t){},t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"participants",{set:function(t){var e=this;this.participantsNames=[],t.forEach((function(t){t.isCamera()&&e.participantsNames.push(t.getNickname())})),this.participantsNames=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(this.participantsNames)},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["app-footer"]],hostBindings:function(t,e){1&t&&ts("resize",(function(t){return e.sizeChange(t)}),!1,er)},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(t,e){1&t&&(qa(0,"mat-toolbar",0),qa(1,"div",1),qa(2,"button",2),qa(3,"mat-icon",3),Ms(4,"people"),Za(),Za(),Za(),qa(5,"div",4),qa(6,"span",5),Ms(7),Qc(8,"tooltipList"),Za(),Za(),Za()),2&t&&(bs("headerLight",e.lightTheme),Di(3),us("matBadge",null==e.participantsNames?null:e.participantsNames.length),Di(4),As(Yc(8,4,e.participantsNames)))},directives:[eS,Fk,gP,Wk,jv,wS,Z_,Rv,tP,uP],pipes:[kT],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}"]}),t}(),TT=["streamComponent"],MT=["nicknameInput"];function AT(t,e){1&t&&(qa(0,"span"),Ms(1," (edit)"),Za())}function IT(t,e){if(1&t){var n=Ja();qa(0,"div",15),ts("click",(function(){return ln(n),os(2).toggleNicknameForm()})),qa(1,"span",16),Ms(2),Za(),Ba(3,AT,2,0,"span",17),Za()}if(2&t){var r=os(2);Di(2),As(r._user.nickname),Di(1),Wa("ngIf",!r._user.streamManager.remote)}}function RT(t,e){1&t&&(qa(0,"mat-error"),Ms(1," Nickname is "),qa(2,"strong"),Ms(3,"required"),Za(),Za())}function DT(t,e){1&t&&(qa(0,"mat-error"),Ms(1," Nickname is "),qa(2,"strong"),Ms(3,"too long!"),Za(),Za())}function NT(t,e){if(1&t){var n=Ja();qa(0,"div",18),qa(1,"button",19),ts("click",(function(){return ln(n),os(2).toggleNicknameForm()})),qa(2,"mat-icon",20),Ms(3,"highlight_off"),Za(),Za(),qa(4,"form",21),qa(5,"mat-form-field",22),qa(6,"input",23,24),ts("keypress",(function(t){return ln(n),os(2).eventKeyPress(t)})),Za(),Ba(8,RT,4,0,"mat-error",17),Ba(9,DT,4,0,"mat-error",17),Za(),Za(),Za()}if(2&t){var r=os(2);bs("fullscreen",r.isFullscreen),Di(6),ls("placeholder","Nick: ",r._user.nickname,""),Wa("formControl",r.nicknameFormControl)("errorStateMatcher",r.matcher),Di(2),Wa("ngIf",r.nicknameFormControl.hasError("required")),Di(1),Wa("ngIf",r.nicknameFormControl.hasError("maxlength"))}}function LT(t,e){1&t&&(qa(0,"div",25),qa(1,"mat-icon"),Ms(2,"mic_off"),Za(),Za())}function VT(t,e){1&t&&(qa(0,"div",26),qa(1,"mat-icon"),Ms(2,"videocam_off"),Za(),Za())}function jT(t,e){1&t&&(qa(0,"mat-icon",30),Ms(1,"volume_up"),Za())}function FT(t,e){1&t&&(qa(0,"mat-icon",31),Ms(1,"volume_off"),Za())}function BT(t,e){if(1&t){var n=Ja();qa(0,"button",27),ts("click",(function(){return ln(n),os(2).toggleSound()})),Ba(1,jT,2,0,"mat-icon",28),Ba(2,FT,2,0,"mat-icon",29),Za()}if(2&t){var r=os(2);Di(1),Wa("ngIf",!r.mutedSound),Di(1),Wa("ngIf",r.mutedSound)}}function UT(t,e){if(1&t){var n=Ja();qa(0,"button",32),ts("click",(function(){return ln(n),os(2).replaceScreenTrack()})),qa(1,"mat-icon",33),Ms(2,"picture_in_picture"),Za(),Za()}}function zT(t,e){if(1&t){var n=Ja();qa(0,"div",1,2),ts("dblclick",(function(){return ln(n),os().toggleVideoSize()})),qa(2,"div",3),Ba(3,IT,4,2,"div",4),Ba(4,NT,10,7,"div",5),Za(),qa(5,"ov-video",6),ts("toggleVideoSizeEvent",(function(t){return ln(n),os().toggleVideoSize(t)})),Za(),qa(6,"div",7),Ba(7,LT,3,0,"div",8),Ba(8,VT,3,0,"div",9),Za(),qa(9,"div",10),qa(10,"button",11),ts("click",(function(){return ln(n),os().toggleVideoSize()})),qa(11,"mat-icon"),Ms(12),Za(),Za(),qa(13,"button",12),ts("click",(function(){return ln(n),os().toggleFullscreen()})),qa(14,"mat-icon"),Ms(15),Za(),Za(),Ba(16,BT,3,2,"button",13),Ba(17,UT,3,0,"button",14),Za(),Za()}if(2&t){var r=os();Wa("id","container-"+r._user.streamManager.stream.streamId),Di(2),bs("fullscreen",r.isFullscreen),Di(1),Wa("ngIf",!r.toggleNickname),Di(1),Wa("ngIf",r.toggleNickname&&!r._user.streamManager.remote),Di(1),Wa("streamManager",r._user.streamManager)("mutedSound",r.mutedSound),Di(2),Wa("ngIf",!r._user.streamManager.stream.audioActive),Di(1),Wa("ngIf",!r._user.streamManager.stream.videoActive),Di(4),As(r.videoSizeIcon),Di(3),As(r.fullscreenIcon),Di(1),Wa("ngIf",r._user.streamManager.remote),Di(1),Wa("ngIf",!r._user.streamManager.remote&&r._user.isScreen())}}var HT=function(){function t(t){this.utilsSrv=t,this.videoSizeIcon=uT.BIG,this.fullscreenIcon=lT.BIG,this.nicknameClicked=new Kc,this.replaceScreenTrackClicked=new Kc,this.toggleVideoSizeClicked=new Kc}return t.prototype.sizeChange=function(t){var e=window.screen.height,n=window.screen.width,r=window.innerHeight;n!==window.innerWidth&&e!==r&&(this.isFullscreen=!1,this.videoSizeIcon=uT.BIG)},Object.defineProperty(t.prototype,"videoSizeBig",{set:function(t){this.checkVideoSizeBigIcon(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"user",{set:function(t){this._user=t,this.nicknameFormControl=new Bp(this._user.getNickname(),[np.maxLength(25),np.required])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nicknameInputElement",{set:function(t){setTimeout((function(){var e;null===(e=t)||void 0===e||e.nativeElement.focus()}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.matcher=new Tk},t.prototype.toggleVideoSize=function(t){var e=this.utilsSrv.getHTMLElementByClassName(this.streamComponent.element.nativeElement,vk.ROOT_CLASS);this.toggleVideoSizeClicked.emit({element:e,connectionId:this._user.getConnectionId(),resetAll:t})},t.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("container-"+this._user.getStreamManager().stream.streamId),this.toggleFullscreenIcon()},t.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},t.prototype.toggleNicknameForm=function(){this._user.isLocal()&&(this.toggleNickname=!this.toggleNickname)},t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm())},t.prototype.replaceScreenTrack=function(){this.replaceScreenTrackClicked.emit()},t.prototype.checkVideoSizeBigIcon=function(t){this.videoSizeIcon=t?uT.NORMAL:uT.BIG},t.prototype.toggleFullscreenIcon=function(){this.fullscreenIcon=this.fullscreenIcon===lT.BIG?lT.NORMAL:lT.BIG},t.\u0275fac=function(e){return new(e||t)(Ua(Ck))},t.\u0275cmp=xe({type:t,selectors:[["stream-component"]],viewQuery:function(t,e){var n;1&t&&(uu(TT,!0,Tc),uu(MT,!0)),2&t&&(su(n=fu())&&(e.streamComponent=n.first),su(n=fu())&&(e.nicknameInputElement=n.first))},hostBindings:function(t,e){1&t&&ts("resize",(function(t){return e.sizeChange(t)}),!1,er)},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"],["id","statusCam",4,"ngIf"],[1,"videoButtons"],["mat-icon-button","","id","videoZoomButton",3,"click"],["mat-icon-button","","id","fullscreenButton",3,"click"],["mat-icon-button","","id","volumeButton",3,"click",4,"ngIf"],["mat-icon-button","","id","changeScreenButton",3,"click",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"],["id","statusCam"],["mat-icon-button","","id","volumeButton",3,"click"],["matTooltip","Mute sound",4,"ngIf"],["color","warn","matTooltip","Unmute sound",4,"ngIf"],["matTooltip","Mute sound"],["color","warn","matTooltip","Unmute sound"],["mat-icon-button","","id","changeScreenButton",3,"click"],["matTooltip","Choose screen"]],template:function(t,e){1&t&&Ba(0,zT,18,13,"div",0),2&t&&Wa("ngIf",e._user)},directives:[Wl,kP,jv,Z_,wS,$p,Jd,Gp,qb,ew,Wd,Kd,nh,Ib],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.37);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:9999999;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} .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}"]}),t}(),WT=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},GT=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},qT=["chatComponent"],ZT=["sidenav"];function QT(t,e){if(1&t){var n=Ja();qa(0,"app-room-config",4),ts("join",(function(){return ln(n),os(2).onConfigRoomJoin()}))("leaveSession",(function(){return ln(n),os(2).leaveSession()}))("publisherCreated",(function(t){return ln(n),os(2).emitPublisher(t)})),Za()}if(2&t){var r=os(2);Wa("ovSettings",r.ovSettings)("externalConfig",r.externalConfig)("logoURL",r.logoURL)("chatAvatarURL",r.chatAvatarURL)("lightTheme",r.lightTheme)}}function YT(t,e){1&t&&Qa(0,"div",14)}function KT(t,e){if(1&t&&(qa(0,"mat-sidenav",15,16),Qa(2,"chat-component",17,18),Za()),2&t){var n=os(3);bs("boundsLight",n.lightTheme),us("mode",n.sidenavMode),Di(2),Wa("lightTheme",n.lightTheme)}}function JT(t,e){if(1&t){var n=Ja();qa(0,"div",19),qa(1,"stream-component",20),ts("nicknameClicked",(function(t){return ln(n),os(3).onNicknameUpdate(t)}))("replaceScreenTrackClicked",(function(t){return ln(n),os(3).onReplaceScreenTrack(t)}))("toggleVideoSizeClicked",(function(t){return ln(n),os(3).onToggleVideoSize(t)})),Za(),Za()}if(2&t){var r=e.$implicit;ys("display",null!=r.streamManager&&null!=r.streamManager.stream&&r.streamManager.stream.videoActive?"block":"none"),Di(1),Wa("user",r)("videoSizeBig",r.videoSizeBig)}}function XT(t,e){if(1&t){var n=Ja();qa(0,"div",21),qa(1,"stream-component",22),ts("toggleVideoSizeClicked",(function(t){return ln(n),os(3).onToggleVideoSize(t)})),Za(),Za()}if(2&t){var r=e.$implicit;ys("display",null!=r.streamManager&&null!=r.streamManager.stream&&r.streamManager.stream.videoActive?"block":"none"),Di(1),Wa("user",r)("videoSizeBig",r.videoSizeBig)}}function $T(t,e){if(1&t){var n=Ja();qa(0,"div"),Ba(1,YT,1,0,"div",5),qa(2,"app-toolbar",6),ts("camButtonClicked",(function(){return ln(n),os(2).toggleCam()}))("micButtonClicked",(function(){return ln(n),os(2).toggleMic()}))("screenShareClicked",(function(){return ln(n),os(2).toggleScreenShare()}))("layoutButtonClicked",(function(){return ln(n),os(2).toggleSpeakerLayout()}))("leaveSessionButtonClicked",(function(){return ln(n),os(2).leaveSession()})),Za(),qa(3,"mat-sidenav-container",7),Ba(4,KT,4,4,"mat-sidenav",8),Qc(5,"hasChat"),qa(6,"mat-sidenav-content",9),qa(7,"div",10),Ba(8,JT,2,4,"div",11),Ba(9,XT,2,4,"div",12),Za(),Za(),Za(),Qa(10,"app-footer",13),Za()}if(2&t){var r=os(2);Di(1),Wa("ngIf",r.isConnectionLost),Di(1),Wa("lightTheme",r.lightTheme)("compact",r.compact)("mySessionId",r.mySessionId)("ovSettings",r.ovSettings)("logoURL",r.logoURL)("hasVideoDevices",r.hasVideoDevices)("hasAudioDevices",r.hasAudioDevices)("isWebcamVideoEnabled",r.oVSessionService.hasWebcamVideoActive())("isWebcamAudioEnabled",r.toolbarMicIconEnabled())("isScreenEnabled",r.oVSessionService.isScreenShareEnabled())("isAutoLayout",r.isAutoLayout)("isConnectionLost",r.isConnectionLost),Di(1),bs("boundsLight",r.lightTheme),Di(1),Wa("ngIf",Yc(5,22,r.ovSettings)),Di(3),bs("boundsLight",r.lightTheme),Di(1),Wa("ngForOf",r.localUsers),Di(1),Wa("ngForOf",r.remoteUsers),Di(1),Wa("lightTheme",r.lightTheme)("participants",r.remoteUsers)}}function tM(t,e){if(1&t&&(qa(0,"div",1),Ba(1,QT,1,5,"app-room-config",2),Ba(2,$T,11,24,"div",3),Za()),2&t){var n=os();bs("boundsLight",n.lightTheme),Di(1),Wa("ngIf",n.showConfigRoomCard),Di(1),Wa("ngIf",n.localUsers&&n.localUsers.length>0)}}var eM=function(){function t(t,e,n,r,i,o,a,s){this.networkSrv=t,this.router=e,this.utilsSrv=n,this.remoteUsersService=r,this.oVSessionService=i,this.oVDevicesService=o,this.loggerSrv=a,this.chatService=s,this._session=new Kc,this._publisher=new Kc,this._error=new Kc,this._joinSession=new Kc,this._leaveSession=new Kc,this.compact=!1,this.sidenavMode="side",this.showConfigRoomCard=!0,this.localUsers=[],this.remoteUsers=[],this.isAutoLayout=!1,this.log=this.loggerSrv.get("VideoRoomComponent")}return t.prototype.beforeunloadHandler=function(){this.leaveSession()},t.prototype.sizeChange=function(){this.openviduLayout&&(this.updateOpenViduLayout(),this.checkSizeComponent())},t.prototype.ngOnInit=function(){var t;return WT(this,void 0,void 0,(function(){return GT(this,(function(e){return this.lightTheme=(null===(t=this.externalConfig)||void 0===t?void 0:t.getTheme())===bk.LIGHT,this.logoURL=this.externalConfig&&this.externalConfig.getAppLogoUrl()?this.externalConfig.getAppLogoUrl():this.utilsSrv.getOpenViduLogo(),this.chatAvatarURL=this.externalConfig&&this.externalConfig.getChatAvatarURL()?this.externalConfig.getChatAvatarURL():this.utilsSrv.getOpenViduAvatar(),this.ovSettings=this.externalConfig?this.externalConfig.getOvSettings():new gk,this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&!this.utilsSrv.isMobile()),[2]}))}))},t.prototype.ngOnDestroy=function(){var t;null===(t=this.session)||void 0===t||t.off("reconnecting"),this.remoteUsersService.clean(),this.session=null,this.sessionScreen=null,this.localUsers=[],this.remoteUsers=[],this.openviduLayout=null,this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.remoteUsersSubscription&&this.remoteUsersSubscription.unsubscribe(),this.chatSubscription&&this.chatSubscription.unsubscribe()},t.prototype.onConfigRoomJoin=function(){var t=this;this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.showConfigRoomCard=!1,this.subscribeToLocalUsers(),this.subscribeToRemoteUsers(),this.mySessionId=this.oVSessionService.getSessionId(),setTimeout((function(){t.openviduLayout=new Yx,t.openviduLayoutOptions=t.utilsSrv.getOpenviduLayoutOptions(),t.openviduLayout.initLayoutContainer(document.getElementById("layout"),t.openviduLayoutOptions),t.checkSizeComponent(),t.joinToSession()}),50)},t.prototype.joinToSession=function(){this.oVSessionService.initSessions(),this.session=this.oVSessionService.getWebcamSession(),this._session.emit(this.session),this.sessionScreen=this.oVSessionService.getScreenSession(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.setChatComponent(this.chatSidenav),this.chatService.subscribeToChat(),this.subscribeToChatComponent(),this.subscribeToReconnection(),this.connectToSession()},t.prototype.leaveSession=function(){this.log.d("Leaving session..."),this.oVSessionService.disconnect(),this.router.navigate([""]),this._leaveSession.emit()},t.prototype.onNicknameUpdate=function(t){this.oVSessionService.setWebcamName(t),this.sendNicknameSignal(t)},t.prototype.toggleMic=function(){this.oVSessionService.isWebCamEnabled()?this.oVSessionService.publishWebcamAudio(!this.oVSessionService.hasWebcamAudioActive()):this.oVSessionService.publishScreenAudio(!this.oVSessionService.hasScreenAudioActive())},t.prototype.toggleCam=function(){return WT(this,void 0,void 0,(function(){var t,e;return GT(this,(function(n){switch(n.label){case 0:return t=!this.oVSessionService.hasWebcamVideoActive(),this.oVSessionService.areBothConnected()?(this.oVSessionService.publishVideo(t),this.oVSessionService.disableWebcamUser(),this.oVSessionService.unpublishWebcam(),[2]):this.oVSessionService.isOnlyScreenConnected()?(e=this.oVSessionService.hasScreenAudioActive(),[4,this.oVSessionService.publishWebcam()]):[3,2];case 1:n.sent(),this.oVSessionService.publishScreenAudio(!1),this.oVSessionService.publishWebcamAudio(e),this.oVSessionService.enableWebcamUser(),n.label=2;case 2:return this.oVSessionService.publishVideo(t),[2]}}))}))},t.prototype.toggleScreenShare=function(){return WT(this,void 0,void 0,(function(){var t,e,n=this;return GT(this,(function(r){switch(r.label){case 0:return this.oVSessionService.areBothConnected()?(this.removeScreen(),[2]):this.oVSessionService.isOnlyWebcamConnected()?((t=this.initScreenPublisher()).once("accessAllowed",(function(e){t.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",(function(){n.log.d("Clicked native stop button. Stopping screen sharing"),n.toggleScreenShare()})),n.log.d("ACCESS ALOWED screenPublisher"),n.oVSessionService.enableScreenUser(t),n.oVSessionService.publishScreen(),n.oVSessionService.hasWebcamVideoActive()||(n.oVSessionService.disableWebcamUser(),n.oVSessionService.unpublishWebcam())})),t.once("accessDenied",(function(t){n.log.w("ScreenShare: Access Denied")})),[2]):(e=this.oVSessionService.hasScreenAudioActive(),[4,this.oVSessionService.publishWebcam()]);case 1:return r.sent(),this.oVSessionService.publishScreenAudio(!1),this.oVSessionService.publishWebcamAudio(e),this.oVSessionService.enableWebcamUser(),this.removeScreen(),[2]}}))}))},t.prototype.toggleSpeakerLayout=function(){if(!this.oVSessionService.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.updateOpenViduLayout());this.log.w("Screen is enabled. Speech detection has been rejected")},t.prototype.onReplaceScreenTrack=function(t){this.oVSessionService.replaceScreenTrack()},t.prototype.checkSizeComponent=function(){var t;this.compact=(null===(t=document.getElementById("room-container"))||void 0===t?void 0:t.offsetWidth)<=790,this.sidenavMode=this.compact?"over":"side"},t.prototype.onToggleVideoSize=function(t){var e,n=t.element;t.resetAll&&this.resetAllBigElements(),this.utilsSrv.toggleBigElementClass(n),(null===(e=t)||void 0===e?void 0:e.connectionId)&&(this.oVSessionService.isMyOwnConnection(t.connectionId)?this.oVSessionService.toggleZoom(t.connectionId):this.remoteUsersService.toggleUserZoom(t.connectionId)),this.updateOpenViduLayout()},t.prototype.toolbarMicIconEnabled=function(){return this.oVSessionService.isWebCamEnabled()?this.oVSessionService.hasWebcamAudioActive():this.oVSessionService.hasScreenAudioActive()},t.prototype.connectToSession=function(){var t,e;return WT(this,void 0,void 0,(function(){var n,r,i;return GT(this,(function(o){switch(o.label){case 0:return this.externalConfig&&this.externalConfig.hasTokens()&&(this.log.d("Received external tokens from "+this.externalConfig.getComponentName()),n=this.externalConfig.getWebcamToken(),r=(null===(t=this.ovSettings)||void 0===t?void 0:t.hasScreenSharing())?this.externalConfig.getScreenToken():void 0),n?(i=n,[3,3]):[3,1];case 1:return[4,this.getToken()];case 2:i=o.sent(),o.label=3;case 3:return n=i,r||!(null===(e=this.ovSettings)||void 0===e?void 0:e.hasScreenSharing())?[3,5]:[4,this.getToken()];case 4:r=o.sent(),o.label=5;case 5:return n||r?[4,this.connectBothSessions(n,r)]:[3,7];case 6:o.sent(),this.oVSessionService.areBothConnected()?(this.oVSessionService.publishWebcam(),this.oVSessionService.publishScreen()):this.oVSessionService.isOnlyScreenConnected()?this.oVSessionService.publishScreen():this.oVSessionService.publishWebcam(),this._joinSession.emit(),this.updateOpenViduLayout(),o.label=7;case 7:return[2]}}))}))},t.prototype.connectBothSessions=function(t,e){var n,r;return WT(this,void 0,void 0,(function(){var i,o=this;return GT(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this.oVSessionService.connectWebcamSession(t)];case 1:return a.sent(),[4,this.oVSessionService.connectScreenSession(e)];case 2:return a.sent(),this.localUsers[0].getStreamManager().on("streamPlaying",(function(){o.localUsers[0].getStreamManager().videos[0].video.parentElement.classList.remove("custom-class")})),[3,4];case 3:return i=a.sent(),this._error.emit({error:i.error,messgae:i.message,code:i.code,status:i.status}),this.log.e("There was an error connecting to the session:",i.code,i.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null===(n=i)||void 0===n?void 0:n.error)||(null===(r=i)||void 0===r?void 0:r.message)),[3,4];case 4:return[2]}}))}))},t.prototype.subscribeToStreamCreated=function(){var t=this;this.session.on("streamCreated",(function(e){if(!t.oVSessionService.isMyOwnConnection(e.stream.connection.connectionId)){var n=t.session.subscribe(e.stream,void 0);t.remoteUsersService.add(e,n),t.sendNicknameSignal(t.oVSessionService.getWebcamUserName(),e.stream.connection)}}))},t.prototype.subscribeToStreamDestroyed=function(){var t=this;this.session.on("streamDestroyed",(function(e){t.remoteUsersService.removeUserByConnectionId(e.stream.connection.connectionId)}))},t.prototype.emitPublisher=function(t){this._publisher.emit(t)},t.prototype.subscribeToStreamPropertyChange=function(){var t=this;this.session.on("streamPropertyChanged",(function(e){t.oVSessionService.isMyOwnConnection(e.stream.connection.connectionId)||"videoActive"===e.changedProperty&&t.remoteUsersService.updateUsers()}))},t.prototype.subscribeToNicknameChanged=function(){var t=this;this.session.on("signal:nicknameChanged",(function(e){var n=e.from.connectionId;if(!t.oVSessionService.isMyOwnConnection(n)){var r=JSON.parse(e.data).nickname;t.remoteUsersService.updateNickname(n,r)}}))},t.prototype.subscribeToSpeechDetection=function(){var t=this;this.log.d("Subscribe to speech detection",this.session),this.session.on("publisherStartSpeaking",(function(e){var n=t.remoteUsersService.someoneIsSharingScreen();if(!t.oVSessionService.isScreenShareEnabled()&&!n){var r=t.utilsSrv.getHTMLElementByClassName(e.connection.stream.streamManager.videos[0].video,vk.ROOT_CLASS);t.resetAllBigElements(),t.remoteUsersService.setUserZoom(e.connection.connectionId,!0),t.onToggleVideoSize({element:r})}}))},t.prototype.removeScreen=function(){this.oVSessionService.disableScreenUser(),this.oVSessionService.unpublishScreen()},t.prototype.subscribeToChatComponent=function(){var t=this;this.chatSubscription=this.chatService.toggleChatObs.subscribe((function(e){t.updateOpenViduLayout(t.externalConfig?300:0)}))},t.prototype.subscribeToReconnection=function(){var t=this;this.session.on("reconnecting",(function(){t.log.w("Connection lost: Reconnecting"),t.isConnectionLost=!0,t.utilsSrv.showErrorMessage("Connection Problem","Oops! Trying to reconnect to the session ...",!0)})),this.session.on("reconnected",(function(){t.log.w("Connection lost: Reconnected"),t.isConnectionLost=!1,t.utilsSrv.closeDialog()})),this.session.on("sessionDisconnected",(function(e){"networkDisconnect"===e.reason&&(t.utilsSrv.closeDialog(),t.leaveSession())}))},t.prototype.initScreenPublisher=function(){var t=Jx.SCREEN,e=!(this.oVSessionService.isWebCamEnabled()&&this.oVSessionService.hasWebcamVideoActive())&&this.oVSessionService.hasWebcamAudioActive(),n=this.oVSessionService.createProperties(t,void 0,!0,e,!1);try{return this.oVSessionService.initScreenPublisher(void 0,n)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},t.prototype.getToken=function(){var t,e;return WT(this,void 0,void 0,(function(){var n;return GT(this,(function(r){switch(r.label){case 0:this.log.d("Generating tokens..."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkSrv.getToken(this.mySessionId,null===(t=this.externalConfig)||void 0===t?void 0:t.getOvServerUrl(),null===(e=this.externalConfig)||void 0===e?void 0:e.getOvSecret())];case 2:return[2,r.sent()];case 3:return n=r.sent(),this._error.emit({error:n.error,messgae:n.message,code:n.code,status:n.status}),this.log.e("There was an error getting the token:",n.status,n.message),this.utilsSrv.showErrorMessage("There was an error getting the token:",n.error||n.message),[3,4];case 4:return[2]}}))}))},t.prototype.sendNicknameSignal=function(t,e){var n={data:JSON.stringify({nickname:t}),type:"nicknameChanged",to:e?[e]:void 0};this.session.signal(n)},t.prototype.updateOpenViduLayout=function(t){var e=this;if(this.openviduLayout){if(!t)return void this.openviduLayout.updateLayout();setTimeout((function(){e.openviduLayout.updateLayout()}),t)}},t.prototype.resetAllBigElements=function(){this.utilsSrv.removeAllBigElementClass(),this.remoteUsersService.resetUsersZoom(),this.oVSessionService.resetUsersZoom()},t.prototype.subscribeToLocalUsers=function(){var t=this;this.oVUsersSubscription=this.oVSessionService.OVUsers.subscribe((function(e){t.localUsers=e,t.updateOpenViduLayout()}))},t.prototype.subscribeToRemoteUsers=function(){var t=this;this.remoteUsersSubscription=this.remoteUsersService.remoteUsers.subscribe((function(e){t.remoteUsers=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(e),t.updateOpenViduLayout()}))},t.\u0275fac=function(e){return new(e||t)(Ua(Pk),Ua(yx),Ua(Ck),Ua(oE),Ua(iE),Ua(kk),Ua(eE),Ua(sE))},t.\u0275cmp=xe({type:t,selectors:[["app-video-room"]],viewQuery:function(t,e){var n;1&t&&(uu(qT,!0),uu(ZT,!0)),2&t&&(su(n=fu())&&(e.chatComponent=n.first),su(n=fu())&&(e.chatSidenav=n.first))},hostBindings:function(t,e){1&t&&ts("beforeunload",(function(){return e.beforeunloadHandler()}),!1,er)("resize",(function(){return e.sizeChange()}),!1,er)},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","logoURL","chatAvatarURL","lightTheme","join","leaveSession","publisherCreated",4,"ngIf"],[4,"ngIf"],[3,"ovSettings","externalConfig","logoURL","chatAvatarURL","lightTheme","join","leaveSession","publisherCreated"],["class","reconnecting-container",4,"ngIf"],[3,"lightTheme","compact","mySessionId","ovSettings","logoURL","hasVideoDevices","hasAudioDevices","isWebcamVideoEnabled","isWebcamAudioEnabled","isScreenEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked"],["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,"display",4,"ngFor","ngForOf"],["class","OT_root OT_publisher custom-class","id","remoteUsers",3,"display",4,"ngFor","ngForOf"],[3,"lightTheme","participants"],[1,"reconnecting-container"],["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,"user","videoSizeBig","nicknameClicked","replaceScreenTrackClicked","toggleVideoSizeClicked"],["id","remoteUsers",1,"OT_root","OT_publisher","custom-class"],[3,"user","videoSizeBig","toggleVideoSizeClicked"]],template:function(t,e){1&t&&Ba(0,tM,3,4,"div",0),2&t&&Wa("ngIf",!!e.ovSettings)},directives:[Wl,cT,ET,Qw,qw,zl,PT,Zw,mk,HT],pipes:[PP],styles:['#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;background-color:#494949;height:100%}.stream-container[_ngcontent-%COMP%]{padding:0}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:1%;position:absolute}.sidenav-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:-webkit-fill-available;overflow:hidden}.sidenav-chat[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:450px;border-left:none;position:absolute}.mat-drawer-container[_ngcontent-%COMP%], .sidenav-chat[_ngcontent-%COMP%]{background-color:#494949}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}.bounds[_ngcontent-%COMP%]{background-color:#494949;position:absolute;left:0;right:0;top:40px;bottom:25px;min-width:400px!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}.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%}}']}),t}(),nM=[{path:"",component:Qx},{path:":roomName",component:eM}],rM=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[Ix.forRoot(nM,{useHash:!0})],Ix]}),t}(),iM=function(){var t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(),oM={schedule:function(t,e){var n=setTimeout(t,e);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(t){if("undefined"==typeof window)return oM.schedule(t,0);if(void 0===window.requestAnimationFrame)return oM.schedule(t,16);var e=window.requestAnimationFrame(t);return function(){return window.cancelAnimationFrame(e)}}};function aM(t,e,n){var r=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((function(e,n){return!("*"===e||!function(t,e){return iM.call(t,e)}(t,e)||(r=n,0))})),r}var sM=function(){function t(t,e){this.componentFactory=e.get(nc).resolveComponentFactory(t)}return t.prototype.create=function(t){return new cM(this.componentFactory,t)},t}(),cM=function(){function t(t,e){this.componentFactory=t,this.injector=e,this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}return t.prototype.connect=function(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)},t.prototype.disconnect=function(){var t=this;null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=oM.schedule((function(){null!==t.componentRef&&(t.componentRef.destroy(),t.componentRef=null)}),10))},t.prototype.getInputValue=function(t){return null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t]},t.prototype.setInputValue=function(t,e){var n,r;null!==this.componentRef?((n=e)!==(r=this.getInputValue(t))&&(n==n||r==r)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)},t.prototype.initializeComponent=function(t){var e=Oa.create({providers:[],parent:this.injector}),n=function(t,e){var n=t.childNodes,r=e.map((function(){return[]})),i=-1;e.some((function(t,e){return"*"===t&&(i=e,!0)}));for(var o=0,a=n.length;o<a;++o){var s=n[o],c=aM(s,e,i);-1!==c&&r[c].push(s)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ol).attachView(this.componentRef.hostView)},t.prototype.initializeInputs=function(){var t=this;this.componentFactory.inputs.forEach((function(e){var n=e.propName;t.implementsOnChanges&&t.unchangedInputs.add(n),t.initialInputValues.has(n)&&t.setInputValue(n,t.initialInputValues.get(n))})),this.initialInputValues.clear()},t.prototype.initializeOutputs=function(t){var e=this.componentFactory.outputs.map((function(e){var n=e.templateName;return t.instance[e.propName].pipe(q((function(t){return{name:n,value:t}})))}));this.events=rt.apply(void 0,c(e))},t.prototype.callNgOnChanges=function(t){if(this.implementsOnChanges&&null!==this.inputChanges){var e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}},t.prototype.scheduleDetectChanges=function(){var t=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=oM.scheduleBeforeRender((function(){t.scheduledChangeDetectionFn=null,t.detectChanges()})))},t.prototype.recordInputChange=function(t,e){if(null===this.componentRef||this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[t];if(n)n.currentValue=e;else{var r=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);var i=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Us(i,e,r)}}},t.prototype.detectChanges=function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())},t}(),uM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ngElementEventsSubscription=null,e}return i(e,t),e}(HTMLElement);function lM(t,e){var n=function(t,e){return e.get(nc).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new sM(t,e.injector),o=function(t){var e={};return t.forEach((function(t){var n,r=t.propName;e[(n=t.templateName,n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})))]=r})),e}(n),a=function(t){function a(e){var n=t.call(this)||this;return n.injector=e,n}return i(a,t),Object.defineProperty(a.prototype,"ngElementStrategy",{get:function(){var t=this;if(!this._ngElementStrategy){var i=this._ngElementStrategy=r.create(this.injector||e.injector),o=n.filter((function(e){return t.hasOwnProperty(e.propName)})).map((function(e){var n=e.propName;return[n,t[n]]}));this instanceof a?o.forEach((function(e){var n=s(e,1);return delete t[n[0]]})):dM(n,this),o.forEach((function(t){var e=s(t,2);return i.setInputValue(e[0],e[1])}))}return this._ngElementStrategy},enumerable:!0,configurable:!0}),a.prototype.attributeChangedCallback=function(t,e,n,r){this.ngElementStrategy.setInputValue(o[t],n)},a.prototype.connectedCallback=function(){var t=this;this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((function(e){var n=function(t,e,n){if("function"!=typeof CustomEvent){var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!1,n),r}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(t.ownerDocument,e.name,e.value);t.dispatchEvent(n)}))},a.prototype.disconnectedCallback=function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)},a.observedAttributes=Object.keys(o),a}(uM);return dM(n,a.prototype),a}function dM(t,e){t.forEach((function(t){var n=t.propName;Object.defineProperty(e,n,{get:function(){return this.ngElementStrategy.getInputValue(n)},set:function(t){this.ngElementStrategy.setInputValue(n,t)},configurable:!0,enumerable:!0})}))}var pM=function(){function t(t,e){this.strategy=t,this.injector=e,this.ngZone=this.injector.get(Bu)}return t.prototype.connect=function(t){var e=this;this.runInZone((function(){e.strategy.connect(t)})),this.events=this.strategy.events},t.prototype.disconnect=function(){var t=this;this.runInZone((function(){t.strategy.disconnect()}))},t.prototype.getInputValue=function(t){var e=this;return this.runInZone((function(){return e.strategy.getInputValue(t)}))},t.prototype.setInputValue=function(t,e){var n=this;this.runInZone((function(){n.strategy.setInputValue(t,e)}))},t.prototype.runInZone=function(t){return this.ngZone.run(t)},t}(),hM=function(){function t(t,e){this.component=t,this.injector=e,this.ngElement=lM(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return t.prototype.string4=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},t.prototype.generateName=function(){var e="dummy-name-n";return e=e+(t.counter+"")+"-"+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),t.counter++,e},t.prototype.create=function(t){var e=new this.ngElement(this.injector),n=e.ngElementStrategy;return e=null,new pM(n,this.injector)},t.counter=1,t}(),fM=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)},imports:[[lE]]}),t}(),mM=function(){function t(t,e){id(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:fE,useValue:o(o({},hE),e)},{provide:gE,useValue:n,multi:!0},{provide:mE,useValue:!0}]:[{provide:fE,useValue:o(o({},hE),e)},{provide:gE,useValue:n,multi:!0}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(mE),ae(Ou))},imports:[[xP,ek,fM],xP,ek,fM]}),t}(),gM=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vM=function(t){function e(){var e=t.call(this)||this;return e.NAME="WebComponent",e}return gM(e,t),e.prototype.setSessionConfig=function(t){var e;this.sessionConfig=t,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===(e=this.tokens)||void 0===e?void 0:e.length)>1),this.ovSettings.hasScreenSharing()||console.warn("ScreenSharing has been disabled. OpenVidu Angular has received only one token."))},e.prototype.getComponentName=function(){return this.NAME},e.prototype.isOvSettingsType=function(t){return"chat"in t&&"boolean"==typeof t.chat&&"autopublish"in t&&"boolean"==typeof t.autopublish&&"toolbarButtons"in t&&"object"==typeof t.toolbarButtons&&"audio"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.audio&&"audio"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.audio&&"video"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.video&&"screenShare"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.screenShare&&"fullscreen"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.fullscreen&&"layoutSpeaking"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.layoutSpeaking&&"exit"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.exit},e}(_k),yM=["videoRoom"];function bM(t,e){if(1&t){var n=Ja();qa(0,"app-video-room",1,2),ts("_error",(function(t){return ln(n),os().emitErrorEvent(t)}))("_session",(function(t){return ln(n),os().emitSession(t)}))("_publisher",(function(t){return ln(n),os().emitPublisher(t)}))("_leaveSession",(function(t){return ln(n),os().emitLeaveSessionEvent(t)}))("_joinSession",(function(t){return ln(n),os().emitJoinSessionEvent(t)})),Za()}2&t&&Wa("externalConfig",os().webComponent)}var _M=function(){function t(t){this.loggerSrv=t,this.sessionCreated=new Kc,this.publisherCreated=new Kc,this.error=new Kc,this.joinSession=new Kc,this.leaveSession=new Kc,this.display=!1,this.webComponent=new vM,this.log=this.loggerSrv.get("WebComponentComponent")}return Object.defineProperty(t.prototype,"sessionConfig",{set:function(t){var e=this;this.log.d("Webcomponent sessionConfig: ",t),setTimeout((function(){var n;if("string"==typeof t)try{t=JSON.parse(t)}catch(r){return void e.log.e("Unexpected JSON",r)}if(e.isEmpty(t))return e.log.w("Parameters received are incorrect.",t),e.log.w("Exit session"),void(null===(n=e.videoRoom)||void 0===n||n.leaveSession());e.webComponent.setSessionConfig(t),e.display=e.webComponent.canJoinToSession()}),200)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"theme",{set:function(t){this.webComponent.setTheme(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openviduServerUrl",{set:function(t){this.webComponent.setOvServerUrl(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openviduSecret",{set:function(t){this.webComponent.setOvSecret(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appLogoUrl",{set:function(t){this.webComponent.setAppLogoUrl(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chatAvatarUrl",{set:function(t){this.webComponent.setChatAvatarURL(t)},enumerable:!0,configurable:!0}),t.prototype.emitErrorEvent=function(t){var e=this;setTimeout((function(){return e.error.emit(t)}),20)},t.prototype.emitSession=function(t){var e=this;t.on("sessionDisconnected",(function(t){return e.display=!1})),t.on("connectionCreated",(function(t){e.videoRoom.checkSizeComponent()})),this.sessionCreated.emit(t)},t.prototype.emitPublisher=function(t){this.publisherCreated.emit(t)},t.prototype.emitJoinSessionEvent=function(t){this.joinSession.emit(t)},t.prototype.emitLeaveSessionEvent=function(t){this.leaveSession.emit(t)},t.prototype.isEmpty=function(t){return 0===Object.keys(t).length},t.\u0275fac=function(e){return new(e||t)(Ua(eE))},t.\u0275cmp=xe({type:t,selectors:[["app-web-component"]],viewQuery:function(t,e){var n;1&t&&uu(yM,!0),2&t&&su(n=fu())&&(e.videoRoom=n.first)},inputs:{ovSettings:"ovSettings",sessionConfig:"sessionConfig",theme:"theme",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret",appLogoUrl:"appLogoUrl",chatAvatarUrl:"chatAvatarUrl"},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(t,e){1&t&&Ba(0,bM,2,1,"app-video-room",0),2&t&&Wa("ngIf",e.display)},directives:[Wl,eM],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),t}(),wM=function(){function t(t){this.injector=t;var e=new hM(_M,this.injector),n=lM(_M,{injector:this.injector,strategyFactory:e});customElements.define("meetmonk-webcomponent",n)}return t.prototype.ngDoBootstrap=function(){},t.\u0275mod=Te({type:t}),t.\u0275inj=Ct({factory:function(e){return new(e||t)(ae(Oa))},providers:[Pk,iE,Ck,oE,kk,eE,sE,aE,Ok],imports:[[sh,ch,Ld,Dm,Fv,Bv,nS,Q_,nw,Zb,hb,CS,Dv,Qb,Tw,Mv,lw,Kw,Yw,RS,rM,R_,mM,lk.forRoot()]]}),t}();(function(){if(Lr)throw new Error("Cannot enable prod mode after platform setup.");Nr=!1})(),Dd().bootstrapModule(wM).catch((function(t){return console.log(t)}))}},[[0,0]]]); |